This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Software for 8051 Uart communcation

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..

Parents
  • There are many examples available, just use 'google' or similar.

    Like an 20 year old application note for the 80c751 derivative which can be found:

    Duplex UART Routines for the 751/752" from 8/20/1992

    smartdata.usbid.com/.../an446.pdf

    That example works, but it is a little bit weak in concept, it could work
    at higher baudrate and more reliable; but you will locate these things
    yourself if you fully unserstand how that is done, won't you?

Reply
  • There are many examples available, just use 'google' or similar.

    Like an 20 year old application note for the 80c751 derivative which can be found:

    Duplex UART Routines for the 751/752" from 8/20/1992

    smartdata.usbid.com/.../an446.pdf

    That example works, but it is a little bit weak in concept, it could work
    at higher baudrate and more reliable; but you will locate these things
    yourself if you fully unserstand how that is done, won't you?

Children