How to achieve 217ps time resolution of HRTIM STM32F334xx?
Hey guys,
I'm trying to understand STM32F334 high resolution timer (HRTIM) in some details.
It says the timer has 217 ps resolution. But how can I achieve that in practice?
Let's say I generate PWM signal with 1MHz frequency and 500.00ns pulse width. (These are just arbitrary numbers, but lets say I have configured everything accordingly and it works). How can I get pulse width of 500.217ns (which is one more high resolution tick to add)? Is it possible?
Or equivalently, I want to get two PWM signals, but shifted by 2.17ns or 217ps, lets say.
The reason why I'm asking is "Figure 242. Counter and capture register format vs clock prescaling factor" from the manual of STM32F334xx.

It essentially states, that when I multiply clock f_HRCK by factor 2, I lose one bit of precision. So the actual PWM time precision stays the same regardless of the f_HRCK.
Or following this table:

If I have configured HRTIM with maximum equivalent frequency of 4.608 GHz (CKPSC = 000), then I can specify period and compare register only in values multiple by 32, since all 5 LSB bits became disabled/not significant (according to Figure 242). As a result I still have 217ps * 32 = 6.95ns effective time resolution, as it is without frequency multiplication of the clock (when CKPSC = 101). So I cant use the advantages of this high frequency clock and claimed 217ps resolution.
Am I missing something?
