전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

STM8S 데이터시트(PDF) 178 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) 178 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 174Page - STMicroelectronics STM8S Datasheet HTML 175Page - STMicroelectronics STM8S Datasheet HTML 176Page - STMicroelectronics STM8S Datasheet HTML 177Page - STMicroelectronics STM8S Datasheet HTML 178Page - STMicroelectronics STM8S Datasheet HTML 179Page - STMicroelectronics STM8S Datasheet HTML 180Page - STMicroelectronics STM8S Datasheet HTML 181Page - STMicroelectronics STM8S Datasheet HTML 182Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 178 / 467 page
background image
16-bit advanced control timer (TIM1)
RM0016
178/467
DocID14587 Rev 14
The OPM waveform is defined by writing the compare registers (taking into account the
clock frequency and the counter prescaler) as follows:
The tDELAY is defined by the value written in the TIM1_CCR1 register
The tPULSE is defined by the difference between the auto-reload value and the compare
value (TIM1_ARR - TIM1_CCR1).
To build a waveform with a transition from 0 to 1 when a compare match occurs and a
transition from 1 to 0 when the counter reaches the auto-reload value, enable PWM
mode 2 by writing OCiM = 111 in the TIM1_CCMR1 register. Alternatively, enable the
preload registers by writing OC1PE = 1 in the TIM1_CCMR1 register and ARPE = 0 in
the TIM1_CR1 register (optional). In this case, write the compare value in the
TIM1_CCR1 register and write the auto-reload value in the TIM1_ARR register. Then,
generate an update by setting the UG bit and wait for an external trigger event on TI2.
CC1P is written to 0 in this example.
In the example outlined above, the DIR and CMS bits in the TIM1_CR1 register should be
low.
As only one pulse is required, write 1 in the OPM bit in the TIM1_CR1 register to stop the
counter at the next UEV (when the counter rolls over from the auto-reload value back to 0).
Particular case: OCi fast enable
In one-pulse mode, the edge detection on the TIi input sets the CEN bit which enables the
counter. Then, a comparison between the counter and the compare value makes the output
toggle. However, several clock cycles are needed for these operations and this affects the
the minimum delay (tDELAY min) that can be obtained.
To output a waveform with the minimum delay, set the OCiFE bits in the TIM1_CCMRi
registers. OCiREF (and OCi) are forced in response to the stimulus, without taking the
comparison into account. The new level of OCiREF (and OCi) is the same as if a compare
match had occured. The OCiFE bits acts only if the channel is configured in PWM1 or
PWM2 mode.
Complementary outputs and deadtime insertion
TIM1 can output two complementary signals per channel. It also manages the switching-off
and switching-on instants of the outputs (see Figure 31: TIM1 general block diagram on
page 140).
This time is generally known as deadtime. Deadtimes must be adjusted depending on the
characteristics of the devices connected to the outputs (example, intrinsic delays of level-
shifters, delays due to power switches).
The polarity of the outputs can be selected (main output OCi or complementary OCi N)
independently for each output. This is done by writing to the CCi P and CCi NP bits in the
TIM1_CCERi registers.
The complementary signals OCi and OCi N are activated by a combination of several
control bits: The CCi E and CCi NE bits in the TIM1_CCERi register and, if the break feature
is implemented, the MOE, OISi, OISi N, OSSI, and OSSR bits in the TIM1_BKR register.
Refer to Table 38: Output control for complementary OCi and OCiN channels with break
feature on page 207 for more details. In particular, the deadtime is activated when switching
to the IDLE state (when MOE falls to 0).



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