The GIF below shows the Timer Toggle LED example, verified using the MPLAB Data
Visualizer, using Scope Mode with a Positive Edge Trigger and measuring
the time delta between two Vertical Cursors.
The following image shows the Timer Toggle LED running, verifying the 100 ms period using
Debug GPIO on the MPLAB Data Visualizer. An example Curiosity NANO is used, but the
example can be configured to run on any board.
Tip: Two vertical cursors are added to verify
the timer frequency. See configuration instructions below.
Tip: A logic analyzer can be used instead of
Debug GPIO on the MPLAB Data Visualizer.
2.2 Running the Timer Switch Frequency
Example
What will you see when running the Timer Switch Frequency example?
The Timer Switch Frequency example shows the LED on the board flash at a 500 ms period
interval. Pressing the assigned button will swap the period between 500 ms and 100
ms.