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 is the full-duplex?

1. Can I use the RTX51tiny to implement the full-duplex of the serial port?
(to receive and transmit simultaneous)..

Parents
  • You certainly do not need an RTOS to do this. I have yet to use RTX-51 or any other RTOS for any of my 8051 projects in the last 10 years.

    Mind you, I would like to try it some time but for ISR based UART operation I typically create independent, 256 byte Tx and Rx ring buffers in XDATA and then write putchar() and getchar() to put into and take out of their respective ring buffers.

    The only tricky thing is to make sure putchar() knows to flip the TI bit when starting a transmission while the transmitter is idle (nothing in the Tx ring buffer and nothing being shifted out).

    - Mark

Reply
  • You certainly do not need an RTOS to do this. I have yet to use RTX-51 or any other RTOS for any of my 8051 projects in the last 10 years.

    Mind you, I would like to try it some time but for ISR based UART operation I typically create independent, 256 byte Tx and Rx ring buffers in XDATA and then write putchar() and getchar() to put into and take out of their respective ring buffers.

    The only tricky thing is to make sure putchar() knows to flip the TI bit when starting a transmission while the transmitter is idle (nothing in the Tx ring buffer and nothing being shifted out).

    - Mark

Children
No data