The Serial Communications Interface (SCI), also known as Universal Asynchronous Receiver Transmitter (UART) can be used for serial communication. Messages of 8 Bit can be transferred via up to three SCI-Modules: SCI_A, SCI_B, SCI_C. Each module can only be used once.
For the configuration of one of the SCI-modules, user needs to create an instance of SCIInterface and assign the GPIOs of desired SCI-Module to it (see table below).
With Tx and Rx Pin, the SCI-Module can use full-duplex communication with specific baud rate, that also needs to be assigned to SCIInterface instance. Standard baud rates for SCI are 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000 and 256000 bits per second.
Rx | Tx | |
---|---|---|
SCI_A | GPIO28 | GPIO29 |
SCI_B | GPIO11 / GPIO 15 / GPIO19 / GPIO23 | GPIO9 / GPIO14 / GPIO18 / GPIO22 |
SCI_C | GPIO62 | GPIO63 |
Use SCI-module without interrupts
Use SCI-module with interrupts