STMicroelectronics /STM32U031 /LPTIM2 /LPTIM2_CCMR1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as LPTIM2_CCMR1

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)CC1SEL 0 (CC1E)CC1E 0CC1P 0 (B_0x0)IC1PSC 0 (B_0x0)IC1F 0 (B_0x0)CC2SEL 0 (CC2E)CC2E 0CC2P 0 (B_0x0)IC2PSC 0 (B_0x0)IC2F

CC1SEL=B_0x0, IC2F=B_0x0, IC1PSC=B_0x0, IC2PSC=B_0x0, IC1F=B_0x0, CC2SEL=B_0x0

Description

LPTIM capture/compare mode register 1

Fields

CC1SEL

Capture/compare 1 selection This bitfield defines the direction of the channel input (capture) or output mode.

0 (B_0x0): CC1 channel is configured in output PWM mode

1 (B_0x1): CC1 channel is configured in input capture mode

CC1E

Capture/compare 1 output enable. This bit determines if a capture of the counter value can actually be done into the input capture/compare register 1 (LPTIM2_CCR1) or not.

CC1P

Capture/compare 1 output polarity. Only bit2 is used to set polarity when output mode is enabled, bit3 is don’t care. This field is used to select the IC1 polarity for capture operations.

IC1PSC

Input capture 1 prescaler This bitfield defines the ratio of the prescaler acting on the CC1 input (IC1).

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 bitfield defines the number of consecutive equal samples that are detected when a level change occurs on an external input capture signal before it is considered as a valid level transition. An internal clock source must be present to use this feature.

0 (B_0x0): any external input capture signal level change is considered as a valid transition

1 (B_0x1): external input capture signal level change must be stable for at least 2 clock periods before it is considered as valid transition.

2 (B_0x2): external input capture signal level change must be stable for at least 4 clock periods before it is considered as valid transition.

3 (B_0x3): external input capture signal level change must be stable for at least 8 clock periods before it is considered as valid transition.

CC2SEL

Capture/compare 2 selection This bitfield defines the direction of the channel, input (capture) or output mode.

0 (B_0x0): CC2 channel is configured in output PWM mode

1 (B_0x1): CC2 channel is configured in input capture mode

CC2E

Capture/compare 2 output enable. This bit determines if a capture of the counter value can actually be done into the input capture/compare register 2 (LPTIM2_CCR2) or not.

CC2P

Capture/compare 2 output polarity. Only bit2 is used to set polarity when output mode is enabled, bit3 is don’t care. This field is used to select the IC2 polarity for capture operations.

IC2PSC

Input capture 2 prescaler This bitfield defines the ratio of the prescaler acting on the CC2 input (IC2).

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

IC2F

Input capture 2 filter This bitfield defines the number of consecutive equal samples that are detected when a level change occurs on an external input capture signal before it is considered as a valid level transition. An internal clock source must be present to use this feature.

0 (B_0x0): any external input capture signal level change is considered as a valid transition

1 (B_0x1): external input capture signal level change must be stable for at least 2 clock periods before it is considered as valid transition.

2 (B_0x2): external input capture signal level change must be stable for at least 4 clock periods before it is considered as valid transition.

3 (B_0x3): external input capture signal level change must be stable for at least 8 clock periods before it is considered as valid transition.

Links

()