This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi TI expert
i running the sample project "gpio_input_capture_LP_MSPM0G3507_nortos_ticlang", in this sample code
only available 1 pin(PB21) interrupt, if i set more pin(PB22,PB23) to detect external signal, how to modify
the IRQHandler code?
In example code, group interrupt is used.
If you want to identify specific pin interrupt, you can use DL_GPIO_getPendingInterrupt(), which is defined in dl_gpio.h
Hi Sir
thanks for your help, now i can detect PB21 and PB24 interrupt.
another question, i also enable PA8 interrupt in my code but not available in PA8,
can you help me to check what's wrong in my code?
The configuration looks good.
Can you add a breakpoint in the interrupt and check the gpio_a_int_status in debug?
Hi Sir
thanks for your reply, i set breakpoint in GROUP1_IRQHandler first line,
when PB24 go low the program will stop in line 101,
but when i set PA8 go low the program can't stop so i think PA8 interrupt not enable.
i offer my project as below
https://drive.google.com/file/d/15Hzecfgb3lZUe-acJobGRvu_LA0Lw32Y/view
Hi Sir
i knew the problem, i use DL_GPIO_setUpperPinsPolarity to set PA8, when i change DL_GPIO_setLowerPinsPolarity
to PA8, it is normal. thanks for your help.