Expanded Flash Memory Allocation; Select Flash Area For Storing Logos And Fonts - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

98
Chapter 4: Programming Commands

Expanded flash memory allocation

ASCII
GS " 0x80
Hexadecimal
1D 22 80
Decimal
29 34 128
This sequence of commands is used to specify the number of flash sectors to be used for different applications. The begin
and end sequence commands must be sent. All areas do not need to have flash sectors specified.
The command to request the number of user sectors is optional.
If more sectors are specified than are available the command sequence is ignored and the printer returns NACK.
If the sectors are available, and different from current parameters, all sectors are erased and the printer returns ACK.
If the sectors specified are the same as current parameters, nothing is erased and the printer returns ACK.
1D 22 80 00
request number of user sectors available, printer returns nL nH
1D 22 80 30
begin expanded flash memory allocation sequence
1D 22 80 31 nL nH
n sectors to logo/font area
1D 22 80 32 nL nH
n sectors to user data storage area
1D 22 80 33 nL nH
n sectors to permanent font area
1D 22 80 34 nL nH
n sectors to electronic journal area
1D 22 80 40
end expanded flash memory allocation sequence
n = 0xFFFF means allocate all remaining sectors to this area; only one area can specify this parameter value.

Select flash area for storing logos and fonts

ASCII
GS" 0x81
Hexadecimal
1D 22 81 n
Decimal
29 34 129 n
Value of n:
n specifies
n = 0
select logo/font area
n = 1
select permanent font flash area
.
n > 1
reserved
A798-PG00001C
Revision C 12/09

Advertisement

Table of Contents
loading

Table of Contents