2021-06-16 7:59 AM
Hi, I am trying to use SWAP Output 1 and Output 2 function for HRTIM running with the deadtime function enabled. The description for SWAP function in ref manual says that "the HRTIM_SETA1R and HRTIM_RSTA1R are coding for the output A2, and the HRTIM_SETA2R and
HRTIM_RSTA2R are coding for the output A1". However, in deadtime enabled mode, the Output 2 configurations are disabled. Is there any other way to move forward?
2023-05-23 3:22 AM
Hello,
When deadtime is enabled, output 2 is behaving as complementary to output 1, so using implicitly its SET and RESET. This means you can get a SWAP behavior by swapping the HRTIM_SETA1R and HRTIM_RSTA1R values. SET and RESET could be preloaded (you need to enable PREEN), so the swap of registers values could be done correctly,
Best regards.
Yassine.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.