brilliantelc
Junior Member level 1
hi all
can any one help me please in this code:
;SQUARE WAVE GENERATION ROUTINE
TMR0_INIT: MOV TL0,#0F0H
MOV TH0,#0DBH
SETB IE.7 ;iNTRUPPUT ENABLE
SETB IE.1
MOV TMOD,#01H ;
NOP
NOP
SETB TCON.4 ; SET TR1
RET
;*************************
TIMER0: CLR TCON.4 ; CLEAR TR1
CPL P0.7 ; COMPLEMENT P0.7
MOV TL0,#0F0H
MOV TH0,#0D0H
SETB TCON.4
RETI
what does the "SQUARE WAVE GENERATION ROUTINE" means?
can i run the timer of 8051 without any Square Wave?!
thanks
can any one help me please in this code:
;SQUARE WAVE GENERATION ROUTINE
TMR0_INIT: MOV TL0,#0F0H
MOV TH0,#0DBH
SETB IE.7 ;iNTRUPPUT ENABLE
SETB IE.1
MOV TMOD,#01H ;
NOP
NOP
SETB TCON.4 ; SET TR1
RET
;*************************
TIMER0: CLR TCON.4 ; CLEAR TR1
CPL P0.7 ; COMPLEMENT P0.7
MOV TL0,#0F0H
MOV TH0,#0D0H
SETB TCON.4
RETI
what does the "SQUARE WAVE GENERATION ROUTINE" means?
can i run the timer of 8051 without any Square Wave?!
thanks