Chapter 6: Programming Information

A794 Owner’s Guide

Download to Active Flash Sector

Contains a start address (ah x 256 + al) and count (ch x 256 + cl) of binary bytes to load into the selected sector, followed by that many bytes. The start address is relative to the start of the sector. Addresses run from 0 to 64K.

The printer may return one of several responses. ACK means that the data was written correctly and the host should transmit the next block. NAK means that, for some reason, the data was not written correctly. This could mean that communications failed or that the write to flash failed. The alternatives seem to be to retry the block or halt loading and assume a hardware failure.

ASCII

GS DC1 al ah cl ch d1…dn

Hexadecimal

1D 11 al ah cl ch d1…dn

Decimal

29 17 al ah cl ch d1…dn

Value of al

= low byte of the address (it is sent before the high byte)

Value of ah

= high byte of the address (it is sent after the low byte)

Value of cl

= low byte of the count (it is sent before the high byte)

Value of ch

= high byte of the count (it is sent after the low byte)

Value of d

= data bytes, from 1 to n

 

Value of n (for number of data bytes)

Range of Address (al ah)

Range of Count (cl ch)

((ch * 256) + cl)

 

0000-FFFF (hexadecimal)

0001-FFFF (hexadecimal)

Range Addresses run from 0 to 64K.

Related Information

Available only in download mode.

126

March 1999

Page 132
Image 132
Epson A794-D100 manual Download to Active Flash Sector, Ch * 256 + cl Ffff hexadecimal