Microchip Technology Power Debugger Manual page 38

Table of Contents

Advertisement

port_pin_set_output_level (EXT1_PIN_GPIO_0, true);
}
void
ui_stop_read(void)
{
// GPIO0 low
port_pin_set_output_level (EXT1_PIN_GPIO_0, false);
}
void
ui_start_write(void)
{
// GPIO1 high
port_pin_set_output_level (EXT1_PIN_GPIO_1, true);
}
void
ui_stop_write(void)
{
// GPIO1 low
port_pin_set_output_level (EXT1_PIN_GPIO_1, false);
}
Find the board_init.c file and add initialization of GPIO0 and 1. This can be added by copying the LED_0_PIN
initialization in system_board_init (void)
// GPIO0 to output
port_pin_set_config(EXT1_PIN_GPIO_0, &pin_conf);
// GPIO1 to output
port_pin_set_config(EXT1_PIN_GPIO_1, &pin_conf);
You can also comment out the LED toggle, as it is not relevant here.
void ui_process(uint16_t
{
/*if (0 == framenumber) {
LED_On(LED_0_PIN);
}
if (1000 == framenumber) {
LED_Off(LED_0_PIN);
}*/
}
To do: 
Build the project/solution (F7)
Program the application into the target device using Start Without Debugging (Ctrl + Alt + F5)
Switch to Data Visualizer to see the results
Select both the Power interface and GPIO and start visualizing
©
2020 Microchip Technology Inc.
framenumber)
User Guide
Power Debugger
Detailed Use Cases
DS40002201A-page 38

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Power Debugger and is the answer not in the manual?

Table of Contents