Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

RM0312 Datasheet(PDF) 135 Page - STMicroelectronics

No. de pieza RM0312
Descripción Electrónicos  STM8TL5xxx microcontroller family
PDF  275 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0312 Datasheet(HTML) 135 Page - STMicroelectronics

Back Button RM0312 Datasheet HTML 131Page - STMicroelectronics RM0312 Datasheet HTML 132Page - STMicroelectronics RM0312 Datasheet HTML 133Page - STMicroelectronics RM0312 Datasheet HTML 134Page - STMicroelectronics RM0312 Datasheet HTML 135Page - STMicroelectronics RM0312 Datasheet HTML 136Page - STMicroelectronics RM0312 Datasheet HTML 137Page - STMicroelectronics RM0312 Datasheet HTML 138Page - STMicroelectronics RM0312 Datasheet HTML 139Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 135 / 275 page
background image
DocID022352 Rev 3
135/275
RM0312
16-bit general purpose timer (TIM2/TIM3)
170
OCi polarity is software programmable using the CCiP bit in the TIMx_CCERi register. It can
be programmed as active high or active low. OCi output is enabled by a combination of
CCiE, MOE, OISi, OSSR and OSSI bits (TIMx_CCERi and TIMx_BKR registers). Refer to
the TIMx_CCERi register description for more details.
In PWM mode (1 or 2), TIMx_CNT and TIMx_CCRi are always compared to determine
whether TIMx_CCRi
≤TIMx_CNT or TIMx_CNT≤TIMx_CCRi (depending on the direction of
the counter).
The timer is able to generate PWM in edge-aligned mode or center-aligned mode
depending on the CMS bits in the TIMx_CR1 register.
PWM edge-aligned mode
Up-counting configuration
Up-counting is active when the DIR bit in the TIMx_CR1 register is low.
In the following example, we consider the PWM mode 1. The reference PWM signal
OCiREF is high as long as TIMx_CNT <TIMx_CCRi else it becomes low. If the compare
value in TIMx_CCRi is greater than the auto-reload value (in TIMx_ARR) then OCiREF will
be held at ‘1’. If the compare value is 0 then OCiREF will be held at ‘0’. Figure 57 shows
some edge-aligned PWM waveforms in an example where TIMx_ARR=8.
Figure 57. Edge-aligned counting mode PWM mode 1 waveforms (ARR=8)
Down-counting configuration
Down-counting is active when DIR bit in TIMx_CR1 register is high. Refer to Down-counting
mode on page 111
In PWM mode 1, the reference signal OCiREF is low as long as TIMx_CNT> TIMx_CCRi
else it becomes high. If the compare value in TIMx_CCRi is greater than the auto-reload
value in TIMx_ARR, then OCiREF will be held at ‘1’. 0% PWM is not possible in this mode.
PWM center-aligned mode
Center-aligned mode is active when the CMS bits in TIMx_CR1 register are different from
‘00’ (all the remaining configurations having the same effect on the OCiREF/OCi signals).
COUNTER REGISTER
‘1’
0
12
34
5
6
7
8
0
1
‘0’
OCiREF
CCiIF
OCiREF
CCiIF
OCiREF
CCiIF
OCiREF
CCiIF
CCRx = 4
CCRx = 8
CCRx > 8
CCRx = 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


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
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