Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/11/08 06:26
Read: times


 
#158967 - Help need in Timer Interrupt
I want to initialise the interrupt timer but can't do the same with following code please help.

;testing timer
; ORG 0

CALL INTR
jmp 40h

ORG 0BH
JMP IT1

org 40h
MOV SP,#60H
MOV @R1,#0
LOOP: SETB TR0
NOP
JMP LOOP

INTR: MOV SCON,#50H
MOV TH0,#F4H
MOV TL0,#F4H
MOV TMOD,#20H
SETB TR0
RET

IT1: MOV A,@R1
ADD A,#1
DA A
MOV @R1,A
reti

END

List of 6 messages in thread
TopicAuthorDate
Help need in Timer Interrupt            01/01/70 00:00      
    which timer are you using ?            01/01/70 00:00      
      Thanks Arun            01/01/70 00:00      
   where do you set R1?            01/01/70 00:00      
   Multiple Problems            01/01/70 00:00      
      Comments?            01/01/70 00:00      

Back to Subject List