Apple 310 manual SCC Operator Encoding, XON/XOFF Flow Control

Page 60

C H A P T E R 3

Communication Channels

XON/XOFF Flow Control

XON/XOFF flow control uses two special characters, XON and XOFF, that may be sent either to the printer or to the host to control the flow of characters. When the LaserWriter Select 310 printer sends an XOFF character to the host, the host must immediately stop sending characters to the printer. When the printer sends XON to the host, the host may start sending characters again.

SCC Operator Encoding

The serial communications parameters are set by setsccbatch, a 1-byte options argument that holds four SCC encoded parameters: stop bits, data bits, flow control, and parity. The argument is an integer parameter with values in the range 0–255. The bits are assigned to different fields, as shown in Table 3-3, with the most significant bit representing the field stop bits, and so on. Table 3-3 lists the proper field value for each setting. You may determine the value of the options integer by simply selecting one decimal value for each field and adding those decimal integers together.

Table 3-3

SCC compatibility operators options byte values

 

 

 

 

 

 

Bit

 

 

 

 

position

Field

Setting

Decimal value

Field value

Bit 7

Stop bits

1 stop bit

0

0

 

 

2 stop bits

128

1

Bits 6

Number of

Standard

0

0

and 5

data bits

7 bits

32

1

 

 

8 bits

64

2

 

 

Undefined

96

3

Bits 4–2

Flow control

XON/XOFF

0

0

 

 

DTR

4

1

 

 

Undefined

8, 12, 16, 29,

2, 3, 4, 5, 6, 7

 

 

 

24, 28

 

Bits 1

Parity

Space

0

0

and 0

 

Odd

1

1

 

 

Even

2

2

 

 

Mark

3

3

Figure 3-1 shows an example of SCC operator encoding for an 8-pin serial port, using standard data bits with even parity, one stop bit, and XON/XOFF flow control.

In PostScript Level 1, the data bits and parity bit interact in a nonorthogonal way, to produce a table of possible choices for data and parity, as shown in Table 3-2. The choices include many commonly required methods of sending data. The Standard data bits setting provides compatibility with earlier versions of the PostScript Level 1.

48

SCC Operator Encoding

Image 60
Contents Apple LaserWriter Select 310 Printer Limited Warranty on Media and Replacement Contents Page Communication Channels Page Figures and Tables Page About This Note What This Note ContainsConventions Used in This Note Other Reference MaterialFor More Information ApdaPage LaserWriter Select Hardware1 LaserWriter Select 310 Hardware ROM Communication Ports Serial Port for RS-232C DevicesCentronics Parallel Connector 2An 8-pin serial port connectorPstrobe Signal Status Lights Memory Capabilities ROM CapabilityBatch Mode Basic OperationDram Expansion Interactive Mode TypesPaper Handling 7Paper handling options Page LaserWriter Select 310 Software Software Overview Adobe PostScript Programming LanguagePostScript Interpreter LaserWriter Select 310 Driver TypesSelects the paper tray containing A4-size paper and sets Software Parameters Product StringsCommunication Device Parameters Compatibility OperatorsStatusdict Setting Compatibility Operators Device Setting System Parameters CheckpasswordDefaulttimeouts IdlefontsPrintername ProductProductA RamsizeSetdefaulttimeouts SetpasswordSetidlefonts Setting Page Device Parameters DefaultmultipurposetraysizeDefaultpapertray SetprinternameManualfeedtimeout ManualfeedMargins PagestackorderSetdefaultmultipurposepapertraysize PapersizePapertray Setdefaultpapertray SetdostartpageSetmargins Setpagestackorder SetpagetypeSetpapertray Setting User Parameters JobtimeoutSetjobtimeout JobnameSetting Device Parameters WaittimeoutSetsoftwareiomode Setting Communication Parameters SoftwareiomodePacketbackchannel Sccbatch SetpacketbackchannelSetting Engine Device Parameters SetsccbatchDarkness Setting Extensions to PostScript Level SetdarknessCurrentcacheparams CurrentpackingPackedarray SetcacheparamsPrinter Error Parameter SetpackingPrintererror PostScript Language ChangesPacked Arrays Packed Arrays Versus Ordinary ArraysCreating Packed Arrays Immediately Evaluated Names Device Resolution Images Changes in Font Cache OperationEnd-of-Line Recognition TrueType Fonts New OperatorsCommunication Channels Serial Communication Baud RatesParity Settings Flow ControlDTR Flow Control SCC Operator Encoding XON/XOFF Flow ControlCommunication Protocols Simple Communication ProtocolBinary Communication Protocol SOH CTL-A Communicating with an IBM PC Parallel InterfaceSerial Interface DTR Flow Control for PC CommunicationCommunication Dynamics XON/XOFF Flow Control for PC CommunicationStatus Queries and Spontaneous Messages Errorerror OffendingCommand operator %%