sun3/60 with apple laserwriter IINT

Beau James ultra!beau at ames.arc.nasa.gov
Wed Jul 19 06:38:15 AEST 1989


-- In SunSpots v8n69, kolb at nisc.nyser.net (Christopher Kolb) writes:

-- of the suggestions i received, some only might have helped ...
-- while others were flat wrong ... 
-- 
-- others however were on target.  the handshaking should be set to XON/XOFF,
-- *not* DTR.  this is because the sun is not fast enough to handle the
-- interrupts generated by hardware handshaking.  

This particular comment is flat wrong.  The speed of the Sun is not an
issue.  Lack of software support in the driver (and bugs) are the problem.
"Hardware handshaking", usually using the CTS signal line, need not
generate any interrupts at all.  

There are two directions of flow control: the external device asking the
Sun to stop sending, and the Sun asking the device to stop.

CTS flow control for the Sun-to-device direction is implemented by the
serial I/O chip hardware, at least for the chips used on the Sun CPU board
(Zilog 8530 SCCs).  When the device driver initializes the chip properly,
then CTS going away (going high) automatically stops the transmitter on
the chip.  (The driver can also ask the chip to generate an interrupt on
CTS transition, if the driver really wants to know about it.)

For the device-to-Sun direction, the Sun flow control software has to know
that it should raise the RTS hardware line rather than send an in-band
"stop" character (^S), and later drop RTS rather than send a "start" (^Q)
character.  The driver did not offer that capability in release 3.x, and
it didn't work in 4.0, but it is fixed by YAPT5.5c and in 4.0.3 (or so
we've been told by Sun).

The USARTs and UARTs used on other boards, e.g. ALM-1s and ALM-2s, have
similar capabilities.  Of course, the CTS & RTS signals have to be
properly cabled from the chip to the device, which is not always the case
(as with the "default" cable wiring configuration of the ALM-1).

Beau James				beau at Ultra.COM
Ultra Network Technologies		{sun,ames}!ultra.com!beau



More information about the Comp.sys.sun mailing list