RoboRepublic
Member
Hi there
I've been curious to know if the documentation available here: https://www.pjrc.com/teensy/td_uart.html is misleading.
Specifically the sections labeled:
I believe the descriptions need to be swapped. Such that when the RTS pin goes high, teen will pause transmission, and when CTS pin goes high, its expected that the connected other device will pause it's transmission.
Could someone confirm this observation? Or am I misunderstanding some perspective here
Thanks!
I've been curious to know if the documentation available here: https://www.pjrc.com/teensy/td_uart.html is misleading.
Specifically the sections labeled:
Code:
Serial1.attachRts(pin)
Serial1.attachCts(pin)
I believe the descriptions need to be swapped. Such that when the RTS pin goes high, teen will pause transmission, and when CTS pin goes high, its expected that the connected other device will pause it's transmission.
Could someone confirm this observation? Or am I misunderstanding some perspective here
Thanks!
Code:
Serial1.attachRts(pin)
Enable RTS flow control. The specified pin becomes an output. Low indicates the Teensy is ready to recieve data. High is a request for the other device to pause transmission. RTS is driven high before Teensy's receive buffer is full, to allow tolerance for devices which do not immediately pause transmission in response to RTS.
This function must be called after Serial1.begin();
The RTS output from Teensy should be connected to the CTS input on the other serial device, similarly to the TX output connecting to the other device's RX input. Do not simply connect same-named signals with serial.
Supported only on Teensy LC, 3.0 - 3.6. Any digital pin may be used.
Code:
Serial1.attachCts(pin)
Enable CTS flow control. When this pin is driven high, Teensy will pause transmission after the currently transmitting byte (if any) is completed.
This function must be called after Serial1.begin();
The CTS input from Teensy should be connected to the RTS output on the other serial device, similarly to the RX input connecting to the other device's TX output. Do not simply connect same-named signals with serial.
Supported only on Teensy 3.0 - 3.6. Only specific pins may be used.