SHARE
TWEET

mim2

a guest Oct 13th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             LIST        P=10F202
  2.             INCLUDE     p10f202.INCLUDE
  3.  
  4.             ORG         000H           ; next instruction will be out at 0 address
  5.  
  6.             MOVLW       11011111B      ; plug off GP2 from timer
  7.             OPTION
  8.  
  9.             MOVLW       11111000B      ; set pins 0, 1, 2 of GPIO to low state
  10.             MOVWF       GPIO
  11.  
  12.             MOVLW       11111000B      ; set pins 0, 1, 2 pins GPIO as output
  13.             TRIS        GPIO
  14.  
  15.             INCF        GPIO, F        ; reset by watchdog
  16.             BTFSC       STATUS, NOT_TO ; check if reset was by watchdog
  17.             CLRF        GPIO           ; first run
  18.  
  19.             SLEEP
  20.  
  21.             END
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top