Download Print this page

Commodore Amiga A500 Technical Reference Manual page 227

Hide thumbs Also See for Amiga A500:

Advertisement

drain, with passive pullups, to allow such a common bus. Protocol for
slave/master selection can be transmitted over the serial bus, or via
dedicated handshaking lines.
REG
NAME
C
SDR
S7
S 6
S 5
S4
S 3
S2
S
1
SO
Intempt Control (ICR)
There are five sources of interrupts on the
8520:
underflow from
TIMER
A,
underflow from TIMER B, TOD
ALARM,
Serial Port full1
empty and FLAG.
A
single register provides masking and interrupt
information. The Interrupt Control Register consists of a write-only
MASK register and a read-only DATA register. Any interrupt which is
enabled by the MASK register will set the IR bit (MSB) of the DATA
register and bring the
IRQ
pin low. In a multi-chip system, the
IR
bit
can be polled to detect which chip has generated an interrupt re-
quest.
The interrupt DATA register is cleared and the
IRQ
line returns high
following a read of the DATA register. Since each interrupt sets an
interrupt bit regardless of the MASK, and each interrupt bit can be
selectively masked to prevent the generation of a processor inter-
rupt, it is possible to intermix polled interrupts with true interrupts.
However, polling the IR bit will cause the DATA register to clear.
therefore, it is up to the user to preserve the information contained
in the DATA register
if
any polled interrupts were present.
The MASK register provides convenient control of individual mask
bits. When writing to the MASK register, if bit
7
(SETICLEAR) of the
data written is a ZERO, any mask bit written with a one will be
cleared, while those mask bits written with a zero will be unaffected.
If
bit 7 of the data written is a ONE, any mask bit written with a one
will be set, while those mask tiits written with a zero will be unaf-
fected. In order for an interrupt flag to set IR and generate an Inter-
rupt Request, corresponding MASK bit must be set.
READ (INT DATA)
REG
NAME
D
I RA
IR
0
0
FLG
WRITE (INT MASK)
SP
ALRM
TB
TA
REG
NAME
D
I
RC
SIC
X
X
FLG
SP
ALRM
TB
TA

Advertisement

loading

This manual is also suitable for:

Amiga a2000