282
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Figure 11-18 Output part of channelx (x= 1,2,3, take channel 1 as example)
Figure 11-19 Output part of channelx (x= 4)
Reads and writes always access preloaded registers when capturing/comparing. The two specific working processes
are as follows:
In capture mode, the capture is actually done in the shadow register, and then the value in the shadow register is
copied into the preload register.
In compare mode, as opposed to capture mode, the value of the preload register is copied into the shadow register,
which is compared with the counter.
11.3.6
Input capture mode
In capture mode, the TIMx_CCDATx registers are used to latch the counter value after the ICx signal detects.
There is a capture interrupt flag TIMx_STS.CCxITF, which can issue an interrupt or DMA request if the
corresponding interrupt enable is pulled high.
TIM1_CCMOD1.OC1CEN
TIM1_CCMOD1.OC1M
D[2:0]
CNT=CCR1
CNT>CCR1
TIM1_CCMOD1.OC1CEN
TIM1_CCMOD1
.OC1MD[2:0]
OC1ERF
OCxERF
Dead-time
generator
TIM1_BKDT.DTG[7:0]
TIM1_CCEN.CC1NEN
TIM1_CCEN.CC1EN
01
x0
11
TIM1_CCEN.CC1NEN
TIM1_CCEN.CC1EN
10
11
0x
0
0
To the master mode controller
TIM1_CCEN.
CC1P
1
0
TIM1_CCEN.
CC1NP
1
0
Output enable
circuit
TIM1_CCEN.CC1NEN
TIM1_CCEN.CC1EN
TIM1_BKDT.MOEN
TIM1_BKDT.OSSI
TIM1_BKDT.OSSR
OC1
Output enable
circuit
TIM1_BKDT.MOEN
TIM1_BKDT.OSSI
TIM1_BKDT.OSSR
OC1
Output enable
circuit
TIM1_CCEN.CC1NEN
TIM1_CCEN.CC1EN
TIM1_BKDT.MOEN
TIM1_BKDT.OSSI
TIM1_BKDT.OSSR
OC1N
Output enable
circuit
TIM1_BKDT.MOEN
TIM1_BKDT.OSSI
TIM1_BKDT.OSSR
Ocref_clr_int
Output mode
controller
Output selector
OC1REFC
OC1REFC
Polarity
Seletion
Polarity
Seletion
ETRF
Output mode
controller
TIM1_CCMOD2.OC2M
D[2:0]
CNT=CCDAT4
CNT>CCDAT4
To the master mode controller
Polarity
selection
TIM1_CCEN.
CC4P
1
0
Output enable
circuit
TIM1_CCEN.CC4EN
TIM1_BKDT.MOEN
TIM1_BKDT.OSSI
TIM1_CTRL2.OI4
OC4
Output enable
circuit
TIM1_BKDT.OSSI
OC4 REF
ETRF
Ocref_clr