Hi all,
I have problem with my first experience with of PBP PIC
My first attemp is blink an LED.
here is my program
CMCON = 7
TRISB.1 = 0
LED VAR PORTB.1 ' alias PORTB.4 to LED
loop: high LED ' turn on LED connected to PORTB.1
Pause 5000 ' delay for 5 seconds
low LED ' turn off LED connected to PORTB.1
Pause 1000 ' delay for 1 seconds
GoTo loop ' loop and blink LED forever
My problem
The LED did not turn on but when I (accidently) touch one of the pic pin the
led will on for a while then off again.
Can somebody help me with this problem.
Really need help from all the gurus in this forum.
Thanks and regards.
Bookmarks