4 Receive Control Commands
One important usage of the EUSART represents the implementation of a command line interface. This way, the microcontroller can receive control commands via EUSART. It is convenient to use the line terminator as command delimiter, so for this use case, EUSART will read full lines and then check if the line contains a valid command.
This use case follows the steps:
- Configure the system clock
- Configure EUSART2
- Configure the pins
- Implement STDIO receive and send functions
- Read lines and execute valid commands