Hi, Kien,
Pls refer to the following figure, if you set the INIT_SEL=2b'00, local sync will reset the counter, in other words, if you set INIT_SEL=2b'00, the PWM signal frequency will be 120Hz.
if you set INIT_SEL=2b'11, the EXT_sync signal will reset the PWM counter, in the case, the PWM frequency is the same as EXT_sync signal frequency. in the case, if EXT_sync signal disappear, the PWM counter will continue to count even if it reaches to Value1 register, the PWM frequency is undetermined.
If you want to implement the scheme that the PWM outputs 120HZ signal when the EXT_sync disappears, the PWM outputs signal which is controlled by EXT_sync when the EXT_sync appears. I think it is okay, but it is complicated. You have to use AOI module to OR the EXT_sync signal and master/local sync signal as new EXT_sync signal, while set the INIT_SEL=2b'11.
Hope it can help you
BR
XiangJun Rong
