This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timer with a constant and stable period

Hello!

I am trying to sample a digital signal with 12-bits (In a later stage I will need to sample two 12-bits signals). At the moment I am storing the recorded signal in an SD card, but the final goal is to send it via BLE. For this purpose, I was using an interrupt triggered by a timer, but the signal is not being correctly sampled:

Input:

Output:

I configured a GPIO pin to go high when entering the timer interrupt routine and low when leaving it. The measured timing profile is shown next:

As seen, the period is not stable. Searching here in the forum, I found that for a timer with a constant and stable period we should use PPI. But I don't see how to configure the PPI to read the GPIO_IN register. Could anyone guide me on how to do it?

Alternatively, is there any other way to perform a periodic task with a constant and stable period?

Parents Reply Children
Related