A drop of solder - schematic of Kempston Mouse Interface (v2.1) on the KP580BB55A LSI!

Deja Vu #0A
__________________________________________

(C) Felix Knajzev
__________________________________________

     Kempston Mouse Interface (v2.1)
  on the KP580BB55A LSI!

     Hello everyone!

   As you may have noticed, the scheme has a new
version measure 2.1. This is a significant upgrade
              happened after the police for-
              notes Dmitry Lomov, in re-
              the result of which from the diagram
              the relative shortage has disappeared
              nal element (one)MS 555LP5,
 which "cunningly" transforms
              address shaft A8 and A10,going
              to 1533KP11 (and then to KP580
 BB55A). As a result - scheme
              it turned out a little simpler.
              Here I would like to share
              with you the diagram of the "original"
              using the chipKP58
 0BB55A for working as
              interface"Kempston Mouse".
I have long wanted to “screw” this de-
Weiss ("Kempston Mouse Interface"),but not
I did this only for two reasons: wild laziness
:) and a complete lack of free space in
the body of my Speck.
   The so-called "classical" scheme
(Author Mikhail Kondratiev), containing water
seven MC cases, it obviously wouldn’t fit into mine
"small" ZX.;) But, immediately after assembly
Spectrum, I had BIS installed on-
parallel interface KP580BB55A,which
I mercilessly exploited, connecting to her
all sorts of devices: printer, UFPZU programmer,
Kempston Joystick, Covox. I must say that
it was really very convenient to use
use this MS for various purposes, because her
can be flexibly programmed "for all services"
teas of life.";) Features of the KP58 installation
0BB55A to my computer - it wasremoving everyone
three MS ports outside the case, i.e. on
connector For this reason alone, this dopa-
the boot turned out to be so versatile! On
The connector also outputs +5V and a “common” pro-
water, i.e. nutrition. At home I use three
- in-line 32-pin (located in
"chessboard" order) connector. On the market
There are plenty of them if you look.
   Already initially KP580BB55A I had
connected with the ability to select a decryption
tions of its ports, i.e. in one case she pa-
worked only on the UFPZU programmer ("MPPS
v2.1"), in another - repeated the ports like this
the same BIS installed in the "Profi" computer.
Decryption "Profi" turned out to be sufficient
widespread (it was used by some
other programs), but the MPPS one is only for
This device was used.
   This is the decryption (MPPS) that I
I decided to remove it and “make friends” with it later
"Kempston Mouse". The program itself
rammator was quickly adapted for
"Profi".;)

Now a little about the scheme:

  - This scheme is preferably used
use on computers that do not have Turbo mode
(7MHz). BIS KP580BB55A so with a big "on-
traction" operates at 3.5MHz (inthe most difficult
In cases, it may be necessary to select
malfunctioning instance of LSI), and on 7
MHz - no chance, unless, of course, you do it
on the circuit that “brakes” the Z80 during selection
ports BB55,but this option is not here
is being considered. Perhaps, without any testing at all -
Branded LSIs will work: i8255A,
i82C55A,but I have not dealt with them. According to in-
formation shared by Dmitry Lomov,
imported LSIs marked i8255A-2
and i82C55A-2,can work without problems and
in TURBO mode.
  - It makes sense to repeat the scheme if in Va-
Our computer has free elements (on-
example, remaining from any earlier
them upgrades) from the following MS: LL1 (two
valve), LA3 (two/three valves).
  - And, of course, it makes sense to collect it,
if you don't already have"Kempston Mouse Inter-
face".;)


Ze Pagan: Attention, people! Connection diagram
LSI KP580BB55A for working with "Kempston Mo-
use" placed in Appendix to the magazine! Well, no
it fits on the screen, and I broke it
draw. I think I named the file "K_Mouse".


   Accordingly, the choice of decryptions
comrade (Mouse/Profi) is engaged in D3(KP1533KP11,
possible KP16). If switch S1 _lock-
no_, then the ports are working  "Kempston Mouse",
if _open_, then the LSI pots work
KP580BB55A,set to "Profi".
   To work with ports"Kempston Mouse",
great property used BB55A
install _all_ three of your ports on
_ENTER_, after applying a signal to it (pin 35)
Nala RESET. By the way, instead of elements D1(LA
3), included as inverters, you can use
call any free valves in the computer
pe that can provide the HE function.
As a last resort, instead of one of them,
(only for signal inversion/RESET!)
you can put n-p-n transistor turned on
according to the scheme with OE:

 1K
 +5B o──███─────o────> For the 35th leg KP580BB55A.
 │K
_____ 1K B│/
RESET>───███───┤ KT315
 │>E
 ▀▀▀

   During operation BB55A  for  "Kempston
