cancel
Showing results for 
Search instead for 
Did you mean: 

Increasing count range (CNT register) of16 Bit timer in encoder mode.

vsmak.1
Associate

Due to some hardware restrictions I dont have any 32Bit timers available on my controller (STM32F7) at the moment. My application requires me to count upto 18bits, which is evidently surpassing the 16-bit count limit the register can handle and hence it overflows. As the header suggests, is there any way I could reliably increase my counting range (through HAL or external logic) which would not make me compromise on missing interrupts and get the job done?

Really appreciate all the help.

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1

> , is there any way I could reliably increase my counting range which

> would not make me compromise on missing interrupts

No.

I suggest to move the encoder to one of the 32-bit counters and move the function which is now there to a 16-bit counter, and perhaps ask that question again with that other functionality.

Or use a small cheap 'F0/'G0 as a slave to extend on the counters.

JW