I'm not using ICSP. I made up an adapter cable to go directly from the programmer to the IC on a bread board.
I'm then disconnecting the program cable and testing the IC with an external power supply.
I'm not using ICSP. I made up an adapter cable to go directly from the programmer to the IC on a bread board.
I'm then disconnecting the program cable and testing the IC with an external power supply.
Strange. I would try another resonator or crystal.
Source and .hex attached.Code:@ device pic16F57, hs_osc, wdt_off, protect_off DEFINE OSC 20 Time VAR BYTE TRISB = 0 ' all outputs Time = 10 Main: PORTB = 0 PAUSE Time PORTB = 255 PAUSE Time Time=Time+10 IF Time >= 250 THEN Time = 10 GOTO Main END
Note: You can't disable /MCLR on this one, so make sure you have the external pull-up.
Last edited by Bruce; - 2nd March 2009 at 16:14. Reason: /MCLR pull-up
OK, when I open your code with the programmer the configuration reads:
After I install it on the IC, then read it, this is what I get:Code:0000- 000a
I have no idea if this means anything or not.Code:0000- 0ffa
Bookmarks