![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 224](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630224.webp)
www.geehy.com Page 223
Field
Name
R/W
Description
level changes when the comparison result changes or when the output
compare mode changes from freeze mode to PWM mode.
7
OC1CEN R/W
Output Compare Channel1 Clear Enable
0: OC1REF is unaffected by ETRF input.
1: When high level of ETRF input is detected, OC1REF=0
9:8
CC2SEL
R/W
Capture/Compare Channel2 Select
This bit defines the input/output direction and the selected input pin.
00: CC2 channel is output
01: CC2 channel is input, and IC2 is mapped on TI2
10: CC2 channel is input, and IC2 is mapped on TI1
11: CC2 channel is input, and IC2 is mapped on TRC, and only works in
internal trigger input
Note: This bit can be written only when the channel is closed
(TMRx_CCEN register CC2EN=0).
10
OC2FEN R/W Output Compare Channel2 Preload Enable
11
OC2PEN R/W Output Compare Channel2 Buffer Enable
14:12 OC2MOD R/W Output Compare Channel1 Mode
15
OC2CEN R/W Output Compare Channel2 Clear Enable
Input capture mode:
Field
Name
R/W
Description
1:0
CC1SEL R/W
Capture/Compare Channel 1 Select
00: CC1 channel is output
01: CC1 channel is input, and IC1 is mapped on TI1
10: CC1 channel is input, and IC1 is mapped on TI2
11: CC1 channel is input, and IC1 is mapped on TRC, and only works in
internal trigger input
Note: This bit can be written only when the channel is closed
(TMRx_CCEN register CC1EN=0).
3:2
IC1PSC R/W
Input Capture Channel 1 Perscaler Configure
00: PSC=1
01: PSC=2
10: PSC=4
11: PSC=8
PSC is prescaled factor, which triggers capture once every PSC events.
7:4
IC1F
R/W
Input Capture Channel 1 Filter Configuration
0000: Filter disabled, sampling by f
DTS
0001: DIV=1
,
N=2
0010: DIV=1
,
N=4
0011: DIV=1
,
N=8
0100: DIV=2
,
N=6
0101: DIV=2
,
N=8
0110: DIV=4
,
N=6
0111: DIV=4
,
N=8
1000: DIV=8
,
N=6
1001: DIV=8
,
N=8