Hi All,
I am using a PIC 16F628A, PicBasicPro and an MELABS serial programmer. When I start playing with timer 1, I killl the PIC. I can erase and read, but not reprogram. I know it is in the T1CON register, and I see poast relating to this issue, but I cn't seem to find out specifically what I am doing wrong. Here is what I think is relavent in the code:
@ DEVICE HS_OSC,MCLR_ON,LVP_OFF,WDT_OFF,PROTECT_OFF
T1CON = %00001010
T1CON.0 = 1
pause 100
T1CON.0 = 0
I see something about giving he timer time to start up, so a pause at the very begining of the program? I also see something about OSC settings, should I be using the internal OSC @ 4mHz, even though am clocking the chip @ 20mHz?
Is there anyway to salavge the chips?
Bookmarks