Capture/Compare Mode Register 2 (Timx_Ccmod2) - Nations N32G43 Series User Manual

32-bit arm cortex-m4f microcontroller
Table of Contents

Advertisement

Bit field
Name
7:4
IC1F[3:0]
3:2
IC1PSC[1:0]
1:0
CC1SEL[1:0]

Capture/compare mode register 2 (TIMx_CCMOD2)

Offset address: 0x1C
Reset value: 0x0000
See the description of the CCMOD1 register above
Description
Input Capture 1 filter
These bits are used to define sampling frequency of TI1 input and the length of digital filter. The
digital filter is an event counter that generates an output transition after N events are recorded.
0000: No filter, sampling at f
DTS
0001: f
= f
, N = 2
SAMPLING
CK_INT
0010: f
= f
, N = 4
SAMPLING
CK_INT
0011: f
= f
, N = 8
SAMPLING
CK_INT
0100: f
= f
/2, N = 6
SAMPLING
DTS
0101: f
= f
/2, N = 8
SAMPLING
DTS
0110: f
= f
/4, N = 6
SAMPLING
DTS
0111: f
= f
/4, N = 8
SAMPLING
DTS
1000: f
= f
/8, N = 6
SAMPLING
DTS
1001: f
= f
/8, N = 8
SAMPLING
DTS
1010: f
= f
/16, N = 5
SAMPLING
DTS
1011: f
= f
/16, N = 6
SAMPLING
DTS
1100: f
= f
/16, N = 8
SAMPLING
DTS
1101: f
= f
/32, N = 5
SAMPLING
DTS
1110: f
= f
/32, N = 6
SAMPLING
DTS
1111: f
= f
/32, N = 8
SAMPLING
DTS
Input Capture 1 prescaler
These bits are used to select the ratio of the prescaler for IC1 (CC1 input).
When TIMx_CCEN.CC1EN = 0, the prescaler will be reset.
00: No prescaler, capture is done each time an edge is detected on the capture input
01: Capture is done once every 2 events
10: Capture is done once every 4 events
11: Capture is done once every 8 events
Capture/Compare 1 selection
These bits are used to select the input/output and input mapping of the channel
00: CC1 channel is configured as output
01: CC1 channel is configured as input, IC1 is mapped on TI1
10: CC1 channel is configured as input, IC1 is mapped on TI2
11: CC1 channel is configured as input, IC1 is mapped to TRC. This mode is only active when
the internal trigger input is selected by TIMx_SMCTRL.TSEL.
Note: CC1SEL is writable only when the channel is off (TIMx_CCEN.CC1EN = 0).
272 / 631
frequency
Nations Technologies Inc.
Tel:+86-755-86309900
Email:info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China

Advertisement

Table of Contents
loading

Table of Contents