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.
Bookmarks