beautypg.com

Stx-etx mode flow diagram for host computer – Star Micronics SP300 Series User Manual

Page 25

background image

– 21 –

Sends

Receives status byte.

Sends

Is the data buffer

empty?

Is an odd parity

check?

Acquires the exclusive OR of the content
of the text byte and the data to sent, then
it is used as the content of the test byte.

Transmits the data to
the printer.

Is this the last data in

a block?

Starts the
STX-ETX mode.

The test byte is set at (0)H.

Sends an

Receives status signal.

Receives a check byte.

Sends

Sends

Ends the
STX-ETX mode.

RET

Is there a data block in

the STX-ETX mode?

YES

NO

(Printing)

NO

YES

YES

NO

YES

NO

YES

NO

Horizontal
parity check

Check byte =

test byte?

Is the status an

error?

YES

(FF) H is set for the text
byte.

NO

Check byte:
Horizotal parity of the printer.
Test byte:
Horrizontal parity of the host
computer.

STX-ETX mode flow diagram for host computer