TransAct Technologies ITHERM 280 User Manual

Page 314

Advertising
background image

Communications

iTherm

®

280 Programmer’s Guide

Page 312

Rev C

28-07764

Flow Chart 2 illustrates how the print control software takes data from the buffer and
controls flow. At the top of the chart, the print control software asks for data. If there is
no data in the buffer, a “no data flag” is returned. The print software must then wait for
data. If there is data in the buffer, it is read, and the pointers are updated. The buffer is
then checked to see how much information is left. If the buffer is below a low watermark
(about 100 bytes left), the communication driver is notified, and DTR is reasserted.

When XON/XOFF flow control is used, the flow is similar to DTR flow except that DTR is
not used and XON/XOFF control characters are transmitted back to the host on the
serial link. The XON/XOFF advantage is that only three wires are required to
interconnect to a printer. The disadvantage is that a serial-port receiver driver must be
written for the host.
































Flow Chart 2 Print Controller Using Data

Return data to print

controller.

Is the buffer

below the low

watermark?

No

Set DTR or transmit

XON.

Yes

The print controller needs

data to print or a

command to decode.

Return to print controller
with no data available.

Acquire data from the

buffer.

Is there any

data in the

buffer?

Move buffer pointers to

the next data byte.

Yes

Loop through idle

task, and then look

for more data.

No

Advertising