2025-02-21 05:23 AM - edited 2025-02-21 06:04 AM
After a day of debugging, apparently HRTIM has minimum CR values, this means im not able to trigger any CR event close to the 0% of my scale, in my case this translates to a discontinuity in the lower end of my phase shift control.
Is there any way around this? reading RM0364 page 842
Discussed 10years ago here:
https://community.st.com/t5/stm32-mcus-products/stm32f334-hrtim-with-bad-behavior/td-p/409531
2025-02-21 05:30 AM - edited 2025-02-21 05:44 AM
I tried removing the HRTIM Clock multiplication from x32 to x1 , no difference
Edit Maybe i need to go slower? (so this is actually a WorseResolutionTimer)
page 848
Nah, still <32 does nothing
2025-02-21 06:15 AM - edited 2025-02-21 07:29 AM
The only "solution" i have right now is to suck it up and assume im going to have a small dimp in the otherwise linear and flat Master Timer.
Via software i will introduce a non linearity , ill make " jump the fence" all Compare registers aimed between 0 and 32 , and use this area as least as possible.
This will be seen as a small jump in the modulation in the rare cases my timers have to go there.