View previous topic :: View next topic |
Author |
Message |
orionCLAB
Joined: 07 Aug 2008 Posts: 0
|
H4 fuse ignored in PCW even after power cycle |
Posted: Thu Aug 07, 2008 1:14 pm |
|
|
Using the PCWH compiler version 4.059 and a PIC18F6520 MCU.
I have 2 questions:
Where can I view the fuse values on the PIC (namely H4)?
Why does the PCW debugger display "Ready MCU at 10.00MHZ" unless directly after the ICD programs the PIC?
I have tried several combinations of reprogramming from the PCW compiler IDE and power cycling the PIC. The Debug window displays "Ready MCU at 10.00MHZ" when it should be 40MHz. Using:
#fuses PUT,NOWDT,H4,CCP2E7,OSCSEN in the source code.
What does get the 40MHZ displaying is clicking the "Run ICD Program" button in the debugger window and programming the PIC frim the ICD then power cycling the PIC, closing the ICD and when the Debugger window connects tothe PIC it has the correct 40MHZ. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Aug 11, 2008 12:33 pm |
|
|
Quote: | Where can I view the fuse values on the PIC (namely H4)? |
Look at the end of the .LST file. The fuse settings generated by the
compiler are listed there.
If you want an explanation of the fuses, then look in the Fuses.txt file,
which should be in the compiler directory on your PC. (This file is only
available if you have the CCS IDE compiler).
If you want to know how to read the Config Bits from the PIC, by using
the ICD-U40, someone else will have to tell you. I use the ICD2. |
|
|
|