Definitely getting somewhere. I have the PIC working, but it's blinking the wrong pin! As far as I can tell, it SHOULD be blinking RB4, pin 10, but it is actually blinking RB0, pin 6. It's also not blinking as fast as it should - it should change states every 5 ms, but it's changing about every 1 s. Is there some reason RB0 would hop up and down? It's the same on two different chips as well.
Code:
@ DEVICE PIC16F88, MCLR_ON, HS_OSC, WDT_OFF, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF
ANSEL = 0
CMCON = 7
TRISB.4 = 0
LED var PORTB.4
blink: LED = 1
Pause 5
LED = 0
Pause 5
goto blink
End
This is encouraging but I've got a long way to go if I can't even get the 'F88 to blink the right port pin...
Bookmarks