CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

H4 fuse ignored in PCW even after power cycle

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
orionCLAB



Joined: 07 Aug 2008
Posts: 0

View user's profile Send private message

H4 fuse ignored in PCW even after power cycle
PostPosted: Thu Aug 07, 2008 1:14 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Aug 11, 2008 12:33 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group