Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
271
/
631
Bit field
Name
Description
3
OC1PEN
Output Compare 1 preload enable
0: Disable preload function of TIMx_CCDAT1 register. Supports write operations to
TIMx_CCDAT1 register at any time, and the written value is effective immediately.
1: Enable preload function of TIMx_CCDAT1 register. Only read and write operations to
preload registers. When an update event occurs, the value of TIMx_CCDAT1 is loaded into
the active register.
Note 1:
Only when TIMx_CTRL1.ONEPM = 1(In one-pulse mode), PWM mode can be used
without verifying the preload register, otherwise no other behavior can be predicted.
2
OC1FEN
Output Compare 1 fast enable
This bit is used to speed up the response of the CC output to the trigger input event.
0: CC1 behaves normally depending on the counter and CCDAT1 values, even if the trigger is
ON. The minimum delay for activating CC1 output when an edge occurs on the trigger input
is 5 clock cycles.
1: An active edge of the trigger input acts like a comparison match on CC1 output. Therefore,
OC is set to the comparison level regardless of the comparison result. The delay time for
sampling the trigger input and activating the CC1 output is reduced to 3 clock cycles.
OCxFEN only works if the channel is configured in PWM1 or PWM2 mode.
1
:
0
CC1SEL[1:0]
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 channels are configured as inputs and 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).
Input capture mode:
Bit field
Name
Description
15:12
IC2F[3:0]
Input Capture 2 Filter
11:10
IC2PSC[1:0]
Input Capture 2 Prescaler
9:8
CC2SEL[1:0]
Capture/Compare 2 selection
These bits are used to select the input/output and input mapping of the channel
00: CC2 channel is configured as output
01: CC2 channel is configured as input, IC2 is mapped on TI2
10: CC2 channel is configured as input, IC2 is mapped on TI1
11: CC2 channel is configured as input, IC2 is mapped on TRC. This mode is only active when
the internal trigger input is selected by TIMx_SMCTRL.TSEL.
Note: CC2SEL is writable only when the channel is off (TIMx_CCEN.CC2EN = 0).