Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list p=PIC18f8722
- #include p18f8722.inc
- ; Begin
- code 0
- goto initialize
- udata
- temp res .1
- ; Start
- PRG code
- initialize
- movlw b'00001111' ; bit mask
- bcf PORTA, 4
- main
- andwf PORTA, W
- movwf temp
- movlw b'00001111' ; bit mask
- cpfseq temp
- bra exit
- bsf PORTA, 4
- exit
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement