データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

STM8S データシート(PDF) 162 Page - STMicroelectronics

部品番号 STM8S
部品情報  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S データシート(HTML) 162 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 158Page - STMicroelectronics STM8S Datasheet HTML 159Page - STMicroelectronics STM8S Datasheet HTML 160Page - STMicroelectronics STM8S Datasheet HTML 161Page - STMicroelectronics STM8S Datasheet HTML 162Page - STMicroelectronics STM8S Datasheet HTML 163Page - STMicroelectronics STM8S Datasheet HTML 164Page - STMicroelectronics STM8S Datasheet HTML 165Page - STMicroelectronics STM8S Datasheet HTML 166Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 162 / 467 page
background image
16-bit advanced control timer (TIM1)
RM0016
162/467
DocID14587 Rev 14
Using one timer to enable another timer
Example 1
The enable of timer B is controlled with the output compare 1 of timer A (refer to Figure 56
for connections). Timer B counts on the divided internal clock only when OC1REF of timer A
is high. Both counter clock frequencies are divided by four by the prescaler compared to
f
MASTER (f
CK_CNT = fMASTER/4).
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.
Enable timer B by writing 1 in the CEN bit (TIMx_CR1 register)
6.
Start timer A by writing 1 in the CEN bit (TIMx_CR1 register)
Note:
The counter 2 clock is not synchronized with counter 1. This mode only affects the timer B
counter enable signal.
Figure 56. Gating timer B with OC1REF of timer A
In Figure 56, the timer B counter and prescaler are not initialized before being started.
Therefore, they start counting from their current value. It is possible to start from a given
value by resetting both timers before starting timer A. In this case, any value can be written
in the timer counters. The timers can easily be reset by software using the UG bit in the
TIMx_EGR registers.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


データシート ダウンロード

Go To PDF Page


リンク URL



ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ] 

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   データシートへのリンク    |   リンク交換   |   メーカーリスト
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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