Hi .
I am doing a Project in 8052 McU.i need to have two serial port so i thought of writing soft UART with any two GPIO..i selected P3.2,P3.3 of 8052..can anyone help me...i got some rough idea about the Software..but for a fully complted one i need ur help..can any one have sample code..am confused with serial data controlling i mean how to mimic the functionalit of SCON regster..i dnt even knw wheter it s required or not..pls help someone..
while transimisson which only i copiled and burned to my MCU i got a 'FC' this could be the result of badly mismatched send and receive. set it to transmit 'U' (uppercase U) continously and scope the output.
No, I am not going to tell you what to look for, If you can't figure that out, you should not have started this project.
Erik
eric am not asking to any one to help me in my code..am askng about for exper opinion..do architechture play any role in it..
now i rewrote my code:
here i took ACC^0 to store LSB and send it out..and so on finally MSB.. and a delay with timer0 in 8 bit auto reload mode..to get bit gap in between..and for start and stop bits as well...
i referd bit bagging in wiki and followed the same procedure..and implemented in my code..
is this delay genration relable or i have to put a couple of loops to generate one..
am askng about for exper opinion you got that read the replies above