|
Readme
This is a C language project that demonstrates
edge triggered interrupts.
An interrupt is invoked on falling edge of S3 (PB21).
When S3 is touched (falling edge) the red LED (PB26) is toggled.
The green LED (PB27) is toggled in the main program.
The DOUTTGL31_0 register is used so the code is thread-safe.
Build, debug, run the project.
In the following figure, the falling edge of PB21 triggers
the interrupt.
Notice the toggling on PB27 stops while
the interrupt is serviced. The toggle on PB26 occurs
within the ISR. The entire ISR requires about 2us to run.

Derived from Texas Instrument code
- gpio_input_capture_LP_MSPM0G3507_nortos_ticlang
- gpio_toggle_output_LP_MSPM0G3507_nortos_ticlang
|