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
  • hi,

    Thanks for ur reply,

    first of all my need is to create a half duplex virtual UART for my 8052.this code is not a full version,i know its not even close.am a fresher in MCU programming.i got 2 days time from my senior to complete this,and my time will end by this Saturday evening.am a bit desperate to complete it on time.am giving timer 0 to put delay in between individual bits.and setting up baud rates i also need the TH0 of timer 1 i believe.i have googled it but i was a bit misguided.

    1.taking one interrupt
    2.setting one timer for delay
    3.sending individual bits
    4.start stop condition

    is this much necessary for it.

Reply
  • hi,

    Thanks for ur reply,

    first of all my need is to create a half duplex virtual UART for my 8052.this code is not a full version,i know its not even close.am a fresher in MCU programming.i got 2 days time from my senior to complete this,and my time will end by this Saturday evening.am a bit desperate to complete it on time.am giving timer 0 to put delay in between individual bits.and setting up baud rates i also need the TH0 of timer 1 i believe.i have googled it but i was a bit misguided.

    1.taking one interrupt
    2.setting one timer for delay
    3.sending individual bits
    4.start stop condition

    is this much necessary for it.

Children