| Motore di ricerca datesheet componenti elettronici |
|
STM32W108CB Scheda tecnica(PDF) 108 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32W108CB Scheda tecnica(HTML) 108 Page - STMicroelectronics |
|
108 / 179 page ![]() General-purpose timers STM32W108CB, STM32W108HB 108/179 Doc ID 16252 Rev 2 ● Initialize Timer 2 to 0xE7 by writing 0xE7 in the Timer 2 counter (TIM2_CNTL). ● Enable Timer 2 by writing 1 in the TIM_CEN bit (TIM2_CR1 register). ● Start Timer 1 by writing 1 in the TIM_CEN bit (TIM1_CR1 register). ● Stop Timer 1 by writing 0 in the TIM_CEN bit (TIM1_CR1 register). Figure 42. Gating timer 2 with enable of timer 1 Using one timer to start the other timer In this example, the enable of Timer 2 is set with the update event of Timer 1. Refer to Figure 40 for connections. Timer 2 starts counting from its current value (which can be non- zero) on the divided internal clock as soon as Timer 1 generates the update event. When Timer 2 receives the trigger signal its TIM_CEN bit is automatically set and the counter counts until 0 is written to the TIM_CEN bit in the TIM2_CR1 register. Both counter clock frequencies are divided by 3 by the prescaler compared to CK_INT (fCK_CNT = fCK_INT/3). ● Configure Timer 1 in master mode to send its update event as trigger output (TIM_MMS = 010 in the TIM1_CR2 register). ● Configure the Timer 1 period (TIM1_ARR register). ● Configure Timer 2 to get the input trigger from Timer 1 (TIM_TS = 000 in the TIM2_SMCR register). ● Configure Timer 2 in trigger mode (TIM_SMS = 110 in the TIM2_SMCR register). ● Start Timer 1: Write 1 in the TIM_CEN bit (TIM1_CR1 register). |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |