Use of UARTs on Teensy 3.1

Status
Not open for further replies.

RLN37

Member
There are 3 UARTs on Teensy 3.1 I need to use two of them for my application. Is there an Arduino example available that demonstrates use of these UARTs?

And BTW, the word "serial" is far too much over-used here. It is used when referring to comms back to the attached PC, and also when referring to USB comms of various sorts, and then again when talking about UARTs, USARTs, RS-232, RS-485, etc. Life would be simplified, and less confusing and error prone, if we all got a bit more specific when referring to the different kinds of serial comms.
 
The three UARTs are accessed by the Serial1, Serial2, and Serial3 objects, each of which has corresponding pins on the Teensy, for example Rx1 and Tx1. The serial objects are used just like you would the Serial object which "talks" to the USB port.
e.g. output to Serial3:
Code:
void setup(void)
{
  Serial3.begin();
  Serial3.println("Whatever");
}
void loop(void){}

Pete
 
Maybe this page could help?

http://www.pjrc.com/teensy/td_uart.html

Regarding....

And BTW, the word "serial" is far too much over-used here. It is used when referring to comms back to the attached PC, and also when referring to USB comms of various sorts, and then again when talking about UARTs, USARTs, RS-232, RS-485, etc. Life would be simplified, and less confusing and error prone, if we all got a bit more specific when referring to the different kinds of serial comms.

Do you have any specific recommendations of where the language on the website should be more specific?
 
Status
Not open for further replies.
Back
Top