| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
STM32W108CB bảng dữ liệu(PDF) 188 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32W108CB bảng dữ liệu(HTML) 188 Page - STMicroelectronics |
|
188 / 278 page ![]() General-purpose timers STM32W108HB STM32W108CC STM32W108CB STM32W108CZ 188/278 Doc ID 16252 Rev 14 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 45 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 CEN bit is automatically set and the counter counts until 0 is written to the 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 (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 (TS = 000 in the TIM2_SMCR register). ● Configure Timer 2 in trigger mode (SMS = 110 in the TIM2_SMCR register). ● Start Timer 1: Write 1 in the CEN bit (TIM1_CR1 register). Figure 48. Triggering timer 2 with update of Timer 1 As in the previous example, both counters can be initialized before starting counting. Figure 47 shows the behavior with the same configuration shown in Figure 48, but in trigger mode instead of gated mode (SMS = 110 in the TIM2_SMCR register). TIE Clear TIE FD FE FF 00 01 45 47 48 CK_INT TIMER1-UEV TIM1-CNT TIM2-CNT 02 46 TIM2_CR1 CEN=1 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |