- Jan 1, 1970
The project is a 10 LED bargraph indicator timed over 10 seconds. The
10 LEDs should light or extinguish at one second intervals according
to the pressing of Button#1 (Down) and Button#2 (Up).
I have written some code using the PULSIN command and IF-THEN
statements to light the LEDs but I can only get the first LED lit
before it has to return to the main loop and start again. Forever
going through the first If-THEN and no further.
Without a schematic and your source code, it will be quite difficult to
debug this from here. ;-) However, it sounds from your description
like the watch-dog timer could possibly be the problem. Make sure that
it is disabled.
How do I go about making this work? Does anyone have some sample code
I could adapt?
Any help is greatly appreciated here.
In addition though it's not shown in the schematics I assume that a
bypass cap is required across a PICs V+/V-. Correct?
It won't hurt.