| 전자부품 데이터시트 검색엔진 |
|
AN594 데이터시트(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN594 데이터시트(HTML) 23 Page - STMicroelectronics |
|
23 / 28 page ![]() 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) |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |