
Mini57
Apr. 06, 2017
Page 192 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
select ACMPOx (x= 0~1) transition is using to trigger reset counter value. The operation method
is also described in Table 6.6-1.
5
6
0
1
2
3
0
1
2
3
0
TIMERx_CNT
ACMPOx
CAPIF
Clear by software
(CAPEDGE=0x02)
Figure 6.6-5 External Reset Counter Mode
6.6.5.11 Trigger-Counting Capture Mode
If CAPMODE (TIMERx_EXTCTL[8]) is set to 1, CAPEN (TIMERx_EXTCTL[3]) is set to 1 and
CAPFUNCS (TIMERx_EXTCTL[4]) is set to 0, the CNT will be reset to 0 then captured into
CAPDAT register when ACMPOx (x= 0~1) trigger condition occurred. The ACMPOx trigger edge
can be chosen by CAPEDGE (TIMERx_EXTCTL[2:1]). The detailed operation method is
described
in
When
ACMPOx
(x=
0~1)
trigger
occurred,
CAPIF
(TIMERx_EINTSTS[0]) is set to 1, and the interrupt signal is generated, then sent to NVIC to
inform CPU if CAPIEN (TIMERx_EXTCTL[5]) is 1.
Function
CAPMODE
(TIMERx_EXTCT
L[8])
CAPFUNCS
TIMERx_EXTCT
L[4])
CAPEDGE
TIMERx_EXTCTL[2:
1])
Operation Description
Free-counting
Capture Mode
0
0
00
A 1 to 0 transition on ACMPOx (x= 0~1) pin is
detected. CNT is captured to CAPDAT.
0
0
01
A 0 to 1 transition on ACMPOx (x= 0~1) pin is
detected. CNT is captured to CAPDAT.
0
0
10
Either 1 to 0 or 0 to 1 transition on ACMPOx
(x= 0~1) pin is detected. CNT is captured to
CAPDAT.
0
0
11
Reserved
Reset Counter
Mode
0
1
00
An 1 to 0 transition on ACMPOx (x= 0~1) pin is
detected. CNT is reset to 0.
0
1
01
A 0 to 1 transition on ACMPOx (x= 0~1) pin is
detected. CNT is reset to 0.
0
1
10
Either 1 to 0 or 0 to 1 transition on ACMPOx
(x= 0~1) pin is detected. CNT is reset to 0.
0
1
11
Reserved
Trigger-Counting
Capture Mode
1
0
00
Falling Edge Trigger:
The 1st 1 to 0 transition on ACMPOx (x= 0~1)