Using multiple UART
Ameba board provides two UART sets (not including Log UART). Corresponding pins can be found in the figure below.
For version 1.0.5 or earlier, only one UART set can be used at a time. From version 1.0.6, two UART sets can be used simultaneously.
Code reference:
SoftwareSerial myFirstSerial(0, 1); // RX, TX, using UART0 SoftwareSerial mySecondSerial(3, 17); // RX, TX, using UART2 void setup() { myFirstSerial.begin(38400); myFirstSerial.println("I am first uart."); mySecondSerial.begin(57600); myFirstSerial.println("I am second uart."); }
Realtek IoT/Wi-Fi MCU Solutions . All Rights Reserved. Terms of Use