I'm using the nucleo32f303k8.
I want to track an average period of an external interrupt in the audio range, but the uS timer doesn't allow for enough resolution.
So read the timer directly with the following:
Timer2 is the only 32 bit timer. Unfortunately timer2 seems only count once per uS, which is also the timer used for the timer/ticker interrupt.
If I set this timer to count with every clock cycle is the background interrupt going eat up all my processing time? If I don't use the ticker/timer/timeout APIs does this interrupt even get enabled? It's also used for the wait API as well, right?
I don't plan to use the ticker, wait or any time based APIs. I do want to use the I2C API, and I'm not sure where it get's it's clock frequency from.
I thought I'd run a quick test. I tried manually setting the prescaler, but the following seems to have no effect.
Timer2 continues to count once per uS. I'm sure I'm missing something here.
I'm using the nucleo32f303k8.
I want to track an average period of an external interrupt in the audio range, but the uS timer doesn't allow for enough resolution.
So read the timer directly with the following:
Timer2 is the only 32 bit timer. Unfortunately timer2 seems only count once per uS, which is also the timer used for the timer/ticker interrupt. If I set this timer to count with every clock cycle is the background interrupt going eat up all my processing time? If I don't use the ticker/timer/timeout APIs does this interrupt even get enabled? It's also used for the wait API as well, right?
I don't plan to use the ticker, wait or any time based APIs. I do want to use the I2C API, and I'm not sure where it get's it's clock frequency from.
I thought I'd run a quick test. I tried manually setting the prescaler, but the following seems to have no effect.
Timer2 continues to count once per uS. I'm sure I'm missing something here.