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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/29/03 21:06
Read: times


 
#61521 - RE: Serial with Timer2 only.
Responding to: ???'s previous message
How? Just by setting both RCLK and TCLK and proceeding like with timer1? I did this and it didn't work, I really wonder why... Could you point me to some resources that do this or tell me if what I tried is right?


MOV A,PCON
SETB ACC.7 ; double baudrate
MOV PCON,A

MOV SCON,#050h ; mode 1; Rec En

MOV T2CON,#030h ;Send+Receive,ign.T2EX,Timer,Reload
MOV RCAP2H,#0
MOV RCAP2L,#0FDh ; 9600baud
SETB TR2 ; Run Timer2

(and then proceed with serial communication just the same way as on T1 (which works): SETB EA,ES,TI...)

List of 7 messages in thread
TopicAuthorDate
Serial with Timer2 only.            01/01/70 00:00      
   RE: Serial with Timer2 only.            01/01/70 00:00      
      RE: Serial with Timer2 only.            01/01/70 00:00      
   RE: Serial with Timer2 only.            01/01/70 00:00      
      RE: Serial with Timer2 only.            01/01/70 00:00      
         RE: Serial with Timer2 only.            01/01/70 00:00      
            RE: Serial with Timer2 only.            01/01/70 00:00      

Back to Subject List