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

Actual LVP Expected NOLVP

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







Actual LVP Expected NOLVP
PostPosted: Mon Jun 09, 2008 10:25 am     Reply with quote

I have just started using the 18F452 in place of the 16F877A and get a rather weird result when programming. After programming I get the fuses as in the subject. I have set the NOLVP in the #fuses after the programming it states Actual LVP. The 47K resistor is in place and I am using the U40 programmer in windows XP. I have installed all the latest updates except the U-40 firmware. When I switch back to the 16F877A it works fine! Both use 20MHz crystal clock. Also some times the PIC18F452 programs and other times it states that all the flash is at FF.

Anybody have any Ideas.
Ttelmah
Guest







PostPosted: Mon Jun 09, 2008 2:41 pm     Reply with quote

One possibility would be, if you are not doing a 'full erase' (most programmers have an option to enable this), that the WRTC bit is set, so the configuration registers are write protected, in which case if the LVP bit was set in the past, it won't clear in normal programming.

Best Wishes
ahinst
Guest







PostPosted: Mon Jun 09, 2008 11:45 pm     Reply with quote

Hi Ttelmah,

Thanks for the try. I have checked and the U-40 and associated SW does in fact reset all the bytes including the fuses to FF before loading the HEX file into the PIC. So it must be something else I or the SW is doing wrong.

Any other ideas?

regards
ahinst
Guest







PostPosted: Tue Jun 10, 2008 12:32 am     Reply with quote

Hi Ttelmah,

I found it! a lose (dry joint on the MCLR! re-soldering the unit then made it work.

Thanks for you help.
Ttelmah
Guest







PostPosted: Tue Jun 10, 2008 2:07 am     Reply with quote

If in doubt, look at the hardware. Smile
Well Done.

Best Wishes
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