252
Rabbit 4000 Microprocessor User’s Manual
24.3 Operation
24.3.1 Auxiliary I/O Bus
The following steps must be taken before using auxiliary I/O bus:
1. Enable the auxiliary I/O bus by writing to SPCR. Select whether 6 or 8 address bits are
desired.
2. If PB0 and PB1 are needed for clocked serial use and eight address bits are required,
enable the alternate outputs of address bits 6 and 7 on Parallel Port D by writing to
PDALR, PDAHR, and PDFR.
3. Set the I/O timing for a particular device by writing to the appropriate IB
x
CR register
for the I/O bank desired.
4. If a strobe other than /IORD, /IOWR, or /BUFEN is required, enable the output of the
IB
x
CR register by writing to the appropriate P
x
ALR, P
x
AHR, and P
x
FR registers.
Once the auxiliary I/O bus is enabled, all memory read/write instructions prefixed with an
IOE will go to either the memory bus or auxiliary I/O bus, depending on the setup in that
bank’s IB
x
CR register.
24.3.2 I/O Strobes
The following steps must be taken before using an I/O strobe:
1. Set the strobe type and timing for a particular device by writing to the appropriate
IB
x
CR register for the I/O bank desired.
2. If signals other than /IORD, /IOWR, and /BUFEN are required, enable the output of the
IB
x
CR register by writing to the appropriate P
x
ALR, P
x
AHR, and P
x
FR registers.
On startup, the I/O strobes are set as chip selects with 15 wait states, read-only, active-low
signaling, and will use the auxiliary I/O bus. These settings will be used for the dedicated
I/O strobe pins /IORD, /IOWR, and /BUFEN whenever an external I/O write occurs even
if not I/O strobe signals are being output on parallel port pins.
24.3.3 I/O Handshake
The following steps must be taken before using the I/O handshake:
1. Select the active level and desired port E bit to use as input by writing to IHCR.
2. Select which I/O banks the handshake is active for by writing to IHSR.
3. Select the handshake timeout value by writing to IHTR.
Once enabled, the handshake will be checked for every external I/O transaction in a bank
that was enabled in IHSR. After these transactions, the program should check for a time-
out by reading IHTR.
Содержание Rabbit 4000
Страница 1: ...Rabbit 4000 Microprocessor User s Manual 019 0152 070720 H...
Страница 18: ...8 Rabbit 4000 Microprocessor User s Manual...
Страница 40: ...30 Rabbit 4000 Microprocessor User s Manual...
Страница 74: ...64 Rabbit 4000 Microprocessor User s Manual...
Страница 82: ...72 Rabbit 4000 Microprocessor User s Manual...
Страница 86: ...76 Rabbit 4000 Microprocessor User s Manual...
Страница 96: ...86 Rabbit 4000 Microprocessor User s Manual...
Страница 182: ...172 Rabbit 4000 Microprocessor User s Manual...
Страница 240: ...230 Rabbit 4000 Microprocessor User s Manual...
Страница 248: ...238 Rabbit 4000 Microprocessor User s Manual...
Страница 256: ...246 Rabbit 4000 Microprocessor User s Manual...
Страница 310: ...300 Rabbit 4000 Microprocessor User s Manual...
Страница 330: ...320 Rabbit 4000 Microprocessor User s Manual...
Страница 348: ...338 Rabbit 4000 Microprocessor User s Manual...