| 전자부품 데이터시트 검색엔진 |
|
RM0312 데이터시트(PDF) 125 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0312 데이터시트(HTML) 125 Page - STMicroelectronics |
|
125 / 275 page ![]() DocID022352 Rev 3 125/275 RM0312 16-bit general purpose timer (TIM2/TIM3) 170 Figure 44. Gating Timer B with the counter enable signal of Timer A (CNT_EN) Using one timer to start another timer In this example, we set the enable of Timer B with the update event of Timer A. Refer to Figure 42 for connections. Timer B starts counting from its current value (which can be non- zero) on the divided internal clock as soon as the update event is generated by Timer A. When Timer B receives the trigger signal its CEN bit is automatically set and the counter counts until we write ‘0’ to the CEN bit in the TIMx_CR1 register. Both counter clock frequencies are divided by 4 by the prescaler compared to fMASTER (fCK_CNT = fMASTER/4). 1. Configure Timer A master mode to send its Update Event (UEV) as trigger output (MMS=010 in the TIMx_CR2 register). 2. Configure the Timer A period (TIMx_ARR registers). 3. Configure Timer B to get the input trigger from Timer A (TS=001 in the TIMx_SMCR register). 4. Configure Timer B in trigger mode (SMS=110 in TIMx_SMCR register). 5. Start Timer A by writing ‘1’ in the CEN bit (TIMx_CR1 register). Timer B-TIF Write TIF=0 75 00 01 fMASTER TIMERA-CEN = CNT_EN TIMERA-CNT TIMERB-CNT 02 TIMERA-UG AB 00 E7 E8 E9 TIMERB-UG TIMERB write CNT |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |