Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG
Hello, I have been through the academy examples and tutorials reguarding timers, GPIO, and the event fabric. Our goal is to route a GPIO rising-edge to a timer (capture) such that at the end of the timer period we can determine if there has been any activity (e.g. any number of rising edges) on the IO pin. We do not want to interrupt or wake the CPU on every rising edge, we only want to wake up at the end of the time period and know if there has been at least one rising edge.
It seems this should be possible but we cannot find any examples and our attempt to construct one does not work (project code here: gpio_to_timer_event.zip ). What we want is similar to the "comp_dac_timer_event" example in the SDK, but that example wakes up on every comparator event, we need to stay in lower power mode until the timer expires.
Our project (using the MSPM0L1306 launchpad) uses syscfg to define the timer, GPIO pin, and event fabric to capture rising edges in the timer capture registers. But when we read the capture registers at the end of the time period, they always read as zero even when there were (many) rising edges while the timer was running.
Any help, advice, or working examples would be appreciated.