2021-03-05 11:04 AM
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.
2021-03-05 12:50 PM
> , 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