[net.micro.cpm] Need Kaypro technical help

cmi@dartvax.UUCP (Theo Pozzy/R. Green) (11/14/84)

I am looking for some help with the Kaypro 2,4,10 line of micros.
I am trying to implement interrupt-driven serial I/O routines,
and am running into troubles.  I know that the Kaypros use Z80
SIO chips, which I am familiar with, but I do not know what
I am allowed to do with the interrupt structure.  In particular,
I don't know which interrupt mode would be best to use (0,1, or 2),
and I don't know if I am going to interfere with the Kaypro BIOS.
I have tried numerous things, and it looks like the Kaypro is
doing bank-select operations.  The problem occurs when I get
an interrupt and the banks are swapped, since my interrupt handling
code does not exist in the other bank.  Can anyone provide me
with some sample code or information on how to do this?  Thanks
in advance.

Theo Pozzy
USENET - ...decvax!dartvax!cmi
CSNET - cmi@dartmouth

hugh@hcrvax.UUCP (Hugh Redelmeier) (11/16/84)

I have done serial I/O on the Kaypro II (pre-1984 version) using
interrupts.
- Only the first 16K of address space is bank switched.
- Remember to put your interrupt routine and the vector above 16k.
- You must use the interrupt mode that allows you to
  specify that the interrupt vector is above 16k.
- If you are using PluPerfect CPM2.2E, it is already using
  interrupts with the SIO (using the SIO channel to the keyboard
  as a timer to turn off the disk after a few seconds of inactivity!).
  It would be tricky to share the SIO interrupts with CP/M 2.2E.
- Be careful to use very little stack in your interrupt routine:
  the interrupted routine may not have left you much.  Best to
  switch to a private stack immediately on entry to your
  interrupt routine.

oacb2@ut-ngp.UUCP (oacb2) (11/24/84)

> I have done serial I/O on the Kaypro II (pre-1984 version) using
> interrupts.
> - Only the first 16K of address space is bank switched.

On the Kaypro 10 the first 32K is bank switched.
-- 

	Mike Rubenstein, OACB, UT Medical Branch, Galveston TX 77550

mangoe@umcp-cs.UUCP (Charley Wingate) (11/26/84)

On the same subject, is there a book that describes (a) the Kaypro
architecture and (b) how CP/M get at it?  I have a 2x, by the way, so
don't send me info about a book which doesn't discuss it unless you have
assurances that it is essentially identical to another model except for disk
drives.

Charley Wingate    {seismo|allegra}!umcp-cs!mangoe
                   (also mangoe@maryland.ARPA)

hugh@hcrvax.UUCP (Hugh Redelmeier) (11/28/84)

Anyone who wants to hack on a Kaypro should read the magazine
"Micro Cornucopia" out of Bend, Oregon.  They cover the Big
Board and derivatives (Xerox 820, Kaypro, BB II,  ...).
They also are starting to cover non-Z80 single-board machines.
They sell schematics for Kaypros (they may not yet have
schematics for the new models).  Kaypro sells the source for
the BIOS, ROMs, and Kaypro-specific utilities for about $100
(called the "Tinkerkit").

Micro Cornucopia is fun to read.  It reminds me of the old
Dr. Dobbs.