| поискавой системы для электроныых деталей |
|
STM8S датащи(PDF) 163 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM8S датащи(HTML) 163 Page - STMicroelectronics |
|
163 / 467 page ![]() DocID14587 Rev 14 163/467 RM0016 16-bit advanced control timer (TIM1) 261 Example 2 Timer A and timer B are synchronized. Timer A is the master and starts from 0. Timer B is the slave and starts from E7h. The prescaler ratio is the same for both timers. Timer B stops when timer A is disabled by writing 0 to the CEN bit in the TIMx_CR1 register: 1. Configure timer A master mode to send its output compare 1 reference (OC1REF) signal as trigger output (MMS = 100 in the TIMx_CR2 register). 2. Configure the timer A OC1REF waveform (TIMx_CCMR1 register) 3. Configure timer B to get the input trigger from timer A (see TS[2:0] bit definitions in TIMx_SMCR register). 4. Configure timer B in trigger gated mode (SMS = 101 in TIMx_SMCR register) 5. Reset timer A by writing 1 in UG bit (TIMx_EGR register) 6. Reset timer B by writing 1 in UG bit (TIMx_EGR register) 7. Initialize timer B to 0xE7 by writing ‘E7h’ in the timer B counter (TIMx_CNTRL) 8. Enable timer B by writing 1 in the CEN bit (TIMx_CR1 register) 9. Start timer A by writing 1 in the CEN bit (TIMx_CR1 register) 10. Stop timer A by writing 0 in the CEN bit (TIMx_CR1 register) Figure 57. Gating timer B with the counter enable signal of timer A (CNT_EN) |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |