Just starting out with the PIC's and don't understand why I can't get three LED's to all flash on and off at a 1/2 second rate. Using 12F675 with PBP with the following code:
Start: HIGH 0
HIGH 1
HIGH 2
PAUSE 500
LOW 0
LOW 1
LOW 2
PAUSE 500
GOTO Start:
With this code GPIO.0 goes on and off at a ~1.7mS rate. GPIO.1 and GPIO.2 are always off. Shouldn't all three go on and off?
I can rewrite the code and drop off the first pause and put the GOTO in it's place and all three will come on and stay on as expected.
All three outputs can be programmed individually to flash in any order or rate.
Looking for ideas please?
Bookmarks