MPLAB® Harmony v2 Timer Static Driver Project Using chipKIT® WF32 (step-by-step)

Step-by-Step Instructions

These step-by-step instructions were used to create a project in which timer1 is set up with a static driver and set to toggle LED3 at a 1/2 second period. The target hardware is the chipKIT® WF32 development board from Digilent® Inc.

1 Create a new MPLAB Harmony Project

2 Use MPLAB Harmony Configurator (MHC) to configure the PIC32 core

3 Use MHC to configure the PIC32 Clocks

4 Use MHC to create a Static Timer Driver

5 Configure the I/O pin connected to the LED to be an output

6 Generate the Project Code

7 Complete the ISR Function

8 Add Code to Start Timer Driver Instance 0

9 Build, program and run your project

Click the Run icon to build, program and run your project. Click here for more details.

© 2020 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.