Guest
Hello,
I'm in the process of learning to program the 16F84A PIC. I understand
that it's "old hat" but the PIC came with the programmer and they were
out of stock of the 16F628A PICs. I currently have an old version of
PicBasic Pro which can handle up to 16F84 PICs but seems to program
the 16F84A O.K. Once I'm familiar with the basics I'll probably
upgrade to the Oshon Pic Simulator IDE for the 16F628A.
I've decided to do a project for someone else to help me learn and so
far after much effort I'm gotten almost nowhere.
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.
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?
Cheers,
Andrew.
I'm in the process of learning to program the 16F84A PIC. I understand
that it's "old hat" but the PIC came with the programmer and they were
out of stock of the 16F628A PICs. I currently have an old version of
PicBasic Pro which can handle up to 16F84 PICs but seems to program
the 16F84A O.K. Once I'm familiar with the basics I'll probably
upgrade to the Oshon Pic Simulator IDE for the 16F628A.
I've decided to do a project for someone else to help me learn and so
far after much effort I'm gotten almost nowhere.
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.
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?
Cheers,
Andrew.