3.2.13
Application Interaction Using Dashboard Controls
Now see how components placed on a dashboard in Data Visualizer can be hooked up to variables in the application,
and how the dashboard can thus interact with the application at run-time.
Instead of a predefined interval of 1000 USB sync pulses (1 second), add a variable compare reference to the
original code.
To do: Modify ui.c to include a LED blinker in the ui_process() handler as shown here.
volatile uint32_t
volatile uint32_t
void ui_process(uint16_t
{
frames_received++;
if
(frames_received >= frame_comparator) {
LED_Toggle(LED_0_PIN);
frames_received = 0;
}
}
To do:
•
•
•
To do:
•
•
•
©
2020 Microchip Technology Inc.
frame_comparator = 100;
frames_received = 0;
framenumber)
Build the project/solution (F7)
Launch a debug session using Start Debugging and Break (Alt + F5)
Find the location of the variable uint32_t frame_comparator
Open Data Visualizer
Connect
Add the location of the frame_comparator in the Code Profiling Configuration window
User Guide
Power Debugger
Detailed Use Cases
DS40002201A-page 48
Need help?
Do you have a question about the Power Debugger and is the answer not in the manual?