The LCD Chinese font LCD module can display both Chinese and Western languages, with the following standards:
1. Encoding standards for Chinese characters:
In order to represent Chinese characters using 0 and 1 code strings, the information exchange code for Chinese characters is specified as GB 2312-80, abbreviated as the national standard code. There are a total of 7445 characters, including Chinese characters and other characters. 3755 first level Chinese characters, arranged in Pinyin order; There are 3008 secondary Chinese characters arranged according to radicals and strokes. Other characters include commonly used symbols, serial numbers, GB1988 graphic character set, Greek characters, tab characters, etc. Each symbol of the national standard code is represented by a two byte (16 bit binary) code to represent a Chinese character.
1) National standard code: 94 (0-93) for each row and column, represented by two 7-bit binary numbers in the first and second columns.
2) Location code: Due to the inconvenient representation of binary national standard codes, Chinese characters can also be represented by decimal location codes. 94 (1-94) blocks and 94 (1-94) bits each, represented by two 2-digit decimal numbers starting with the block and ending with the bit.
3) Internal code: Refers to the code that represents Chinese characters within a computer. In microcomputers, a two byte (highest bit 1) code is often used as the internal code.
2. Conversion between location code and internal code:
The exchange code and internal code of the Western system both use the American standard information exchange code ASCII, which is represented by one byte and usually only uses the lower seven bits, which can represent 128 symbols. The Chinese characters embedded in the software are compiled by the compiler and stored in the format of internal code. The conversion relationship between location code and internal code can be summarized as: (hexadecimal representation of location code)+A0A0H=internal code. Taking the Chinese character "Da" as an example, the hexadecimal representation of the internal code of "Da" is 1453H, and adding A0A0H yields the internal code B4F3H.
|