cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F334 HRTIM WITH BAD BEHAVIOR

Asantos
Senior
Posted on November 26, 2015 at 17:56

Hi,

I'm experiencing a very bad behavior of HRTIM.

if output set register is set on Period and output reset register is reset on CMP1.

if CMP1 = 0x20, the PWM output is a narrow pulse as expected. but if the CMP1 < 0x20 the output go to active state. The duty cycle goes to near zero to 100%. This is very bad!

the section 10.3.6 of the RM0364 states that:

if the set and reset events are generated within same HRTIM clock period, the reset event has the highest priority and the set event is ignored. But what is happening is the opposite of it.

Someone else noticed this issue before or I'm missing something?
10 REPLIES 10

Here are the waveforms for CMP=32 and CMP=31, realize that when lowering the count from 32 to 31 expecting to further narrow the 14ns pulse the huge non linearity caused by some pulse intervals being completely filled

HRTIM_32.jpg

HRTIM_31.jpg