Uploaded by Apna Tech

Assignmnent 2

advertisement
Name
KAHIF ZAMAN
REG
FA19-EPE-052
TEACHER
Sir Biktash
CLASS
5B
#include<P18F452.INC>
org 2AH
BCF TRISB,RB0
MOVLW 01H
MOVWF T0CON
AGAIN
MOVLW 9Eh
MOVWF TMR0H
MOVLW 58H
MOVWF TMR0L
BCF INTCON,TMR0IF
BSF T0CON,TMR0ON
ABC
BTFSS INTCON,TMR0IF
BRA ABC
BCF T0CON,TMR0ON
BTG PORTB,RB0
BRA AGAIN
END
Download