5.2.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:
  1. Connect the hardware as described in the readme.
  2. Download and open the project linked in the example introduction section or create one in MPLAB X using the setup guide.
  3. Program the device.
  4. Open the MPLAB Data Visualizer and start the terminal communication session.
  5. Enter anything in the terminal window and watch it echo back as the enter key is pressed.
The Python® script included, demonstrates integrating the Virtual Serial Port example into other applications without manually initializing a terminal session. Follow the above steps up to step 3, then proceed with the following:
  1. Locate the Python script in the example folder.
  2. Update the script if any changes are made to the setup.
  3. Run the script and observe that the transmitted hexadecimal values have been echoed back as ASCII characters.

This example serves as a foundational demonstration of how to transmit data using the CDC class to and from the AVR DU. With minor modifications, this example can be adapted to receive commands or transmit sensor data, making it a versatile starting point for various applications.