| Electronic Components Datasheet Search |
|
STM32W108HB Datasheet(PDF) 91 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32W108HB Datasheet(HTML) 91 Page - STMicroelectronics |
|
91 / 179 page ![]() STM32W108CB, STM32W108HB General-purpose timers Doc ID 16252 Rev 2 91/179 Figure 24 gives an overview of the external trigger input block. Figure 24. External trigger input block For example, to configure the up-counter to count each 2 rising edges on ETR, use the following procedure: ● As no filter is needed in this example, write TIM_ETF = 0000 in the TIMx_SMCR register. ● Set the prescaler by writing TIM_ETPS = 01 in the TIMx_SMCR register. ● Select rising edge detection on ETR by writing TIM_ETP = 0 in the TIMx_SMCR register. ● Enable external clock mode 2 by writing TIM_ECE = 1 in the TIMx_SMCR register. ● Enable the counter by writing TIM_CEN = 1 in the TIMx_CR1 register. The counter counts once each 2 ETR rising edges. The delay between the rising edge on ETR and the actual clock of the counter is due to the resynchronization circuit on the ETRP signal. Figure 25. Control circuit in external clock mode 2 8.1.4 Capture/compare channels Each capture/compare channel is built around a capture/compare register including a shadow register, an input stage for capture with digital filter, multiplexing and prescaler, and an output stage with comparator and output control. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |