поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

L9805 датащи(PDF) 41 Page - STMicroelectronics

номер детали L9805
подробное описание детали  Super Smart Power Motor Driver with 8-BIT MCU, CAN Interface, 16K EPROM, 256Bytes RAM, 128 Bytes EEPROM, 10 Bit ADC, WDG, 2 Timers, 2 PWM Modules, Ful
PDF  103 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

L9805 датащи(HTML) 41 Page - STMicroelectronics

Back Button L9805 Datasheet HTML 37Page - STMicroelectronics L9805 Datasheet HTML 38Page - STMicroelectronics L9805 Datasheet HTML 39Page - STMicroelectronics L9805 Datasheet HTML 40Page - STMicroelectronics L9805 Datasheet HTML 41Page - STMicroelectronics L9805 Datasheet HTML 42Page - STMicroelectronics L9805 Datasheet HTML 43Page - STMicroelectronics L9805 Datasheet HTML 44Page - STMicroelectronics L9805 Datasheet HTML 45Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 41 / 103 page
background image
41/103
L9805
16-BIT TIMER (Cont’d)
5.2.3.7 Pulse Width Modulation Mode
Pulse Width Modulation mode enables the gener-
ation of a signal with a frequency and pulse length
determined by the value of the OCR1 and OCR2
registers.
The pulse width modulation mode uses the com-
plete Output Compare 1 function plus the OCR2
register.
Procedure
To use pulse width modulation mode select the fol-
lowing in the CR1 register:
– Using the OLVL1 bit, select the level to be ap-
plied to the OCMP1 pin after a successful com-
parison with OCR1 register.
– Using the OLVL2 bit, select the level to be ap-
plied to the OCMP1 pin after a successful com-
parison with OCR2 register.
– Set OC1E bit: the OCMP1 pin is then dedicated
to the output compare 1 function.
And select the following in the CR2 register:
– Set the PWM bit.
– Select the timer clock (CC1-CC0) (see Table 7
Clock Control Bits).
Load the OCR2 register with the value corre-
sponding to the period of the signal.
Load the OCR1 register with the value corre-
sponding to the length of the pulse if (OLVL1=0
and OLVL2=1).
If OLVL1=1 and OLVL2=0 the length of the pulse
is the difference between the OCR2 and OCR1
registers.
The OCRi register value required for a specific tim-
ing application can be calculated using the follow-
ing formula:
Where:
– t = Desired output compare period (seconds)
–fCPU = Internal clock frequency (see Miscella-
neous register)
– CC1-CC0 = Timer clock prescaler
The Output Compare 2 event causes the counter
to be initialized to FFFCh (See Figure 25, on
page 42).
Note: After a write instruction to the OCHRi regis-
ter, the output compare function is inhibited until
the OCLRi register is also written.
The OCF1 and OCF2 bits cannot be set by hard-
ware in PWM mode therefore the Output Compare
interrupt is inhibited. The Input Capture interrupt is
available.
When the Pulse Width Modulation (PWM) and
One Pulse Mode (OPM) bits are both set, the
PWM mode is the only active one.
OCRi Value =
t * fCPU
(CC1.CC0)
- 5
Counter
Counter is reset
to FFFCh
OCMP1 = OLVL2
Counter
= OCR2
OCMP1 = OLVL1
When
When
= OCR1
Pulse Width Modulation cycle



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



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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