5.3.3 Operations
The included readme document contains a comprehensive guide for setting up and using the example.
This step-by-step guide demonstrates the example using a terminal application:
- Connect the hardware as described in the readme.
- Download and open the project linked in the example introduction section or create one in MPLAB X using the setup guide.
- Program the device.
- Open puTTY or any other terminal application and start a terminal session for the AVR DU and the Curiosity Nano debugger.
- Enter anything in the terminal window and observe that it appears in the other terminal window.
The Python® script included, demonstrates integrating the Virtual
Serial Port example into other applications without manually initializing terminal
sessions. Follow the above steps up to step 3, then proceed with the following:
- Locate the Python script in the example folder.
- Update the script if any changes are made to the setup
- Run the script and observe that the transmitted hexadecimal values have been received as ASCII characters in both directions.
This example demonstrates a simple USART bridge application, which can be implemented to translate any serial data to and from USART. With minor modifications, it can be adapted to connect any serial interface to a host computer using CDC.