參數(shù)資料
型號: STM32W108CBU62
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: SPECIALTY MICROPROCESSOR CIRCUIT, QCC48
封裝: 7 X 7 MM, ROHS COMPLIANT, VFQFPN-48
文件頁數(shù): 31/208頁
文件大小: 2801K
代理商: STM32W108CBU62
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁當(dāng)前第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁
General-purpose timers
STM32W108CB, STM32W108HB
126/208
Doc ID 16252 Rev 6
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:
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.
The tDELAY is defined by the value written in the TIMx_CCR1 register.
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.
10.1.11
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 Table 25).
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
相關(guān)PDF資料
PDF描述
STM8L162R8T3 8-BIT, FLASH, 16 MHz, RISC MICROCONTROLLER, PQFP64
STM8L162R8T6 8-BIT, FLASH, 16 MHz, RISC MICROCONTROLLER, PQFP64
STMPE2401TBR 24 I/O, PIA-GENERAL PURPOSE, PBGA36
STMPE801MTR 8 I/O, PIA-GENERAL PURPOSE, PDSO16
STMPS2262MTR 4 I/O, PIA-GENERAL PURPOSE, PDSO8
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
STM32W108CBU63TR 功能描述:射頻微控制器 - MCU 32BIT ARM Cortex M3 IEEE 802.15.4 64kB RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:Si100x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:24 MHz 程序存儲器大小:64 KB 數(shù)據(jù) RAM 大小:4 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:LGA-42 安裝風(fēng)格:SMD/SMT 封裝:Tube
STM32W108CBU64 制造商:STMicroelectronics 功能描述:STM32 WITH AN ON-CHIP 802.15.4 TRANSCEIVER - Bulk
STM32W108CBU64TR 功能描述:射頻微控制器 - MCU 32BIT ARM Cortex M3 IEEE 802.15.4 64kB RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:Si100x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:24 MHz 程序存儲器大小:64 KB 數(shù)據(jù) RAM 大小:4 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:LGA-42 安裝風(fēng)格:SMD/SMT 封裝:Tube
STM32W108CCU73TR 功能描述:RF片上系統(tǒng) - SoC Hi-prf IEEE 802.15.4 wireless SOC 256Kb RoHS:否 制造商:Texas Instruments 類型:Zigbee 處理器系列:CC253 核心:8051 最大數(shù)據(jù)速率:250 Kbps 輸出功率:4.5 dBm 靈敏度:- 97 dBm 工作電源電壓:2 V to 3.6 V 接收供電電流:24.3 mA 傳輸供電電流:33.5 mA 程序存儲器大小:256 KB 工作溫度范圍:- 40 C to + 125 C 封裝 / 箱體:QFN-40
STM32W108CCU74TR 功能描述:RF片上系統(tǒng) - SoC Hi-prf IEEE 802.15.4 wireless SOC 256Kb RoHS:否 制造商:Texas Instruments 類型:Zigbee 處理器系列:CC253 核心:8051 最大數(shù)據(jù)速率:250 Kbps 輸出功率:4.5 dBm 靈敏度:- 97 dBm 工作電源電壓:2 V to 3.6 V 接收供電電流:24.3 mA 傳輸供電電流:33.5 mA 程序存儲器大小:256 KB 工作溫度范圍:- 40 C to + 125 C 封裝 / 箱體:QFN-40