Apple II Miscellaneous #16: Apple II Parallel Interface Card Firmware

Apple II Technical Notes Developer Technical Support

Written by: Jim Luther July 1990

This Technical Note documents the commands the Apple II Parallel Interface Card's firmware supports and how to find the slot occupied by an Apple II Parallel Interface Card.


Parallel Printer Interface Card Commands

The manual that shipped with the Apple II Parallel Interface Card states correctly that its firmware can be "identical to the firmware in the earlier Apple II Centronics(R) Printer Card" or that it can be "identical to the firmware in the earlier Apple II Parallel Printer Card." However, the manual did not correctly document the commands the Parallel Interface Cards can handle or explain the commands clearly.

Apple II Parallel Interface Card commands, embedded in the output flow to the card's firmware, are invoked by the BASIC output routines. The following three options affect the output data flow and can be controlled by sending control codes as commands to the firmware:

    Flow option          Description
    _________________________________________________________________________
    Video echo           When this option is on, characters sent to the 
                         printer are echoed to the video screen (via COUT1) 
                         after they are sent out the parallel port.
                         Note:  When an Apple II Parallel Interface Card in 
                                Parallel Printer mode is echoing characters 
                                to the video screen, the line length is 
                                forced by the card's firmware to 40.
    Line length          When the video echo option is off, the line length 
                         (the number of character sent before a forced 
                         carriage-return) can be set in the range of 
                         40 to 255 characters.  When video echo is on, the 
                         line length is forced to 40.
    Automatic line-feed  When this option is on, the firmware generates 
                         and sends a line-feed character after each 
                         carriage-return character sent.
                         Note:  The automatic line-feed option can only be 
                                used when the Apple II Parallel Interface 
                                Card is in Parallel Printer mode.
    _________________________________________________________________________

All commands are preceded by a command character. The normal command character is Control-I (ASCII $09). If you want to change the command character from Control-I to another command character (for example, Control- W), send Control-I, Control-W. To change back, send Control-W, Control-I. The format of the commands is as follows:

    {command-character} {command-string}

There are two types of commands: