Skip to main content
MYAQO.1
Associate II
June 16, 2021
Question

Failing to use SWAP Output 1 and Output 2 function.

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?

This topic has been closed for replies.

1 reply

ST_Sophia
ST Employee
May 23, 2023

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.