Flash Memory User Sectors Allocation; Expanded Flash Memory Allocation - CognitiveTPG A776 Programming Manual

Two-color thermal/impact hybrid printer
Hide thumbs Also See for A776:
Table of Contents

Advertisement

n = 51 (ASCII n = 3) HEX 33
Loads user-defined characters to flash memory. An application must use this command to store user-defined
characters in flash memory. Any user-defined characters defined following this command are stored in flash memory. A
user-defined character cannot be redefined in flash memory. The flash memory page must be erased by an application
before redefining user-defined characters. For more information, see the erase user flash sector (1D 40 n) command.
Specifies whether to load the logos or user-defined characters to logo/font flash memory or to RAM (volatile memory).
The selection remains in effect until it is changed via this command or until the power cycles. To specify permanent
font flash, also send 1D 22 81 01.

Flash memory user sectors allocation

ASCII
GS " U n1 n
Hexadecimal
1D 22 55 n1 n2
Decimal
29 34 85 n1 n2
Default Value of n1:
Default Value of n2:
n1 is the number of 64k sectors used for logos and user-defined characters.
n2 is the number of 64k sectors used for user data storage.
n1 + n2 <= 6 (dec) (1M)
n1 + n2 <= 22 (dec) 16 (hex) (2M)
If n1 + n2 is greater than the maximum number of sectors available, the command is ignored. The printer returns
NACK.
Issuing this command with parameters different from current parameters will erase all sectors. The printer returns ACK.
Issuing this command with parameters the same as current parameters will do nothing. The printer returns ACK.
Note: Flash memory is made up of user and program code. Therefore, the available flash memory space will vary with the
amount of program code utilized.

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
1D 22 80 30
1D 22 80 31 nL nH
1D 22 80 32 nL nH
ASCII
US & s c1 c2 [character 1 data] ... [character k data]
Hexadecimal
1F 26 s c1 c2 [character 1 data] ... [character k data]
Decimal
31 38 s c1 c2 [character 1 data] ... [character k data]
Continued . . .
A776-PG00001 C 12/09
1 (see below)
1 (see below)
request number of user sectors available, printer returns nL nH
begin expanded flash memory allocation sequence
n sectors to logo/font area
n sectors to us
Define extended user-defined character set
Chapter 5: Programming commands
A776 (B780) Programming Guide
123

Advertisement

Table of Contents
loading

This manual is also suitable for:

B780

Table of Contents