STM32W108HBU6 STMicroelectronics, STM32W108HBU6 Datasheet - Page 126

no-image

STM32W108HBU6

Manufacturer Part Number
STM32W108HBU6
Description
Manufacturer
STMicroelectronics
Datasheet

Specifications of STM32W108HBU6

Operating Temperature (min)
-40C
Operating Temperature (max)
85C
Processing Unit
Microprocessor
Operating Supply Voltage (min)
1.18V
Operating Supply Voltage (typ)
1.25V
Operating Supply Voltage (max)
1.32V
Package Type
VFQFPN EP
Pin Count
40
Mounting
Surface Mount
Rad Hardened
No
Lead Free Status / Rohs Status
Supplier Unconfirmed

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM32W108HBU6
Manufacturer:
ST
0
Part Number:
STM32W108HBU61TR
Manufacturer:
ST
0
Part Number:
STM32W108HBU63
Manufacturer:
ST
Quantity:
201
Part Number:
STM32W108HBU63TR
Manufacturer:
ST
0
Part Number:
STM32W108HBU64
Manufacturer:
ST
0
Part Number:
STM32W108HBU64TR
Manufacturer:
TDK
Quantity:
30 000
Part Number:
STM32W108HBU64TR
Manufacturer:
ST
0
General-purpose timers
10.1.11
126/208
For example, to generate a positive pulse on OC1 with a length of tPULSE and after a delay
of tDELAY as soon as a rising edge is detected on the TI2 input pin, using TI2FP2 as trigger
1:
The t
The tPULSE is defined by the difference between the auto-reload value and the compare
value (TIMx_ARR - TIMx_CCR1).
To build a waveform with a transition from 0 to 1 when a compare match occurs and a
transition from 1 to 0 when the counter reaches the auto-reload value, enable PWM mode 2
by writing TIM_OC1M = 111 in the TIMx_CCMR1 register. Optionally, enable the buffer
registers by writing TIM_OC1BE = 1 in the TIMx_CCMR1 register and TIM_ARBE in the
TIMx_CR1 register. In this case, also write the compare value in the TIMx_CCR1 register,
the auto-reload value in the TIMx_ARR register, generate an update by setting the TIM_UG
bit, and wait for external trigger event on TI2. TIM_CC1P is written to 0 in this example.
In the example, the TIM_DIR and TIM_CMS bits in the TIMx_CR1 register should be low.
Since only one pulse is desired, software should set the TIM_OPM bit in the TIMx_CR1
register to stop the counter at the next update event (when the counter rolls over from the
auto-reload value back to 0).
A special case: OCy fast enable
In one-pulse mode, the edge detection on the TIy input sets the TIM_CEN bit, which
enables the counter. Then the comparison between the counter and the compare value
toggles the output. However, several clock cycles are needed for this operation, and it limits
the minimum delay (tDELAY min) achievable.
To output a waveform with the minimum delay, set the TIM_OCyFE bit in the TIMx_CCMR1
register. Then OCyREF (and OCy) is forced in response to the stimulus, without taking the
comparison into account. Its new level is the same as if a compare match had occurred.
TIM_OCyFE acts only if the channel is configured in PWM mode 1 or 2.
Encoder interface mode
To select encoder interface mode, write TIM_SMS = 001 in the TIMx_SMCR register to
count only TI2 edges, TIM_SMS = 010 to count only TI1 edges, and TIM_SMS = 011 to
count both TI1 and TI2 edges.
Select the TI1 and TI2 polarity by programming the TIM_CC1P and TIM_CC2P bits in the
TIMx_CCER register. If needed, program the input filter as well.
The two inputs TI1 and TI2 are used to interface to an incremental encoder (see
Assuming that it is enabled, (the TIM_CEN bit in the TIMx_CR1 register written to 1) the
counter is clocked by each valid transition on TI1FP1 or TI2FP2 (TI1 and TI2 after input filter
and polarity selection, TI1FP1 = TI1 if not filtered and not inverted, TI2FP2 = TI2 if not
Map TI2FP2 on TI2 by writing TIM_IC2S = 01 in the TIMx_CCMR1 register.
TI2FP2 must detect a rising edge. Write TIM_CC2P = 0 in the TIMx_CCER register.
Configure TI2FP2 as trigger for the slave mode controller (TRGI) by writing TIM_TS =
110 in the TIMx_SMCR register.
TI2FP2 is used to start the counter by writing TIM_SMS to 110 in the TIMx_SMCR
register (trigger mode).
The OPM waveform is defined: Write the compare registers, taking into account the
clock frequency and the counter prescaler.
DELAY
is defined by the value written in the TIMx_CCR1 register.
Doc ID 16252 Rev 7
STM32W108CB, STM32W108HB
Table
25).

Related parts for STM32W108HBU6