Download Programmer`s Manual

Transcript
Flash Based Font Download
The Mt2 and Mt3 printers provide the user the ability to replace the factory-installed fonts. This allows the
printer to adapt to many application specific character sets.
Note: To protect the fonts from accidental corruption these must be the first commands received by the
printer when it is powered on.
Normal ASCII Font Download
(RS-232 only)
Enter flash ASCII font program mode:
n:
ESC D A n
Reserved for future use (‘0’ is recommended)
Note: This command must be the first ESC command received upon activating the printer.
1.
2.
3.
The printer will deactivate the CTS line and copy the requested Flash bank to SRAM.
When the copying process is complete, the CTS will become active and the printer will transmit a
‘?’ (0x3F).
Any character not accepted, as part of a font load command will be echoed back to the terminal
device.
To Load an ASCII character:
ESC D n1 n2 data
n1:
TABLE to save the character in {0x30, 0x31, 0x32, 0xFF}
(0xFF = quit)
n2:
Character code {0x21 .. 0x7F} {CHR$(33) .. CHR$(127)}
data:
16 x 23 bit (W x H) character matrix (46 bytes total). Each character must also fit into the
matrix specified by the font size (see table below).
TABLE ‘0’
TABLE ‘1’
TABLE ‘2’
Courier Modes 1 & 2
12 & 16 cpi (12 x 23)
Courier Mode 3
19 cpi (10x23)
Courier Modes 4 & 5
21 & 24 cpi (8x23)
7