Mouse", its input /WR (36th leg) is blocked
van, to prevent ports from being burned out
LSI (and counter outputs IE11, see below) in
in case of accident (and not only ;) the program
world ports BB55A to OUTPUT.
   The diagram shows quite clearly
how to connect the modification to the computer.
it is possible, you will need to make a blocking
all input/output ports in your computer -
pe at the moment when there is an appeal to
ports KP580BB55A, to eliminate conflicts
Compatible with other I/O ports! Control
a strong signal for this can be
log."0" on the 9th pin of D3 (KP11). At the
For example, for Scorpion you can do this: (on
I haven’t tried it in practice, but it should work)
           ____
 - Signal IORQ for the interface circuit you need
remove it from the 20th leg of the Z80.

o+5B
 1K B│<┘E
On the 9thvyv.>──o──███─o─┤ KT361, KT3107, etc.
D3 (KP11) │ │ │ K
 └──┤├──┘ │ ______
 * 20pF └───> per IORQGE signal

*The boost capacitor can be omitted.
 Although...

   Or use a more “cool” scheme for
implementation of which will require free
MS element K555LP8. You will have this scheme
work at 100%:

 1/4 K555LP8
 ┌──┬──┐ ______
 +5B o─2┤D0│1 ├3───> to the IORQGE signal
 ├──┤ │
On the 9th pin>─1oE0│ │
D3 (KP11) └──┴──┘

   If your computer has not yet implemented
van interception signal /IORQGE,then below for now-
I wonder how to do it:

1.  On the computer's printed circuit board you need tobreak the connection between pin 20 Z80 (/IORQ)
and all the other chains on which he
walked.

2.  Into the resulting gap between the output
20 Z80 and a conductor going to other circuits
pi, put a resistor at 330-470 Ohm.

   Now the 20th pin of the Z80 is a signal
IORQ, and everything that is after the resistor -
- /IORQGE:

 R=390 Ohm
 ├────┤ ┌─███─┐
 Z80 │____│ │ │ ______ ____
 │IORQ├20──o──X──o─>IORQGE (Instead of IORQ on the main board)
 ├────┤ │ ____
 └───────>IORQ

The letter "X" indicates the location of the break.

   When decoding "Kempston Mouse" use
Only those CPU address lines are used (A0, A5,
A7,A8,A10), which were in the "classic"
interface diagram, so standard-Ports "Kempston Mouse":

Port A: #FBDF - X coordinate port.
Port B: #FADF - port of mouse buttons.
Port C: #FFDF - Y coordinate port.
 ENG: #FEDF - see below. *

* The exception is the “new” port,
stupid _only_ read: #FEDF. This is the port
control word register (RUS), which
serves for programming KP580BB55A.
(For "Kempston Mouse" not used.)

   I would like to note that port decryption
"Profi" - very "rude", because... for each
port (PA, PB, PC, RUS) allocated as many as 32
port in the I/O address space
yes. But only the following are standard
tions:

Port A: #XX1F;  toyou can connect it
                Kempston Joystick. ;)
Port B: #XX3F
Port C: #XX5F
 ENG: #XX7F

   _Only_these ports need to be used-
when writing software that supports
this inclusion BB55A! ("Profi").

   Below is a diagram of counters for
"Kempston Mouse", which did not survive
no changes. Inputs:RIGHB,LEFTB,MIDLB
- go to the mouse buttons, respectively, to
right, left and middle. When the button is on
is pressed, then on the corresponding contact there will be
"0".
   Inputs: Xa,Xb,Ya,Yb - go to a couple of photos
Mouse Schmitt trigger sensor.
   I have such a circuit assembled on a separate
a scarf with two connectors: one for a mouse
(9-pin), the other (XP1.2) - goes to BB55A.
(32-pin) When, for example, I need to work
thief with the UFPZU programmer - I disable
This board and I install an MPPS connector.

   Naturally, if you want to collect
"Kempston Mouse Interface",this is omitted
gives the need for D3 KP1533KP11(see you-
above) and in a 32-pin connector. In this
In case the counter outputs K561IE11  are needed
connect directly to KP580BB55A.And if you have
the computer contained the above
free valves (LL1, LA3), then the whole circuit
interface will be assembled on only 5 micro-
schemes!

 XP1.2
 ────>
 ┌───┐
RIGHB>──────────────────────PB0╖PA0───┤PA0│
LEFTB>──────────────────────PB1╢PA1───┤PA1│
MIDLB>──────────────────────PB2╢PA2───┤PA2│
 D1 K561IE11 ╟PA3───┤PA3│
 ┌──┬───┬──┐╟PA4───┤PA4│
        ▐─5─oCa│CT2│Q0├6────PA0╢PA5───┤PA5│
            ├──┤   │Q1├11───PA1╢PA6───┤PA6│
