This is the quick start guide for the PICOUART - Picopower UART, with step-by-step instructions on how to configure and use the driver for a specific use case.The code examples can be copied into e.g the main application loop or any other function that will need to control the PICOUART module.
Use cases
PICOUART basic usage
This use case will demonstrate how to initialize the PICOUART module to wakeup system or generate event.
Setup steps
Prerequisites
This module requires the following service
picouart_basic_setup_code
Add this to the main loop or a setup function:
Or
picouart_basic_setup_workflow
- Init the PICOUART module
- Enable the PICOUART module
Usage steps
picouart_basic_usage_code
- configurate the PICOUART to wakeup system
case '0':
printf("Enter backup mode with start bit wakeup.\r\n");
break;
case '1':
printf("Enter backup mode with full frame wakeup.\r\n");
break;
case '2':
printf("Enter backup mode with character match wakeup.\r\n");
config.match = 'L';
break;
- Or configurate the PICOUART to generate event
case '0':
break;
case '1':
break;
case '2':
config.match = 'L';
break;
We can get the received value by