Electronic Components Datasheet Search
  English  ▼

X  

AN594 Datasheet(PDF) 23 Page - STMicroelectronics

Part # AN594
Description  This note describes a technique for driving
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN594 Datasheet(HTML) 23 Page - STMicroelectronics

Back Button 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 AN594 Datasheet HTML 26Page - STMicroelectronics AN594 Datasheet HTML 27Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 28 page
background image
Direct LCD Drive
23/28
set
1,LCDCTL
; end of loop2
reti
;*************************
PHASE 1
*********************************
LOOP1
call
DECCONV
; do hexa-decimal data conversion
call
DATALCD
; calculate phase1 segment driver byte
; driver data is stored in accumulator
ldi
pbbuf,00000011b
; pb buffer load
ldi
pb,00000011b
; b1 to 1
&
b0 in HI
ldi
pbdir,00110010b
; b2 — > b7 unchanged
ldi
pbopt,00110010b
;
ld
pa,a
;load segment driver byte on port a
;
ld
a,AUX3
;
;
ld
x,a
;
;
ld
a,AUX2
; return to main tasks with context
;
ld
drwr,a
;(AUX2 <== drwr in main program)
;
ld
a,AUX1
;
set
0,LCDCTL
; end of loop1
reti
;************************************************************************
;*
END OF LCD DRIVER SUBROUTINE
;************************************************************************
;************************************************************************
;*
DEC DATA/LCD SEGMEMTS CONVERSION SUBROUTINE
;*
;* task : calculate the segments driver byte of the LCD
;*
depends on the displayed data AND on the # of phase
;*
based on DIG1 & DIG2 calculation
;*
LCD segments driver full byte is in accumulator
;************************************************************************
DATALCD
ldi
drwr,3ch
; move data/rom window on DIGIT2 table
ld
a,DIG2
ld
x,a
ld
a,(x)
ld
y,a
; load DIGIT2 driver half byte (MSB)
ldi
drwr,3dh
; move data/rom window on DIGIT1 table
ld
a,DIG1
ld
x,a
ld
a,(x)
and
a,y
; load DIGIT1 driver half byte (LSB)
ret
;************************************************************************
;*
END OF DATA/LCD CONVERSION SUBROUTINE
;************************************************************************
ANNEX 2: Software of the ST6265x based application (Continued)



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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