GD32A50x User Manual
352
Figure 18-30. Output behavior of the channel in response to a break (the break high
active)
OxCPRE
CHx_O
MCHx_O
BRKIN
CHx_O
MCHx_O
CHx_O
MCHx_O
= ISOx
= ISOxN
= ISOx
= ISOxN
CHxEN: 1 MCHxEN: 1
CHxP : 0 MCHxP : 0
ISOx = ~ISOxN
CHxEN: 1 MCHxEN: 0
CHxP: 0 MCHxP : 0
ISOx = ~ISOxN
CHxEN: 1 MCHxEN: 0
CHxP : 0 MCHxP : 0
ISOx = ISOxN
When CHx_O and MCHx_O channels has separated break function, please refer to
Separated dead time insertion and Break function
By configuring the BEKENCHx(x=0..3) bit in the TIMERx_CTL2 register to realize the
independent control of break function for each pair of channels. When the BEKENCHx(x=0..3)
bit is “0” and a break event occurs, the corresponding channels CHx_O and MCHx_O will not
be changed and the outputs is keeping.
Separated dead time insertion and Break function
The separated dead time insertion and break function for CHx_O and MCHx_O allows that
each pair of channels has its own deadtime value and break function. In this function, CHx_O
and MCHx_O are actually controlled by the IOS bit
、
ROS bit and DTCFG[7:0] bits in
TIMERx_FCCHPy(y=0..3) register.
By configuring the FCCHPyEN (y=0..3) bits in the TIMERx_FCCHPy(y=0..3) registers can
select whether each pair of channels uses the separated dead time insertion and break
function. When the FCCHPyEN=0, the ROS
、
IOS and DTCFG[7:0] bits in TIMERx_CCHP
register is active; When the FCCHPyEN=1, the ROS
、
IOS and DTCFG[7:0] bits in
TIMERx_FCCHP0 register is active.
Quadrature decoder
The quadrature decoder function uses two quadrature inputs
CI0FE0 and CI1FE1 derived
from the TIMERx_CH0 and TIMERx_CH1 pins respectively to interact with each other to
generate the counter value. Setting SMC=0x01, 0x02, or 0x03 to select that the counting