Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pic 18f4520 timer issue

Status
Not open for further replies.

raman00084

Full Member level 6
Joined
Nov 29, 2010
Messages
362
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,006
in my project i am using timer0 (16.3ms overflow, internal oscillator) in that timer0 isr i am incrementing a count variable if count is 10 means led will toggle then i will clear the count to zero so that led will be flashing on and off this works fine. If i switch on and off the power some times that is say for an instance 5 times once the led is not toggling it takes longer time to toggle, the same code i tested with another board that works fine. what could be wrong the pic may be fault only starting problem once its gets started it keeps on working good why this problem comes kindly help

regards
kalyan
 

hi,
if the cip where faulty it would not work at all. I think it depends on the oscillator at start up. I'm not shore, but i remember that some mcu-s can start up on internal oscillator before switching to external crystal mode . See datasheet at power on conditions.
 

Hi,

If it works ok on one board but not another it does suggest a hardware fault but without seeing your circuit its hard to say.

However its equally likely you have made some error in the program code or programming method; how are you entering the chips Config details, in the code or separately during programming.
Again show your code so we can see what you are doing.

You could try a simple software delay to flash the led to see if that works ok on the 'suspect' chip
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top