This repository provides two MPLAB® X projects that show how to dynamically change the configuration for MTCH9010 using the Enhanced Configuration mode or the configuration input pins. The PIC18F56Q71 microcontroller is used as a host device to set the configuration parameters.
- MTCH9010 Product Page
- PIC18F56Q71 Product Page
- PIC18F56Q71 Code Examples on Discover
- PIC18F56Q71 Code Examples on GitHub
- The PIC18F56Q71 Curiosity Nano Development board is used as a test platform:
- MTCH9010
To program the Curiosity Nano board with this MPLAB X project, follow the steps provided in the How to Program the Curiosity Nano Board section.
The two projects are separated in the following folders:
- Enhanced_Configuration_Mode - this folder contains the project that configures the device in Enchanged Configuration mode
- Input_Pins_Configuration_Mode - this folder contains the project that configures the device using the configuration input pins
These projects show how to dynamically change the configuration of the MTCH9010 in Enhanced Configuration mode or with the configuration input pins using the PIC18F56Q71 microcontroller as a host device.
This chapter demonstrates how to use the MPLAB X IDE to program a PIC® device with an Example_Project.X. This is applicable to other projects, too.
-
Connect the board to the PC.
-
Open the
Example_Project.X
project in MPLAB X IDE. -
Set the
Example_Project.X
project as main project.
Right click the project in the Projects tab and click Set as Main Project. -
Clean and build the
Example_Project.X
project.
Right click theExample_Project.X
project and select Clean and Build. -
Select PICxxxxx 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 PICxxxxx Curiosity Nano (click SN), click Apply and then click OK: -
Program the project to the board.
Right click the project and click Make and Program Device.