The Chinese character set for national standard information exchange GB 2312-80 contains a total of 7445 Chinese characters and graphic symbols, including 6763 Chinese characters, which are divided into two levels according to the frequency of use of Chinese characters. 3008. Chinese characters and graphic symbols are divided into 94 "zones" according to their positions. Each zone contains 94 Chinese characters, and each Chinese character is also called "bit". The serial number of "District" is from 01 to 94, and the serial number of "Bit" is from 01 to 94. If the "bit" number is represented horizontally and the "area" number is represented vertically, then the "area" and "bit" constitute a two-dimensional coordinate. Given a "zone" value and "bit" value, a unique Chinese character or graphic symbol can be determined. That is, 4 Arabic numerals can uniquely determine a Chinese character or symbol. For example, the location code of the word "North" is "1717", while the location code of the Beijing character is "3009". The first two digits are the "area" number, and the last two digits are the "bit" number. Among them, zones 1 to 15 are various graphic symbols, tabs, and letters from some major countries. Zones 16 to 87 are Chinese characters, of which zones 16 to 55 are first-level Chinese characters, and zones 56 to 87 are second-level Chinese characters.

The file HZK16 and the file ASC16 in the UCDOS software are 16 × 16 international Chinese character dot matrix files and 8 × 16 ASCII code dot matrix files respectively. In HZK16, all the Chinese characters in the national standard area code table are stored in order from small to large , Each Chinese character occupies 32 bytes, each area is 94 Chinese characters. In the asc16 file, there are 8 × 16 ASCII code dots in ascii code from small to large, and each ASCII code occupies 16 bytes.

In the text file of the PC, Chinese characters are stored in the form of internal codes, each Chinese character occupies 2 bytes, the first byte is the area code of the internal code, the area code of the internal code of the Chinese character is from 0A1H (Hexadecimal) starts, corresponding to the first zone of the zone code in the zone code; and the second byte of the machine code is the bit code of the machine code, the range is also from 0A1H (hex), corresponding The first bit code in a zone. That is to say, subtracting 0A0AH from the internal code of the Chinese character machine will get the area code of the Chinese character. For example, the internal code of the Chinese character "North" is hexadecimal "B1B1", where the first two digits "B1" indicate the area code of the internal code, and the last two digits "B1" indicate the internal code of the internal code. Therefore, the area code of "North" is 0B1B1H-0A0A0H = 1111H, and the area code and bit code are converted to decimal respectively, and the area code of the Chinese character "North" is "1717". That is, the dot matrix of "North" is located at the position of the 17th word in the 17th area, and the position in the file HZK16 is 32 * [(17-1) × 94 + (17-1)] = the 32nd after 48640D The display lattice with byte "North". Use the RF-1800 programmer to read the binary file hzk16j.bin and use the buffer editing in its editing function to find the 32 words starting with BE00 H (48640D is decimal, and convert it to hexadecimal to get BE00 H) Section: 04 80 04 80 04 88 04 98 04 A0 7C C0 04 80 04 80 04 80 04 80 04 80 04 80 1C 82 E4 82 44 7E 00 00 (the above are all in hexadecimal), write it in 16 Figure 16 is obtained on × 16 dot matrix graph paper. From this we can understand their mutual logical relationship.

In the single-chip microcomputer system, 32 bytes are continuously sent to the corresponding position of the LCD, and the graphic symbols after the Chinese characters can be displayed correctly. From the control principle of SED1520 used by HS-12232-1, we know that the font should be rotated 90 ° before sending to the display. For example, the location code of "Feng" is 3778, and the position in HZK16 is 32 * [(37-1) * 94+ (78-1)] = 32 bytes after 110752D: 04 44 FF FE 05 40 41 F8 33 10 14 E0 01 18 F6 46 1B F8 10 40 13 F8 10 40 17 FC 10 40 28 46 47 FC, After rotating 90 °, the upper 16 bytes: 82 8A 92 B2 02 A7 92 5E 2A AF 2A 5A 4A 83 82 00, the lower 16 bytes; 00 80 40 3F 04 90 95 95 95 FF 95 95 95 D0 40 00.

2.4 Display principle of ASCII code The display of ASCII code is the same as the basic principle of Chinese character display. There is no problem of internal code in the ASC16 file. The display dot matrix is ​​directly arranged in ascending order of ASCII code, but each ASCII code is in The text file occupies only 1 byte and is less than 80 H, and each ASCII code is 8 × 16 dot matrix, that is, in the ASCII16 file, each ASCII code dot matrix also occupies only 16 bytes. The Principle of Displaying Chinese Characters in Standard Character Bank-SCM Tutorial The Principle of Displaying Chinese Characters in Standard Character Bank

Slot Game PCB Board

Slot Game Pcb Board,Game Circuit Board,Pcb Circuit Board,Pcb Motherboard

Guangzhou Ruihong Electronic Technology CO.,Ltd , https://www.callegame.com

Posted on