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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/01/03 06:17
Read: times


 
#47155 - RE: serial communication with AT89C2051
Responding to: ???'s previous message
Yeah i did figure that out and started using timer 1.
but the pc is still not respond. i wrote a program to send a single string with some delay. i am able to see flickring on the txd pin if i connect a led to it. but using a max232 chip i am still not able to send anything to the pc. the initialisation routine is given below


INIT clr TR1 ;stop timer 1
mov TH1,#0FAH ;256-6: 9600 baud
mov TL1,#0FAH
anl TMOD,#0FH ;Timer1: 8 bit auto- reload
orl TMOD,#20H
setb TR1 ;start timer
mov SCON,#50H ;InitRS232
setb TI
orl PCON,#80H ;SMOD=1


is there something wrong.
this routine is working fine on the 89s8252 with a 11.0592MHz crystal.

vinod


List of 14 messages in thread
TopicAuthorDate
serial communication with AT89C2051            01/01/70 00:00      
   RE: serial communication with AT89C2051            01/01/70 00:00      
      RE: serial communication with AT89C2051            01/01/70 00:00      
   RE: serial communication with AT89C2051            01/01/70 00:00      
      RE: serial communication with AT89C2051            01/01/70 00:00      
         RE: serial communication with AT89C2051            01/01/70 00:00      
            RE: serial communication with AT89C2051            01/01/70 00:00      
               RE: serial communication with AT89C2051            01/01/70 00:00      
            RE: serial communication with AT89C2051            01/01/70 00:00      
               still not sucessful            01/01/70 00:00      
   RE: serial communication with AT89C2051            01/01/70 00:00      
      RE: serial communication with AT89C2051            01/01/70 00:00      
   RE: serial communication with AT89C2051            01/01/70 00:00      
   Try this code            01/01/70 00:00      

Back to Subject List