320
/
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
11.4.9
Capture/compare mode register 2 (TIMx_CCMOD2)
Offset address: 0x1C
Reset value: 0x0000
See the description of the CCMOD1 register above
Output comparison mode:
Bit field
Name
Description
15
OC4CEN
Output compare 4 clear enable
14:12
OC4MD[2:0]
Output compare 4 mode
11
OC4PEN
Output compare 4 preload enable
10
OC4FEN
Output compare 4 fast enable
9:8
CC4SEL[1:0]
Capture/Compare 4 selection
These bits are used to select the input/output and input mapping of the channel
00: CC4 channel is configured as output
01: CC4 channel is configured as input, IC4 is mapped on TI4
10: CC4 channel is configured as input, IC4 is mapped on TI3
11: CC4 channel is configured as input, IC4 is mapped on TRC. This mode is only active when the
internal trigger input is selected by TIMx_SMCTRL.TSEL.
Note: CC4SEL is writable only when the channel is off (TIMx_CCEN.CC4EN = 0).
7
OC3CEN
Output compare 3 clear enable
6:4
OC3MD[2:0]
Output compare 3 mode
3
OC3PEN
Output compare 3 preload enable
2
OC3FEN
Output compare 3 fast enable
1:0
CC3SEL[1:0]
Capture/Compare 3 selection
These bits are used to select the input/output and input mapping of the channel
00: CC3 channel is configured as output
01: CC3 channel is configured as input, IC3 is mapped to TI3
10: CC3 channel is configured as input, IC3 is mapped on TI4
11: CC3 channel is configured as input, IC3 is mapped to TRC. This mode is only active when the
internal trigger input is selected by TIMx_SMCTRL.TSEL.
Note: CC3SEL is writable only when the channel is off (TIMx_CCEN.CC3EN = 0).
Input capture mode: