microchip-pic-avr-examples / avr128da48-cnano-manchester-mplab-mcc

The repository contains two MPLAB® X projects: * *Manchester Encoder* and *Decoder*: using Core Independent Peripherals (CIPs) by following the interaction between TCB, USART, Event System, and CCL peripherals.
Other
2 stars 1 forks source link
core-independent-peripheral serial-communication

MCHP

Manchester Encoder and Decoder - Use Case for CIPs Using the AVR128DA48 Microcontroller with MCC Melody


The repository contains two MPLAB® X projects:


Related Documentation

More details and code examples on the AVR128DA48 can be found at the following links:

Software Used

Hardware Used

Operation

To program the Curiosity Nano board with this MPLAB X project, follow the steps provided in the How to Program the Curiosity Nano Board chapter.

Demo

In the demo, the Microchip! message was inserted by the user in the terminal. Pin PD3 of the encoder platform (the output pin for the Manchester encoded signal) is connected to pin PB2 of the decoder board and visualized using the MPLAB Data Visualizer plug-in.


How to Program the Curiosity Nano Board

This chapter demonstrates how to use the MPLAB X IDE to program an AVR® device with an Example_Project.X. This is applicable to other projects.

  1. Connect the board to the PC.

  2. Open the Example_Project.X project in MPLAB X IDE.

  3. Set the Example_Project.X project as main project.
    Right click the project in the Projects tab and click Set as Main Project.

  4. Clean and build the Example_Project.X project.
    Right click the Example_Project.X project and select Clean and Build.

  5. Select AVRxxxxx Curiosity Nano in the Connected Hardware Tool section of the project settings:
    Right click the project and click Properties.
    Click the arrow under the Connected Hardware Tool.
    Select AVRxxxxx Curiosity Nano (click the SN), click Apply and then click OK:

  6. Program the project to the board.
    Right click the project and click Make and Program Device.


Menu