Hi,
I'm trying to use 2 GPIOTE channels, 3 PPI channels, and a Timer instance in an application.
The 1st GPIOTE channel is input where it should trigger the Timer instance to start through PPI channel, at the same time I configured the "Timer compare event" to toggle the 2nd GPIOTE channel through PPI, and I configured the last PPI channel to stop the timer by its "compare event".
The channel configurations are as follows:
But what happens is that the input pin trigger the timer to start and the timer stops itself but the output pin isn't changing.
The response from the DK:
Even if I comment this line "nrfx_gppi_channels_enable(BIT(gppi_channel_2));" the behavior doesn't change, but when I comment the 3rd PPI channel configuration as follows and flash the code, the output pin starts to respond.
Also I noticed that the Input is triggered multiple times from the push button, is this related to the button bouncing?
I'm using nrf5340DK, and NCS V2.4.0
My code is refactored from the "one_to_one" zephyr sample.
Best Regards,
Basem.