Skip to main content
GFERL.1
Associate
December 23, 2022
Question

HRTIM burst mode missing pulses in one period

  • December 23, 2022
  • 1 reply
  • 1000 views

My application is using HRTIM in burst mode: PWM is generated part of the time by specifying a period and an idle/run duration based on common tick (TIMA counter).

Period (HRTIM_BMPER) is set once at init and idle duration (BMCMPR) updated every 20us. Sometimes I notice a period is empty of pulses while the application has never written max value in idle duration. It looks like it happens when idle duration is updated exactly at end of burst period. Next period contains correct number of pulses. 32-bit register write is atomic operation.

This bug is not visible when preload is used but if used system response is slower because idle duration is updated at end of burst period.

Can someone confirm this bug ?

Thanks,

Guillaume

This topic has been closed for replies.

1 reply

Javier1
Principal
December 23, 2022

Im sure everyone here would appreciate a bit of text formatting.

hit me up in https://www.linkedin.com/in/javiermuñoz/
GFERL.1
GFERL.1Author
Associate
December 23, 2022

Done