mwhatley
- 3rd November 2006, 15:09
Is anyone using the 16F716 ? I'm having trouble getting one to start up. A new project design uses one of these and it new to me. I have one on my proto board and it will not 'spin up'. Vdd and Vss are correct - MCLR tied high - 4 Mhz xtal w/22 pf caps - all the normal stuff. It will program BUT excatly every other time the programming attempt will end with an error that says "Code Programming Error at 0003". Using MCSP and ME Labs programmer. Here is the test code:
@ device pic16f716, XT_OSC
@ device pic16f716, WDT_OFF
@ device pic16f716, PWRT_ON
@ device pic16f716, BOD_OFF
@ device pic16f716, PROTECT_OFF
@ device pic16f716, VBOR_25
Led var PORTB.3
trisa = %11111111
trisb = %00000000
main:
HIGH Led
pause 100
low led
pause 100
goto main
end
I've tried the other option for the last @ device line (VBOR_40) with no joy.
Am I missing something in the data sheet about this PIC?
@ device pic16f716, XT_OSC
@ device pic16f716, WDT_OFF
@ device pic16f716, PWRT_ON
@ device pic16f716, BOD_OFF
@ device pic16f716, PROTECT_OFF
@ device pic16f716, VBOR_25
Led var PORTB.3
trisa = %11111111
trisb = %00000000
main:
HIGH Led
pause 100
low led
pause 100
goto main
end
I've tried the other option for the last @ device line (VBOR_40) with no joy.
Am I missing something in the data sheet about this PIC?