Microchip® Advanced Software Framework

Quick Start Guide for the PICOUART driver

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

  1. Init the PICOUART module
    struct picouart_dev_inst dev_inst;
    struct picouart_config config;
    picouart_init(&dev_inst, PICOUART, &config);
  2. Enable the PICOUART module

Usage steps

picouart_basic_usage_code

  1. configurate the PICOUART to wakeup system
  2. Or configurate the PICOUART to generate event

We can get the received value by

while(!picouart_is_data_ready(&dev_inst)) {
}
picouart_read(&dev_inst, &data);