Electronic Components Datasheet Search
  English  ▼

X  

AN594 Datasheet(PDF) 20 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) 20 Page - STMicroelectronics

Back Button AN594 Datasheet HTML 16Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 28 page
background image
Direct LCD Drive
20/28
ANNEX 2: Software of the ST6265x based application (Continued)
;************************************************************************
;*
INTERRUPT VECTORS
;************************************************************************
.org
0ff0h
it_tim1
jp
LCD_LP
; timer1 interrupt synchronizes LCD drive
it_tim2
nop
; it.
timer2
reti
it_pc_spi nop
; it.
port c & SPI
reti
it_pa_pb
nop
; it. port a & port b
reti
nop
nop
nop
nop
nmi
nop
reti
res
jp
START
;***********************************************************************
;*
MAIN PROGRAM EXAMPLE
;***********************************************************************
.org
0880h
START
reti ; end of reset interrupt
call INIT
MAIN
call DUTY0
jp
MAIN
;***********************************************************************
;*
END OF MAIN PROGRAM
;***********************************************************************
;***********************************************************************
;*
MAIN INITIALIZATION SUBROUTINE
;***********************************************************************
INIT
ldi
wdt,00000111b ; watchdog initialization
ldi
eecr,040h
; EEPROM in stand by for power saving
ldi
oscr,008h
; CKOUT
output
disabled for power saving
ldi
pbdir,00110000b
; b0 & b1 is common :Hi/Impedance Input
ldi
pbopt,00110000b
; b2 &b3 is input for +/- push button
ldi
pbbuf,00000011b
; pb buffer byte load
ldi
pb,00000011b
; b6,b7 in input with pull up
ldi
padir,0ffh
; a0 to a7 in push pull output
ldi
paopt,0ffh
; pa = driver of LCD segments
ldi
pa,00h
; output is zero
ldi
pcdir,00h
;
ldi
pcopt,00h
; c0 -> c7 inputs with pull up
ldi
pc,00h
;
ldi
drwr,3ch
; data/rom window origin
clr
LCDCTL
; clear LCD phase sequence control
ldi
ior , 010h
; interrupt validation
ldi
tcr1 ,009h
; load timer1 for LCD phase generation
ldi
tscr1,07fh
; timer initialization
clr
duty0
ldi wdt, 00000111b
; hello watchdog



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