Other Parts Discussed in Thread: ENERGIA,
Hello,
Learning UART on the launchpad, I have created a simple Energia program to send out letters serially that can be displayed on a serial monitor such as Putty. In its current configuration, the launchpad is transmitting data out of the debugger's virtual serial port via the USB cable to my PC.
I would now like to do this using one of the available serial UART Tx pins of the EK-TM4C123GXL to send the data to a different device on a breadboard. I would like, for, instance to have data transmitted out of the TxD pin (circled in the image below) OR any other serial UART Tx pin on the board (orange labels).
Is there a way to simply specify a certain Tx pin in the code below? Documentation lists Serial1, Serial2, Serial3,....etc, however, no specific pins are mentioned. "Serial" appears to be linked to pins PA0 & PA1 from the schematics, however, they don't appear to be broken out (unless TXD circled below is A0?).
I also realize that if I wanted to monitor a Tx pin on the PC, I would first need to connect that Tx pin to a 3.3V TTL to USB converter prior to connecting it to my PC, or so I think?
Any insight on this would be highly appreciated!
Code:
void setup() {
Serial.begin(9600); //Baud Rate
}
void loop() {
Serial.write(0x41); //Sends A to the Serial Monitor
Serial.write(0x42); //Sends B to the Serial Monitor
Serial.write(0x43); //Sends C to the Serial Monitor
delay(1000); //Repeat every 1 Sec
}
Output: