![Digi Rabbit 5000 Скачать руководство пользователя страница 207](http://html1.mh-extra.com/html/digi/rabbit-5000/rabbit-5000_user-manual_2496192207.webp)
Chapter 19 Slave Port
207
These connections are summarized in Table 19-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 I/O strobe 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.
19.3.1 Master Setup
1. Enable the I/O strobes on PD6 and PD7 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 registers.
19.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 19-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
Содержание Rabbit 5000
Страница 1: ...Rabbit 5000 Microprocessor User s Manual 019 0168_E...
Страница 11: ...Table of Contents Appendix B Rabbit 5000 Errata 401 B 1 Errata 401 Index 405...
Страница 12: ...Rabbit 5000 Microprocessor User s Manual...
Страница 20: ...20 Rabbit 5000 Microprocessor User s Manual...
Страница 36: ...36 Rabbit 5000 Microprocessor User s Manual...
Страница 56: ...56 Rabbit 5000 Microprocessor User s Manual...
Страница 92: ...92 Rabbit 5000 Microprocessor User s Manual...
Страница 104: ...104 Rabbit 5000 Microprocessor User s Manual...
Страница 122: ...122 Rabbit 4000 Microprocessor User s Manual...
Страница 142: ...142 Rabbit 5000 Microprocessor User s Manual...
Страница 214: ...214 Rabbit 5000 Microprocessor User s Manual...
Страница 228: ...228 Rabbit 5000 Microprocessor User s Manual...
Страница 280: ...280 Rabbit 5000 Microprocessor User s Manual...
Страница 298: ...298 Rabbit 5000 Microprocessor User s Manual...
Страница 306: ...306 Rabbit 5000 Microprocessor User s Manual...
Страница 314: ...314 Rabbit 5000 Microprocessor User s Manual...
Страница 368: ...368 Rabbit 5000 Microprocessor User s Manual...
Страница 388: ...388 Rabbit 5000 Microprocessor User s Manual...
Страница 396: ...396 Rabbit 5000 Microprocessor User s Manual...
Страница 404: ...404 Rabbit 5000 Microprocessor User s Manual...