This is the quick start guide for the Serial Interface module, with step-by-step instructions on how to configure and use the serial in a selection of use cases.
The use cases contain several code fragments. The code fragments in the steps for setup can be copied into a custom initialization function, while the steps for usage can be copied into, e.g., the main application function.
In this use case, the serial module is configured for:
The use case waits for a received character on the configured USART and echoes the character back to the same USART.
The following configuration must be added to the project (typically to a conf_uart_serial.h file, but it can also be added to your main application file.)
A variable for the received byte must be added:
Add to application initialization:
Add to application C-file: