Professional Documents
Culture Documents
Led Program Pic 18
Led Program Pic 18
inc>
reg10 equ 0x10
org 0x00
movlw 0x00
movwf TRISB
back: movlw 0x00
movwf PORTB
call DELAY
movlw 0x01
movwf PORTB
call DELAY
goto back
DELAY: movlw D'255'
movwf reg10
UP: decf reg10,1
bnz UP
return
end