Rabbit 6000 User’s Manual
digi.com
220
These connections are summarized in Table 21-3.
Note that the slave port on the master Rabbit processor is
not
used; the master uses the data bus to send and
receive data to the slave port data registers on the slave devices.
In this setup, pins PD6 and PD7 are set up as chip selects for the two slave devices, and PE0 and PE1 are
used as external interrupt inputs to monitor the /SLVATTN signals from the slaves.
In this setup, the slave port is used as follows:
•
The slave responds to the interrupt and reads the slave port data registers.
•
When the slave wishes to send data to the master, it writes the slave port data registers, writing SPD0R
last, which enables the /SLVATTN signal.
•
When the master detects the change on /SLVATTN, it reads the slave port data registers.
21.3.1 Master Setup
1. Enable the I/O strobes on PD6 and PD7 (as chip selects) by writing to the appropriate Parallel Port
D pin and External I/O registers.
2. Enable the external interrupts on PE0 and PE1 by writing to the appropriate external interrupt regis-
ters.
21.3.2 Slave Setup
1. Write the vector to the interrupt service routine to the internal interrupt table.
2. Configure SPCR to select the interrupt priority (note that interrupts will be enabled once this value
is set).
Table 21-3. Typical Slave Port Connections
Master
Slave #1
Slave #2
Data Bus
D0–D7
SD0–SD7
PA0–PA7
SD0–SD7
PA0–PA7
Address Bus
A0–A1
SA0–SA1
PB4–PB5
SA0–SA1
PB4–PB5
I/O Read Strobe
/IORD
/SRD
PB3
/SRD
PB3
I/O Write Strobe
/IOWR
/SWR
PB2
/SWR
PB2
Slave #1 Chip Select
(I/O strobe I6)
PD6
/SCS
PB6
–
—
Slave #2 Chip Select
(I/O strobe I7)
PD7
—
—
/SCS
PB6
External Interrupt 0
(from Slave #1)
PE0
/SLVATTN
PB7
—
—
External Interrupt 1
(from Slave #2)
PE1
—
—
/SLVATTN
PB7
Содержание 6000
Страница 1: ...Rabbit 6000 Microprocessor User s Manual 90001108_J...
Страница 11: ...Rabbit 6000 User s Manual digi com 11 1 3 Block Diagram Figure 1 1 Rabbit 6000 Block Diagram...
Страница 43: ...Rabbit 6000 User s Manual digi com 43 4 1 1 Block Diagram...
Страница 57: ...Rabbit 6000 User s Manual digi com 57 5 1 1 Block Diagram...
Страница 88: ...Rabbit 6000 User s Manual digi com 88 7 2 Block Diagram...
Страница 115: ...Rabbit 6000 User s Manual digi com 115 11 1 1 Block Diagram...
Страница 127: ...Rabbit 6000 User s Manual digi com 127 12 1 1 Block Diagram...
Страница 138: ...Rabbit 6000 User s Manual digi com 138 13 1 1 Block Diagram...
Страница 154: ...Rabbit 6000 User s Manual digi com 154 15 1 1 Block Diagram...
Страница 163: ...Rabbit 6000 User s Manual digi com 163 16 1 1 Block Diagram...
Страница 170: ...Rabbit 6000 User s Manual digi com 170 17 1 1 Block Diagram...
Страница 177: ...Rabbit 6000 User s Manual digi com 177 18 1 1 Block Diagram...
Страница 186: ...Rabbit 6000 User s Manual digi com 186 19 1 1 Block Diagram...
Страница 230: ...Rabbit 6000 User s Manual digi com 230 22 2 Block Diagram...
Страница 234: ...Rabbit 6000 User s Manual digi com 234 Figure 22 3 Sample Slow A D Converter Circuit...
Страница 287: ...Rabbit 6000 User s Manual digi com 287 25 1 1 Block Diagram...
Страница 310: ...Rabbit 6000 User s Manual digi com 310 26 1 1 Block Diagram...
Страница 323: ...Rabbit 6000 User s Manual digi com 323 28 1 1 Block Diagram...
Страница 351: ...Rabbit 6000 User s Manual digi com 351 31 1 4 Block Diagram...
Страница 361: ...Rabbit 6000 User s Manual digi com 361 32 1 1 Block Diagram...
Страница 369: ...Rabbit 6000 User s Manual digi com 369 33 2 Block Diagram...
Страница 390: ...Rabbit 6000 User s Manual digi com 390 35 1 1 Block Diagram...
Страница 408: ...Rabbit 6000 User s Manual digi com 408...
Страница 410: ...Rabbit 6000 User s Manual digi com 410...
Страница 411: ...Rabbit 6000 User s Manual digi com 411...
Страница 420: ...Rabbit 6000 User s Manual digi com 420 Figure 37 1 Memory Read and Write Cycles...