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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/08/00 10:21
Read: times


 
#3627 - Serial port with Timer2 ???
Dear fellow,

I am trying to get work serial port transmit to PC using 8052 Timer2.

I initialized the serial port as below:

MOV T2CON,#34h ; Rclk an Tclk both set from Timer2.
MOV SCON,#50h ; inti. SCON for serial mode 2, 8bit.
MOV RCAP2H,#0FFh ; load timer reload values to Rcap2H&L.
MOV RCAP2L,#0B8h ; decimal 65464 for 4800bps.

4800bps, 8,n,1 is the setup at PC serial port.

I do not know why I am getting junk characters at pc Windows Terminal .
I have setup TTY terminal, at PC side.

Can someone pointout the mistake I am doing?

Thanks

Rauf

No replies in thread

Back to Subject List