siva0182
Junior Member level 1
at89s52 debug
I am a mechanical engineering student and having a tough time working with microcontrollers..PLease do help me solving this problem..
I have made the circuit for my AT89s52 in a PCB board and have written the .Hex file inside the controller.
The program recieves input thro serial port from the computer thro RS232 and pgm processes the input and sends suitable output to port 2..which then goes into a multiplexing circuit..
But right now my whole circuit is not working...I dont know where there is problem...
How can i measure the output of port 2.? And also how do i check if the serial port is transferring input ?(Baud rate bits etc wer same..but the for flow control type i am not sure which one i should use XOn/XoFF or None or hardware..
Any ways I am uploading my circuit diagram schematic and also the Rxd is connected to transmit pin of Rs232 and Txd is connected to Read pin of Rs232.
Also the output in the diagram is shown as port 1 but it is actually port 2.
I tried sending data thro hyperterminal..The pgms shows status as connected but the circuit is not working.
Please suggest debugging measures and methods.Also I want to verify my PCB circuit so is there any reference circuits for AT89S52.
(P.s:internal pgm has worked in previous projects.)
I am a mechanical engineering student and having a tough time working with microcontrollers..PLease do help me solving this problem..
I have made the circuit for my AT89s52 in a PCB board and have written the .Hex file inside the controller.
The program recieves input thro serial port from the computer thro RS232 and pgm processes the input and sends suitable output to port 2..which then goes into a multiplexing circuit..
But right now my whole circuit is not working...I dont know where there is problem...
How can i measure the output of port 2.? And also how do i check if the serial port is transferring input ?(Baud rate bits etc wer same..but the for flow control type i am not sure which one i should use XOn/XoFF or None or hardware..
Any ways I am uploading my circuit diagram schematic and also the Rxd is connected to transmit pin of Rs232 and Txd is connected to Read pin of Rs232.
Also the output in the diagram is shown as port 1 but it is actually port 2.
I tried sending data thro hyperterminal..The pgms shows status as connected but the circuit is not working.
Please suggest debugging measures and methods.Also I want to verify my PCB circuit so is there any reference circuits for AT89S52.
(P.s:internal pgm has worked in previous projects.)