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

X  

AN594 数据表(PDF) 21 Page - STMicroelectronics

部件名 AN594
功能描述  This note describes a technique for driving
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN594 数据表(HTML) 21 Page - STMicroelectronics

Back Button AN594 Datasheet HTML 17Page - STMicroelectronics AN594 Datasheet HTML 18Page - STMicroelectronics AN594 Datasheet HTML 19Page - STMicroelectronics AN594 Datasheet HTML 20Page - STMicroelectronics AN594 Datasheet HTML 21Page - STMicroelectronics AN594 Datasheet HTML 22Page - STMicroelectronics AN594 Datasheet HTML 23Page - STMicroelectronics AN594 Datasheet HTML 24Page - STMicroelectronics AN594 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 28 page
background image
Direct LCD Drive
21/28
ANNEX 2: Software of the ST6265x based application (Continued)
ret
;***********************************************************************
;*
END OF MAIN INITIALIZATION
;***********************************************************************
;************************************************************************
;*
MAIN TASK EXAMPLE : ACQUISITION OF USER SPEED REFERENCE DUTY0
*
;*
*
;*
duty0 is a user reference that can vary from 0 to 255d
*
;************************************************************************
DUTY0
jrr
2,pb,slower
; if PB2=0,then slower ; priority on slower
jrr
3,pb,faster
; if PB3=0,then faster ; else continue
ret
; if PB2 & PB3 are high; then continue
slower
ld
a,duty0
cpi
a,000h
jumpz retour
ld
a,counter1
addi
a,01h
ld
counter1,a
jumpnc retour
dec
duty0
; increment duty cycle
ret
faster
ld
a,duty0
cpi
a,0ffh
jrz
retour
ld
a,counter1
addi
a,01h
ld
counter1, a
jrnc
retour
inc
duty0
; decrement duty cycle
retour
ret
;***********************************************************************
;*
end subroutine get_dut0
;***********************************************************************
;***********************************************************************
;*
DUPLEXED LCD DRIVER INTERRUPT SUBROUTINE
;*
;*
task :
generate alternative signals of LCD backplanes control
;*
drive the segments of LCD through port a
;*
calculate duration of each LCD phase
;*
;***********************************************************************
LCD_LP
ldi
wdt,0ffh
; hello watchdog
;
ld
AUX1, a
; |
;
ld
a, x
; | save context of main task (if needed)
;
ld
AUX3, a
; |
;
ldi
tscr1,00h
; timer stop (if needed)
ldi
tcr1 , FASTIM ; LCD phase duration calculation
ldi
tscr1, 07fh
; timer initialization
;************************************************************************
;* LCD phase generation can be here synchronized by other clock system.
;*
for instance : mains voltage synchronization or external clock
;************************************************************************
jrr
0,LCDCTL,LOOP1
; determine phase1 operation



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


数据表 下载

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