数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1504 数据表(PDF) 2 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
标志 STMICROELECTRONICS - STMicroelectronics

AN1504 数据表(HTML) 2 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
 2 / 9 page
background image
2/9
STARTING A PWM SIGNAL DIRECTLY AT HIGH LEVEL USING THE ST7 16-BIT TIMER
1 16-BIT TIMER PWM MODE
1.1 DESCRIPTION
In pulse width modulation mode, the frequency of the signal is determined by the value in
Output Compare 2 register (OC2R) and the pulse length by the value in the Output Compare
1 register (OCR1) or duty cycle value.
The OLVL2 bit selects the level to be applied to the output pin after a successful comparison
between the counter and the OC2R register and the OLVL1 bit selects the level to be applied
on the output after a successful comparison between the counter and the OC1R register
1.2 NORMAL BEHAVIOUR
Figure 1 shows the normal behaviour of output compare 1 (OCMP1) pin when a PWM signal
is output with OLVL2=1 and OLVL1=0.
Figure 1. PWM output when OLVL2=1 and OLVL1=0
When the counter reaches the OC2R register value, the value of OLVL2 is applied on the
OCMP1 pin (=1 in this case). When the counter reaches the value of the OC1R register, the
value of OLVL1 is applied on the OCMP1 pin (=0). The formulas needed to compute the
values to be put in OC2R and OC1R registers are in the 16-bit Timer chapter of the ST7 da-
tasheets. As the 16-bit Timer is reset at FFFC, the formulas are:
OCiR=((t*Fcpu)/presc)-5 where:
t= period of the signal
OCMP1
Ouput Compare pin
Timer output
FFFFh
OC1R
0000h
FFFCh
Ttimer × 65535
Tmax =
OLVL1=0
OLVL2= 1
FREE RUNNING
COUNTER VALUE
time
time
OC2R
OCMP1
Ouput Compare pin
Timer output
FFFFh
OC1R
0000h
FFFCh
Ttimer × 65535
Tmax =
OLVL1=0
OLVL2= 1
FREE RUNNING
COUNTER VALUE
time
time
OC2R
2



Html Pages

1 2 3 4 5 6 7 8 9


数据表 下载

Go To PDF Page


链接网址



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