Hi, I have had success testing other chips, but this 16F88 is driving me crazy...I have read all over this forum and google and cannot find out why...
First off, I have 5v power and ground hooked up correctly and have MCLR pullup attached. I am using picbasic pro 2.46 and EPIC programmer.
I am just trying to verify that I can do simple I/O before heading into my project, but when I test my blink program, no matter what I set the PAUSE to, the LED just flickers like crazy and sometimes very randomly...
Here is my code:
----------------------------
@ DEVICE INTRC_OSC, LVP_OFF, WDT_OFF, MCLR_OFF
DEFINE OSC 8
OSCCON = %01110000 ' INTRC = 8MHz
Pause 500 ' Wait for startup
loop:
LOW PORTB.4
Pause 5000 ' Wait 5 second
HIGH PORTB.4
Pause 5000 ' Wait 5 second
Goto loop ' Do it forever
END
------------------------------
The input voltage is stable, and I have 2 16f88 chips, so it is not a bad chip.
Thanks!
Bookmarks