Skip to main content
Javier1
Principal
Feb 21, 2025 1:23 PM UTC
Solved

HRTIM has minimum CR values????

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.

Javier1_0-1740144437199.png

 

Is there any way around this? reading RM0364 page 842

Javier1_0-1740145022909.png

 

Discussed 10years ago here:
https://community.st.com/t5/stm32-mcus-products/stm32f334-hrtim-with-bad-behavior/td-p/409531

 

 

 

 

This topic has been closed for replies.
Javier1
Javier1Best answer
Principal
Feb 21, 2025 2:15 PM UTC

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.

Javier1_0-1740147259221.png

 

This will be seen as a small jump in the modulation in the rare cases my timers have to go there.

hit me up in https://www.linkedin.com/in/javiermuñoz/

2 replies

Javier1
Javier1Author
Principal
Feb 21, 2025 1:30 PM UTC

I tried removing the HRTIM Clock multiplication from x32 to x1 , no difference

Javier1_0-1740144597289.png

 

Edit Maybe i need to go slower? (so this is actually a WorseResolutionTimer)

 page 848

Javier1_0-1740145110481.png

 

Javier1_0-1740145224772.png

 

Nah, still <32 does nothing

 

 

hit me up in https://www.linkedin.com/in/javiermuñoz/
Javier1
Javier1AuthorBest answer
Principal
Feb 21, 2025 2:15 PM UTC

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.

Javier1_0-1740147259221.png

 

This will be seen as a small jump in the modulation in the rare cases my timers have to go there.

hit me up in https://www.linkedin.com/in/javiermuñoz/