Joe S.
After editing the INC file in PBP I got this message
Error [113] c:\pbp\16f628.inc 22 : Symbol not defined (_HC_OSC)
For your info I'm using 16F628 now cause i broke some of the 16F627a pin while
remove it from my icsp.
Theres already a 10k resistor and a diode in series on my icsp module.
The LED blink when i touch the osc pin.
here's my code:
DEFINE OSC 20
CMCON = 7
OPTION_REG.7 = 0
TRISB.0 = 0
LED VAR PORTB.0 ' alias PORTB.0 to LED
loop:
high LED' turn on LED connected to PORTB.0
Pause 500 ' delay for .5 seconds
low LED ' turn off LED connected to PORTB.0
Pause 500 ' delay for .5 seconds
GoTo loop ' loop and blink LED forever
Bookmarks