Yes, same exact results as above.
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
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.
Bookmarks