Other Parts Discussed in Thread: MSPM0L2228
Tool/software:
As stated in the title, we would like to configure a button as a level-trigger interrupt pin. Is this supported for the MSPM0G3107?
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:
As stated in the title, we would like to configure a button as a level-trigger interrupt pin. Is this supported for the MSPM0G3107?
What do you mean with level-trigger? A certain voltage?
For example, in rtos/LP_MSPM0L2228/drivers/gpio_interrupt/gpiointerrupt.c
Line 68:
GPIO_setConfig(CONFIG_GPIO_BUTTON_0, GPIO_CFG_IN_NOPULL |
GPIO_CFG_IN_INT_RISING |
CONFIG_GPIO_BUTTON_0_IOMUX);
could we modify 'GPIO_CFG_IN_INT_RISING' to 'GPIO_CFG_IN_INT_LOW' ?
As far as I know you can't [Ref TRM (SLAU846A) Table 9-57]. You'll probably have to configure for Both edges and keep track of it in software.
More generally: I'm having trouble imagining how you would use such a feature, since (one supposes) the NVIC interrupt would persist as long as the pin is low, and you wouldn't get anything else done.
If your goal is to measure the low period, this is what Timer Capture was designed for.