GT21L16S2W用户手册V35(16)
时间:2026-01-19
时间:2026-01-19
介绍高通汉字库芯片的操作时序,官方版本
BaseAdd=0x66d4c
if (FontCode>= 0xAAA1) and (FontCode<=0xAAFE ) then
ByteAddress = (FontCode–0xAAA1 ) * 12+BaseAdd
Else if(FontCode>= 0xABA1) and (FontCode<=0xABC0 ) then
ByteAddress = (FontCode–0xABA1 + 95) * 12+BaseAdd
6.3.1.4 8X16点国标扩展字符 说明:
BaseAdd:说明本套字库在字库芯片中的起始字节地址。 FontCode:表示字符内码(16bits)
ByteAddress:表示字符点阵在芯片中的字节地址。 计算方法:
BaseAdd=0x3b7d0
if (FontCode>= 0xAAA1) and (FontCode<=0xAAFE ) then
ByteAddress = (FontCode–0xAAA1 ) * 16+BaseAdd
Else if(FontCode>= 0xABA1) and (FontCode<=0xABC0 ) then
ByteAddress = (FontCode–0xABA1 + 95) * 16+BaseAdd
6.3.2 ASCII字符的地址计算
6.3.2.1 5X7 点ASCII 字符 参数说明:
ASCIICode:表示 ASCII码(8bits)
BaseAdd:说明该套字库在芯片中的起始地址。 Address:ASCII字符点阵在芯片中的字节地址。 计算方法:
BaseAdd=0x3bfc0
if (ASCIICode >= 0x20) and (ASCIICode <= 0x7E) then
Address = (ASCIICode –0x20 ) * 8+BaseAdd 6.3.2.2 7X8 点ASCII 字符 参数说明:
ASCIICode:表示 ASCII码(8bits)
BaseAdd:说明该套字库在芯片中的起始地址。 Address:ASCII字符点阵在芯片中的字节地址。 计算方法:
BaseAdd=0x66c0
if (ASCIICode >= 0x20) and (ASCIICode <= 0x7E) then
Address = (ASCIICode –0x20 ) * 8+BaseAdd 6.3.2.3 6X12点 ASCII 字符 说明:
ASCIICode:表示 ASCII码(8bits)
BaseAdd:说明该套字库在芯片中的起始地址。 Address:ASCII字符点阵在芯片中的字节地址。 计算方法:
上一篇:论会计综合实验室的建设