GPIO Interrupt demo

Demo file : sp32_gpio_interrupt_demo.slx


This demo shows how to use the GPIO Interrupt Block. A simple GPIO toggle function for the GPIO2 is implemented using Digital Output Block. This function will be invoked in every rising edge signal on GPIO5. GPIO4 pin is used to generate a square-wave pulse to test the the GPIO5 pin.

Hardware Setup

The digital output pin (GPIO2) should be connected to a LED to observe the status of the pin.

What should be happening?

The status LED (GPIO2) will be changed in every 1s period.

Previous : Digital Input demo
Next : Timer Interrupt demo