| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN594 bảng dữ liệu(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN594 bảng dữ liệu(HTML) 24 Page - STMicroelectronics |
|
24 / 28 page ![]() Direct LCD Drive 24/28 ;************************************************************************ ;* HEXADECIMAL — > DECIMAL DATA CONVERSION SUBROUTINE ;* ;* task : convert an hexadecimal data in a Binary Coded Decimal data ;* determine data/rom window address of segments driver byte ;* ;* ;* hexadecimal data is a stable data varying from 0 to 256 ;* result is a percent decimal data varying from 0 to 99 ;* BCD Binary Coded Decimal data ;* ;* for instance, data is duty0 ;* ;* DIG1 = data/rom WDW @ of DIGIT1 segments driver = 01wxyzAB ;* DIGIT1 = wxyz ( from 0 to 9 ) and ;* AB are defined by phase operation : AB = 00 for phase1 ... ;* AB = 11 for phase4 ;* DIG2 = data/rom WDXW @ of DIGIT2 segments driver ;* similar writing than DIG1 ;* ;************************************************************************* DECCONV jrr 7,duty0,ET1 ; DATA <== duty0 ldi drwr,039h ; b7 of DATA is 1 : 50 < DATA < 99 jp ET2 ET1 ldi drwr,038h ; b7 of DATA is 0 : 00 < DATA < 49 ET2 ld a,duty0 ; rlc a ; rlc a ; rlc a ; calculation of BinCodDec DATA rlc a ; address rlc a ; rlc a ; rlc a ; rlc a ; set 6,a ; res 7,a ; ld x,a ; ld a,(x) ; ld BCD,a ; BCD <= Binary Coded Decimal DATA andi a,00fh ; determine DIGIT1 value and the sla a ; data/rom address of DIGIT1 segments sla a ; driver addi a,040h ; ld DIG1,a ; DIG1 = data/rom @ of segment driver ld a,BCD ; determine DIGIT2 value and the andi a,0f0h ; data/rom address of DIGIT2 segments rlc a ; driver rlc a ; rlc a ; rlc a ; rlc a ; sla a ; sla a ; ANNEX 2: Software of the ST6265x based application (Continued) |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |