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

How to implement 2 serial port for interfacing with a single UART microcontroller

I am designing an interface board based on a single UART 8051 family microcontroller.The interface needs two serial port;one for system serial bus and another for networking through a serial-ethernet converter.Is it possible to implement a software UART using two normal pin of micro?Is there any way to share the single UART of the micro for the two puposes?
Any solution will be appreciated.

Parents
  • Dear Rahim,

    Regards,

    You answer is "Yes"
    I have seen this technique in some industrial boards .
    You must simulate pulse width on the port bit that you want to use serial exactly.
    Your pulse width is based on your desired baud rate and start bit and stop bit must be applied .
    You must use Interrupt and Timers for this reason .

Reply
  • Dear Rahim,

    Regards,

    You answer is "Yes"
    I have seen this technique in some industrial boards .
    You must simulate pulse width on the port bit that you want to use serial exactly.
    Your pulse width is based on your desired baud rate and start bit and stop bit must be applied .
    You must use Interrupt and Timers for this reason .

Children
No data