What code did you use?
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 17: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
Interesting. I opened the same .hex file, and it looks llike the attached.
hs osc, wdt off, protect off.
Sounds like something odd going on with your programmer, or you're not
selecting the correct PIC?
OK, now I'm really confused. My snappy is attached and compared to yours.
What other options do you have enabled/disabled? See attached.
I compared yours to mine and the only thing that I didn't have checked was "reread file before programming." I made mine match yours, tried again and still nothing. I did a read and the configuration on the IC is still 0000- 0ffa.
When you do a read, what do you get on your configuration?
Bookmarks