Re: CBM 8032P control codes

From: William Levak (wlevak_at_cyberspace.org)
Date: 2001-08-06 06:56:30

On Sun, 5 Aug 2001, [ISO-8859-1] Marko Mäkelä wrote:

> On Sat, 4 Aug 2001, William Levak wrote:
> 
> > Do you mean the 8023P printer?  I have that printe, but I can't find 
> > the documentation right now.
> 
> Oh, yes, I made a typo.

I don't have any documentation that is specific to the 8023P.  It is most
similar to the 4022P, which is a bidirectional version of the 4022.  I
have compiled a list of control codes and secondary addresses.  It is
appended to the end of this e-mail.  Most of it comes from the "Pet
Personal Computer Guide".  The control codes seem to be fairly consistent
with the IEEE printers, but the serial printers seem to be quite
different.  The secondary address are consistent with all Commodore
printers.

> > As I recall, Commodore didn't implement the full IEEE-488 protocol.  They
> > did not allow for more than one controller to be on the bus, and the
> > peripherals could not initiate a session, but could only respond to one.
> 
> I wouldn't try to use the PC as a controller, but rather as a peripheral.
> It could emulate several devices, unless the hardware of the adapter
> prohibits that.

The problem with the IEEE bus was that the PET would not check if the bus
was in use before it tried to use it, thus crashing everything that was
active at the time.  This is easily fixed by PEEKing the location of the
data on the IEEE port to see if anything is there.

The other problem was with some HP instruments that were intended to
operate independently and report their information when they had some.
This mode did not work at all on the PETs, as they would ignore anything
that they had not initiated.


Printer Control Codes
CHR$(1)                Enhance on (rest of line).
CHR$(17)   CRSR DWN    lower case (rest of line)
CHR$(18)   RVS         Reverse on. (rest of line)
CHR$(19)   HOME        Top of form if paging enabled.
CHR$(129)              Enhance off.
CHR$(145)  CRSR UP     upper case.
CHR$(146)  RVS OFF     Reverse off.
CHR$(147)  CLR         Enable paging.

Secondary Addresses
 0  Print data exactly as received.
 1  Print data using format.
 2  Set format for printing.
 3  Set lines/page.
 4  Enable diagnostic messages.
 5  Define character 254.
 6  Set line spacing. (not all printers)
 7  Set text mode characters. (not all printers)
 8  Set graphics mode characters. (not all printers)
 9  Disable diagnostic messages. (not all printers)
10  Reset printer. (not all printers)
11  Set unidirectional printing. (8023P only)
12  Set bidirectional printing. (8023P only)
13  Set 15 cpi. (8023P only)
14  Set 10 cpi. (8023P only)
15  Enable correspondence (overstrike) mode. (8023P only)
16  Disable correspondence (overstrike) mode. (8023P only)
17  Print bit image graphics. (8023P only)
18  Print received bit image graphics again. (8023P only)



       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.1.