Look at Archangel's code here:
http://www.picbasic.co.uk/forum/show...hlight=16f628a
He has these also (for 16F628 - not sure if it applies to you):
Code:
T1CON = %00000011
OPTION_REG = %01010111
What if you disable BODEN and PWRTE?
What about your voltage, it is at 5V right?
I don't use the low voltage 16F628A, I used the regular 16F628.
Robert
P.S.: To get your code to come out right (missing %), hover your mouse over the A icon at far left when you post, you want to be in SOURCE mode, not WYSIWYG.
EDIT: What about the resistor on MCLR?
http://www.picbasic.co.uk/forum/showthread.php?t=16188
His code works for 16F628A and internal oscillator.
Note he is using PM instead of MPASM, so his CONFIG syntax is a bit different.
He used CLKOUT instead of NOCLKOUT, not sure what difference that makes.
Can you post a drawing of your circuit, a JPG from Paintbrush would be fine.
Bookmarks