beautypg.com

File format (font), 1 font file in table form, 2 uploading the file to the module – Matrix Orbital GLK24064-25 Legacy User Manual

Page 24

background image

GLK24064-25 rev. 06

24

The character bitmaps are described in section 6.4.3.

6.4.1 Font File in Table Form

The table below shows the layout of a font file in table form.

File Format (Font)

0xFF

0xFF

X size

Y size

Start

End

O-High

O-Low

Width

O-High

O-Low

Width

O-High

O-Low

Width

O-High

O-Low

Width

O-High

O-Low

Width

O-High

O-Low

Width

O-High

O-Low

Width

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

Data

6.4.2 Uploading the File to the Module

The Upload Font command is used to actually upload the font file. Recall that the syntax for this command
is:

0xFE 0x24 [ref] [file size] [file data]

In this example the file size is 94 bytes (0x5E) and the reference number is '2'. The communications
exchange between the host and the module looks like this:

Host sends

Module sends

0xfe

'$' (command)

'2' (reference)

'2' (echo reference)

0x01 (host confirms echo)

0x5e (low size)

0x5e (echo)

0x01 (host confirms echo)

0x00 (high size)

0x00 (echo)

0x01 (file fits)*

0xFF (first byte of data)

0xFF (echo)

0x01 (host confirms echo)

0xFF (second byte of data)

0xFF (echo)

0x01 (host confirms echo)

0x20 (third byte of data)

0x20 (echo)

0x01 (host confirms echo)

etc