Xb>──o───15─/C │   │Q2├14───PA2╢PA7───┤PA7│
     │      ├──┤   │Q3├2────PA3╢      ├───┤
     │      │ _│   │  │        ╟PB0───┤PB0│
Xa>──┼─o──10┤UD│   │  │        ╟PB1───┤PB1│
     │ │    ├──┤   │  │        ╟PB2───┤PB2│
     │ │ ──4┤S0│   │  │        ╟PB3───┤PB3│
     │ │ ─12┤S1│   │  │        ╟PB4───┤PB4│
     │ │ ─13┤S2│   │  │        ╟PB5───┤PB5│
     │ │ ──3┤S3│   │  │        ╟PB6───┤PB6│
     │ │    ├──┤   │  │        ╟PB7───┤PB7│
     │ │ ┌─1┤SE│   ├──┤        ║      ├───┤
     │ │ │  ├──┤   │__│        ╟PC0───┤PC0│
     │ │ o─9┤R │   │Cbo─7┐     ╟PC1───┤PC1│
     │ │ │  └──┴───┴──┘  │     ╟PC2───┤PC2│
     │ │▀▀▀              │     ╟PC3───┤PC3│
     │ │ ┌───────────────┘     ╟PC4───┤PC4│
     │ │ │  D2 K561ИЕ11        ╟PC5───┤PC5│
     │ │ │  ┌──┬───┬──┐        ╟PC6───┤PC6│
     │ │ └5─oCa│CT2│Q0├6────PA4╢PC7───┤PC7│
     │ │    ├──┤   │Q1├11───PA5╢      ├───┤
     └─┼─15─/C │   │Q2├14───PA6╢ +5Bo─┤+5B│
       │    ├──┤   │Q3├2────PA7╢     ┌┤GND│
       │    │ _│   │  │        ║     │└───┘
       └──10┤UD│   │  │        ║    ▀▀▀
            ├──┤   │  │        ║       o+5B
         ──4┤S0│   │  │        ║    R1 │
         ─12┤S1│   │  │        ╟PB3─██─o
         ─13┤S2│   │  │        ║    R2 │
         ──3┤S3│   │  │        ╟PB4─██─o
            ├──┤   │  │        ║    R3 │
         ┌─1┤SE│   ├──┤        ╟PB5─██─o
         │  ├──┤   │__│        ║    R4 │
         o─9┤R │   │Cbo─7─     ╟PB6─██─o
         │  └──┴───┴──┘        ║    R5 │
        ▀▀▀ D3 K561ИЕ11        ╟PB7─██─┘
            ┌──┬───┬──┐        ║
        ▐─5─oCa│CT2│Q0├6────PC0╢ R1-R5=1K-10K
            ├──┤   │Q1├11───PC1╢
Ya>──o───15─/C │   │Q2├14───PC2╢
     │      ├──┤   │Q3├2────PC3╢       o+5B
     │      │ _│   │  │        ║    R6 │
Yb>──┼─o──10┤UD│   │  │        ╟PB0─██─o
     │ │    ├──┤   │  │        ║    R7 │
     │ │ ──4┤S0│   │  │        ╟PB1─██─o
     │ │ ─12┤S1│   │  │        ║    R8 │
     │ │ ─13┤S2│   │  │        ╟PB2─██─┘
     │ │ ──3┤S3│   │  │        ║
     │ │    ├──┤   │  │        ║
     │ │ ┌─1┤SE│   ├──┤        ║ R6-R8=15K
     │ │ │  ├──┤   │__│        ║
     │ │ o─9┤R │   │Cbo─7┐     ║
     │ │ │  └──┴───┴──┘  │     ║
     │ │▀▀▀              │     ║
     │ │ ┌───────────────┘     ║
     │ │ │  D4 K561ИЕ11        ║
     │ │ │  ┌──┬───┬──┐        ║
     │ │└5─oCa│CT2│Q0├6────PC4╢
     │ │    ├──┤   │Q1├11───PC5╢
     └─┼─15─/C │   │Q2├14───PC6╢
       │    ├──┤   │Q3├2────PC7╜
       │    │ _│   │  │
       └──10┤UD│   │  │
            ├──┤   │  │
         ──4┤S0│   │  │
         ─12┤S1│   │  │
         ─13┤S2│   │  │
         ──3┤S3│   │  │
            ├──┤   │  │
         ┌─1┤SE│   ├──┤
         │  ├──┤   │__│
         o─9┤R │   │Cbo─7─
         │  └──┴───┴──┘
        ▀▀▀
 +5Bo───o─────────> К выводам 16 D1-D4
        │  Сбл.
       ─┴─
       ─┬─ 0,1 мкФ
    ┌───o─────────> К выводам 8 D1-D4
   ▀▀▀
------------------------------------------

Share your thoughts about the article