IC1PSC=B_0x0, IC1F=B_0x0, CC1S=B_0x0
TIM capture/compare mode register 1 [alternate]
CC1S | Capture/Compare 1 selection This bit-field defines the direction of the channel (input/output) as well as the used input. Others: Reserved Note: CC1S bits are writable only when the channel is OFF (CC1E = ‘0’ in TIMx_CCER). 0 (B_0x0): CC1 channel is configured as output 1 (B_0x1): CC1 channel is configured as input, tim_ic1 is mapped on tim_ti1 |
IC1PSC | Input capture 1 prescaler This bit-field defines the ratio of the prescaler acting on CC1 input (tim_ic1). The prescaler is reset as soon as CC1E=‘0’ (TIMx_CCER register). 0 (B_0x0): no prescaler, capture is done each time an edge is detected on the capture input. 1 (B_0x1): capture is done once every 2 events 2 (B_0x2): capture is done once every 4 events 3 (B_0x3): capture is done once every 8 events |
IC1F | Input capture 1 filter This bit-field defines the frequency used to sample tim_ti1 input and the length of the digital filter applied to tim_ti1. The digital filter is made of an event counter in which N consecutive events are needed to validate a transition on the output: 0 (B_0x0): No filter, sampling is done at fsubDTS/sub 1 (B_0x1): fsubSAMPLING/sub=fsubtim_ker_ck/sub, N=2 2 (B_0x2): fsubSAMPLING/sub=fsubtim_ker_ck/sub, N=4 3 (B_0x3): fsubSAMPLING/sub=fsubtim_ker_ck/sub, N=8 4 (B_0x4): fsubSAMPLING/sub=fsubDTS/sub/2, N= 5 (B_0x5): fsubSAMPLING/sub=fsubDTS/sub/2, N=8 6 (B_0x6): fsubSAMPLING/sub=fsubDTS/sub/4, N=6 7 (B_0x7): fsubSAMPLING/sub=fsubDTS/sub/4, N=8 8 (B_0x8): fsubSAMPLING/sub=fsubDTS/sub/8, N=6 9 (B_0x9): fsubSAMPLING/sub=fsubDTS/sub/8, N=8 10 (B_0xA): fsubSAMPLING/sub=fsubDTS/sub/16, N=5 11 (B_0xB): fsubSAMPLING/sub=fsubDTS/sub/16, N=6 12 (B_0xC): fsubSAMPLING/sub=fsubDTS/sub/16, N=8 13 (B_0xD): fsubSAMPLING/sub=fsubDTS/sub/32, N=5 14 (B_0xE): fsubSAMPLING/sub=fsubDTS/sub/32, N=6 15 (B_0xF): fsubSAMPLING/sub=fsubDTS/sub/32, N=8 |