BAT32G1x9 user manual | Chapter 10 Timer M
436 / 1149
Rev.1.02
10.8.3.7
Setup steps
The PWMOP may be associate with that timer M, and the setting of the PWMOP may be appended to the
setting of the timer M.
The steps are as follows:
After Timer M's clock and mode are set
1)
Set PWMOPEN to 1
2)
Set up OPCTL0 register
3)
Set OPEDGE register
4)
Set OPDF0, OPDF1 register, timer M action begins
5)
Wait for the forced cutoff state shown by HZOF1, HZOF0
6)
force termination
Note: The PWMOP implements the function of using comparator 0 output, external interrupt input INTP0 and
Coordination Controllerto force cut off timer M output.
Therefore, the PWMOP must be used when the
timer M is active.
If only timer M is used, the relevant registers of PWMOP need to be kept in reset
state.