MPLAB® Harmony v3 is now configurable through MPLAB Code Configurator (MCC). Although the instructions in this tutorial are for MPLAB Harmony Configurator (MHC), the flow and experience of creating a project, configuring peripherals, and generating code using MCC are similar. Refer to the following links for specific instructions to use MPLAB Harmony v3 with MCC.
Objective
This page shows you how to create a Driven Shield Touch MPLAB® Harmony project from scratch.
Materials
Hardware Tools
Software Tools
Procedure
1
Create a New Project
6
Configure the Driven Shield
Refer to the "Guide for Timer-based Driven Shield on SAM Devices".
Simultaneous use of both Driven shield and Driven Shield+ is possible.
Refer to the “I/O Multiplexing and Considerations” section of the target device datasheet to examine the various touch pins that also support the TC or TCC outputs.
For the PIC32MZDA device, refer to Procedure To Enable Driven Shield.
Choosing the Driven Shield Option
- Select the Enable Dedicated Driven Shield checkbox
- Choose from the available TC/TCC to set the Timer Instance.
- Choose the Shield pin.
- Click Apply to update the Project Configuration. Allow the use of the TC/TCC as prompted.
Choosing the Driven Shield+ Option
- Select the Enable Driven Shield Plus checkbox
- Choose from the available TC /TCC to set the Timer Instance.
- Click Apply to update the Project Configuration. Allow the use of the TC/TCC as prompted.
In Step 2 above, not all pins support Timer Output in this QT7 example, see the “I/O Multiplexing and Considerations” section in the SAMD21 datasheet.
When applied, the Project Graph should now contain the relevant timers for Driven Shield/Driven Shield+ in addition to the RTC.
In this example, Data Visualizer was also enabled.