
EM358x
206
Rev. 0.4
Bitname
Bitfield
Access Description
TIM_OC4BE
[11]
RW
Output Compare 4 Buffer Enable. (Applies only if TIM_CC4S = 0.)
0: Buffer register for TIMx_CCR4 is disabled. TIMx_CCR4 can be written at
anytime, the new value is used by the shadow register immediately.
1: Buffer register for TIMx_CCR4 is enabled. Read/write operations access
the buffer register. TIMx_CCR4 buffer value is loaded in the shadow register
at each UEV.
Note: The PWM mode can be used without enabling the buffer register only
in one pulse mode (TIM_OPM bit set in the TIMx_CR2 register), otherwise
the behavior is undefined.
TIM_OC4FE
[10]
RW
Output Compare 4 Fast Enable. (Applies only if TIM_CC4S = 0.)
This bit speeds the effect of an event on the trigger in input on the OC4
output.
0: OC4 behaves normally depending on the counter and TIM_CCR4 values
even when the trigger is ON. The minimum delay to activate OC4 when an
edge occurs on the trigger input is 5 clock cycles.
1: An active edge on the trigger input acts like a compare match on the OC4
output. OC4 is set to the compare level independently from the result of the
comparison. Delay to sample the trigger input and to activate OC4 output is
reduced to 3 clock cycles. TIM_OC4FE acts only if the channel is configured
in PWM 1 or PWM 2 mode.
TIM_IC4F
[15:12]
RW
Input Capture 4 Filter. (Applies only if TIM_CC4S > 0.)
This defines the frequency used to sample the TI4 input, Fsampling, and the
length of the digital filter applied to TI4. The digital filter requires N
consecutive samples in the same state before being output.
0000: Fsampling=PCLK, no filtering.
0001: Fsampling=PCLK, N=2.
0010: Fsampling=PCLK, N=4.
0011: Fsampling=PCLK, N=8.
0100: Fsampling=PCLK/2, N=6.
0101: Fsampling=PCLK/2, N=8.
0110: Fsampling=PCLK/4, N=6.
0111: Fsampling=PCLK/4, N=8.
1000: Fsampling=PCLK/8, N=6.
1001: Fsampling=PCLK/8, N=8.
1010: Fsampling=PCLK/16, N=5.
1011: Fsampling=PCLK/16, N=6.
1100: Fsampling=PCLK/16, N=8.
1101: Fsampling=PCLK/32, N=5.
1110: Fsampling=PCLK/32, N=6.
1111: Fsampling=PCLK/32, N=8.
Note: PCLK is 12 MHz when using the 24 MHz crystal oscillator, and 6 MHz
using the 12 MHz RC oscillator.
TIM_IC4PSC
[11:10]
RW
Input Capture 4 Prescaler. (Applies only if TIM_CC4S > 0.)
00: No prescaling, capture each time an edge is detected on the capture
input.
01: Capture once every 2 events.
10: Capture once every 4 events.
11: Capture once every 8 events.
Summary of Contents for EMBER EM358 series
Page 2: ...EM358x 2 Rev 0 4 ...
Page 7: ...EM358x Rev 0 4 7 ...