View previous topic :: View next topic |
Author |
Message |
object01
Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
|
PCH #fuses vs. MPLAB Configuration Bits |
Posted: Mon Aug 16, 2004 11:29 am |
|
|
I just used a Microchip ICD2 to program a chip with a program I wrote and compiled in PCW. The C source has a #fuses directive, but I started wondering: does the #fuses directive have any effect on the program at all if I program the device using MPLAB? Or, does MPLAB's "Configuration Bits" dialog take care of that? That is, is the #fuses directive purely a CCS ICD construct?
--
Jeff S. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Aug 16, 2004 11:47 am |
|
|
Quote: | Does the #fuses directive have any effect on the program at all if
I program the device using MPLAB? Or, does MPLAB's "Configuration
Bits" dialog take care of that ? That is, is the #fuses directive purely a
CCS ICD construct? |
The compiler puts the settings in #fuses statement into the config word
section of the HEX file, when you compile your source program.
When you use MPLAB to program a PIC, it reads the config bit settings
from the HEX file and loads them into the "Configuration Bits" dialog. |
|
|
|