1.31 UART Auto-baud
This example application demonstrates how to use auto-baud feature of UART peripheral.
Description
This example application demonstrates how to use auto-baud feature of UART peripheral. After programing the device and connecting to the UART terminal, device detects the baud rate configured in the computer utility and start communicating with that baud rate.
Downloading and Building the Application
To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.
Path of the application within the repository is apps/uart/uart_autobaud_interrupt/firmware.
To build the application, refer to the following table and open the project using its IDE.
Project Name | Description |
---|---|
pic32mk_gp_db.X | MPLABX project for PIC32MK GP Development Kit |
Setting Up the Hardware
The following table shows the target hardware for the application projects.
Project Name | Description |
---|---|
pic32mk_gp_db.X | PIC32MK GP Development Kit |
Setting Up PIC32MK GP Development Kit
- Connect the Debug USB port (J12) on the board to the computer using a micro USB cable
- Connect the USB to UART port (J25) on the board to the computer using a micro USB cable
Running the Application
- Open the Terminal application (Ex.: Tera term) on the computer
- Connect to the “USB to UART” COM port and configure the serial settings as
follows:
- Baud : Any
- Data : 8 Bits
- Parity : None
- Stop : 1 Bit
- Flow Control : None
- Build and Program the application project using its IDE
- Console will not show any message in the beginning
- Type letter “U” in the terminal, that will enable auto-baud and following message appears on the terminal: