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

X  

AN1504 データシート(PDF) 3 Page - STMicroelectronics

部品番号 AN1504
部品情報  STARTING A PWM SIGNAL DIRECTLY AT HIGH LEVEL USING THE ST7 16-BIT TIMER
PDF  9 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1504 データシート(HTML) 3 Page - STMicroelectronics

  AN1504 Datasheet HTML 1Page - STMicroelectronics AN1504 Datasheet HTML 2Page - STMicroelectronics AN1504 Datasheet HTML 3Page - STMicroelectronics AN1504 Datasheet HTML 4Page - STMicroelectronics AN1504 Datasheet HTML 5Page - STMicroelectronics AN1504 Datasheet HTML 6Page - STMicroelectronics AN1504 Datasheet HTML 7Page - STMicroelectronics AN1504 Datasheet HTML 8Page - STMicroelectronics AN1504 Datasheet HTML 9Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 3 / 9 page
background image
3/9
STARTING A PWM SIGNAL DIRECTLY AT HIGH LEVEL USING THE ST7 16-BIT TIMER
Fcpu= CPU frequency
presc= Timer 16 presc
Figure 2 shows the waveforms we see on an oscilloscope if the PWM signal is initialized at
10KHz with a 50% duty cycle (OLVL2=1 and OLVL1=0) and if a flag is set as soon as the
counter is started.
Figure 2. OCMP1 waveform with 50% Duty Cycle
We can see from this figure that we have to wait until the counter reaches the OC2R register
value to get the first high state on the OCMP1 pin. So we have lost one PWM cycle before get-
ting the first high level and in some applications, like energizing motor windings, this is not ac-
ceptable. After a motor demagnetization phase, if the windings are not energized immediately
when the PWM is started, the motor can stall. The purpose of the following sections is to ex-
plain how to get a high level on OCMP1 pin immediately.
To solve the problem, we have to handle two cases.
1. The PWM signal is high when the timer is between FFFC (its reset value) and the OC1R
register value. This means OLVL1=0 and OLVL2=1.
2. The PWM signal is high when the timer is between the OC1R register value and the OC2R
register value. This means OLVL1=1 and OLVL2=0.
Timer 16 start
output enabled
flag
PWM
OUTPUT



Html Pages

1 2 3 4 5 6 7 8 9


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

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