| Electronic Components Datasheet Search |
|
AN594 Datasheet(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN594 Datasheet(HTML) 22 Page - STMicroelectronics |
|
22 / 28 page ![]() Direct LCD Drive 22/28 ANNEX 2: Software of the ST6265x based application (Continued) jrr 1,LCDCTL,LOOP2 ; determine phase2 operation jrr 2,LCDCTL,LOOP3 ; determine phase3 operation ;************************* PHASE 4 ********************************* LOOP4 inc DIG1 ; increment DIG1 & DIG2 for phase 4 inc DIG2 ; call DATALCD ; calculate phase4 segments driver byte ldi pbbuf,00000011b ; pb buffer load ldi pb ,00000011b ; pb1 in High Impedance (HI) & pb0 to 0 ldi pbdir,00110001b ; ldi pbbuf,00000010b ; pb buffer load ldi pb ,00000010b ; 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 ;| clr LCDCTL ; end of loop4 & full LCD sequence reti ;************************* PHASE 3 ******************************** LOOP3 inc DIG1 ; increment DIG1 & DIG2 for phase 3 inc DIG2 call DATALCD ; calculate phase3 segments driver byte ldi pbopt,00110000b ; pb0 in HI & pb1 to 0 ldi pbdir,00110010b ; ldi pbbuf,00000001b ; pb buffer load ldi pb, 00000001b ; 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 2,LCDCTL ; end of loop3 reti ;************************* PHASE 2 ********************************* LOOP2 inc DIG1 ; increment DIG1 & DIG2 for phase 2 inc DIG2 call DATALCD ; calculate phase2 segments driver byte ldi pbopt,00110000b ; pb1 in HI & pb0 to 1 ldi pbdir,00110001b ; ldi pbopt,00110001b ; 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 ;| |
|
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 |
| 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 |