j. PIC32MX250F128B configuration samples (*.h files for C-language applications)

QUESTION:

I’ve just started to use MPLABX. Are there any configuration samples for PIC32MX250F128B microcontroller?

ANSWER:

If you are new to Microchip microcontrollers, it might be truly difficult to get the configuration right. First, it is important to know that there are two versions of PIC32MX250F128B chips: a 40 MHz CPU (standard) version and enhanced 50 MHz CPU version. The 50 MHz version has a different marking PIC32MX250F128B-50. If you intend to use USB communication, it is also important to know that 40 MHz is the lowest recommended speed. PIC32MX250F128B microcontroller had internal frequency dividers and a multiplier. The settings for the dividers and the multiplier have to be chosen regarding the clock source you intend to use. USB communications requires the use of an external crystal oscillator or a crystal resonator (made of two capacitors and a crystal or a complete resonator). Go to Downloads section to get the samples for 40 MHz version of PIC32MX250F128B microcontroller (PIC32MX250F128B configuration samples - 40 MHz CPU version.zip). You can also use them with 50 MHz version, but they will not provide maximum performance. You can also use complete HEX files published in this website for initial testing.

NOTE: There are three versions of predefined settings for each external clock source:

EC – external crystal oscillator

HS – external high speed resonator (8 MHz and above, depends on the crystal type)

XT - external low speed resonator (4 MHz up to 10 MHz, depends on the crystal type)

ALSO READ:

- basic circuit implementation with 20.000 MHz FOX924B oscillator

- basic circuit implementation with crystal resonator with 8.000000 MHz XTAL crystal.