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

X  

AN1504 数据表(PDF) 7 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) 7 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
 7 / 9 page
background image
7/9
STARTING A PWM SIGNAL DIRECTLY AT HIGH LEVEL USING THE ST7 16-BIT TIMER
ld A,#$00
ld TAOC1HR,A
ld A,#$60
ld TAOC1LR,A
; set 0% duty cycle by compare 1 value > compare 2 value
After this initialization, the PWM synchronization at start is done by putting a value into the
compare register that is just higher than the timer restart value.
Synchronization:
ld X,#$FF
;set compare 1 to FFFD just after the timer reset value FFFC
ld TAOC1HR,X
;to force the output PWM high just after restart
ld A,#$FD
ld TAOC1LR,A
add A,#$0F
;ld compare 2 with compare 1+20% duty (000F)
ld Y,A
ld A,X
adc A,#$00
ld TAOC2HR,A
ld TAOC2LR,Y
clr TACLR
;reset timer A to FFFC
bset PADR,#2
;set synchronization flag of timer A
.wait_TA_C1
ld A,TACHR
jrne wait_TA_C1;wait timer A counter=0000 to restore compare 1
ld A,#$00
ld TAOC1HR,A
ld A,#$50
ld TAOC1LR,A
;restore compare 1 to 20% (compare 2*(1-20%))
.wait_TA_C2
btjf TACHR,#7,wait_TA_C2;wait for reset of timer A before restoring com-
pare 2 value
ld A,#$00
ld TAOC2HR,A
ld A,#$5F
;restore compare 2 to 10KHz=100-5=95 (see formulas)
ld TAOC2LR,A
bres PADR,#2
;reset synchronization flag of timer B



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