Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LIST p=16F887
- #include <p16F887.inc>
- __CONFIG _CONFIG1, _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
- __CONFIG _CONFIG2, _WRT_OFF & _BOR21V
- cblock 0x20
- Display
- Delay1
- Delay2
- endc
- org 0
- Start:
- bsf STATUS,RP0
- clrf TRISD
- bcf STATUS,RP0
- movlw 1
- movwf Display
- OloloLoop:
- movf Display,W
- movwf PORTD
- OloloDelay:
- decfsz Delay1,f
- goto OloloDelay
- decfsz Delay2,f
- goto OloloDelay
- bcf STATUS,C
- rlf Display,f
- btfsc STATUS,C
- bsf Display,0
- goto OloloLoop
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement