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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/12/05 08:50
Read: times


 
#87192 - what is wrong?
Hi, sorry to be troubling you guys again, I am still stuck on the serial communication that I have previously mentioned earlier.

My circuit is connected this way,

the AT89S51 is connected with the necessary 33pF capacitors, a 12MHz crystal

ALE is enabled, and the TxD pn is connected to the MAX232's pin 11 (T1 IN)

At the MAX232, i have 5 0.1uF capacitors, one connected from pin 1 to pin 3, another from pin 4 and pin 5, another from pin 6 to GND, another from pin 2 to 5V, and last one from pin 16 to GND.

The MAX232's pin 14 (T1 OUT) is connected to to DB9 female connectors pin 2 and DB9 pin 5 is connected to GND.

WHat I need the circuit to do is just to transmit a stream of character "A"s to the serial port and the codes are below:

ORG 0000H

MOV TMOD, #20H
MOV TH1, #-7
MOV SCON, #52H
SETB TR1

SERIAL: CLR TI
MOV A, #'A'
MOV SBUF, A
JNB TI, SERIAL
SJMP SERIAL
END

The problem I'm facing now is that I use the Hyperterminal software to test it and put at 9600 baud rate it doesn't receive any signals while at 15200 baud rate it gets a stream of rubbish characters but the funny thing is when I test the pins using the multimeter, theer isn't any voltage coming out of the AT89S51's TxD pin and at times when I on the circuit all pins from 1-20 are set HIGH. Can somebody please help me?

List of 16 messages in thread
TopicAuthorDate
what is wrong?            01/01/70 00:00      
   Oscilloscope.            01/01/70 00:00      
   this is what is wrong            01/01/70 00:00      
      thanks            01/01/70 00:00      
         signals            01/01/70 00:00      
   max232            01/01/70 00:00      
   Review your hardware            01/01/70 00:00      
      MAX202            01/01/70 00:00      
         Re: MAX202            01/01/70 00:00      
   change baud rate to 2400/1200            01/01/70 00:00      
   Check this!            01/01/70 00:00      
   change caps to 10Uf.            01/01/70 00:00      
   maybe 8051 not work            01/01/70 00:00      
      capacitor values correct?            01/01/70 00:00      
         Re: capacitor values            01/01/70 00:00      
         and here            01/01/70 00:00      

Back to Subject List