Figure 8-3 Joystick To Counter Connections - Commodore Amiga A1000 Hardware Reference Manual

Table of Contents

Advertisement

Digital joystick switches are of the normally open type. When the switches are pressed,
the input line is shorted to ground. An open switch reads as "1", a closed switch as "0".
Reading the joystick input data logic states is not so simple, however, because the data
registers for the joysticks are the same as the counters that are used for the mouse or
trackball controllers.
The joystick registers are named JOY0DAT and JOY1DAT.
Table 8-2 shows how to interpret the data once you have read it from these registers. The
true logic state of the switch data in these registers is "1 = switch closed."
This is the
way the pins
are numbered!
_________________
PORT 1
\ o
o
(mouse)
\| o| o| o| o /
|__|__|__|__/
|
|
|
|
|
|
|
|
|
|
|
|
|
|__|_________________
|__
|
_________|__|
|
|
|
\-----/
__|__
\
/
\-----/
\ /
|
V
|
|
\___/
|____
|
|
|
|
|
_______|______|__________|______|______________
|
|
MOUSE 0
|
Y Counter
|
|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|
_________________
\ 1
2
\
6
7
\___________/
o
o
o /
|
|
|
|
|
|
|
|
|
|
|
|________________
|
|
_______|_|
|
|
|
|
|
__|__
|
\
/
|
\ /
V
|
|
|
|
|
|
|
Figure 8-2-1: Mouse Counters.
- Interface Hardware 227 -
3
4
5 /
8
9 /
_________________
PORT 2
\ o
o
\
o
o
\___________/
JOY1DAT
DFF00C
is wired similary
|
| |
| |
| |
\-----/
\-----/
|
|
|
|
\___/
|
__|
|
MOUSE 0
X Counter
o
o
o /
o
o /
|
|
|
|

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Amiga a500Amiga a2000

Table of Contents