??? 02/12/05 14:25 Read: times |
#87205 - Review your hardware Responding to: ???'s previous message |
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 Usually it happens when the transmitter and receiver baud rates or other communication parameters don't match. 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 First of all let me tell you that a multimeter is not a good enough instrument to check for rapidly changing port pin activity especially when the waveform is not continuous for a long enogh time for the multimeter to measure the average DC. Secondly I don't believe that on an AT89S51 (powered by 5V) you measure all pins 1-20 as high. Remember pin 20 is GND. How can it be high? Are you sure? Ok if pin 20 is grounded and you see pin 9 as high, there must be something wrong with your Reset circuit. What are you using for Reset? Also if you have MAX232C then 0.1 caps are fine otherwise you need 1uF capacitors as Peter already suggested. I would suggest you to do as follows: 1) Remove micro from socket and power up the circuit. Does PC receive garbage? 2) For the time being forget serial communication and try running a very simple program to test your hardware. You can set TXD (P3.1 ?) high for 1 second and low for another second and repeat it in a loop. Now with your DMM check if TXD switches state from high to low and vice versa? If yes, now check at pin 14 of MAX232 (T1 Out). You should see a DC voltage with +10V and -10V values with the same timing, of course. 3) If you can't see any activity on TXD then check your Reset circuit, oscillator, state of EA, power supply, decoupling capacitor etc. |
Topic | Author | Date |
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 |