Rabbit 6000 User’s Manual
digi.com
291
25.2.4 Interrupts
The network interrupt can be generated by an Ethernet frame being transmitted correctly, trans-
mitted with an error, or if a transmit pause occurs (control frame is transmitted but not the data).
The events that generate an interrupt can be selected in NBCSR.
The receive frame status is attached to the end of the data frame itself, so the DMA interrupt can
be used to handle received frame. See Section 25.3 for more details.
The network port interrupt vector is located in the IIR at offset 0x1E0. It can be set at Priority 1, 2,
or 3 by writing to NBCSR.
25.3 Operation
High-level support for TCP/IP and other protocols is beyond the scope of this manual, but this
section will describe the low-level setup and operation of the 10/100Base-T Ethernet peripheral.
Dynamic C has the necessary drivers.
The contents of the six status bytes are shown below. Note that any status block marked with
RxOV (receive overflow) is invalid, as the FIFO could not hold the entire frame. Only the marked
frame is invalid, so any previous frames read from the FIFO are fine. Once an overflow is
detected, no subsequent frames can be buffered to the FIFO until a FIFO purge command is writ-
ten to the NBCR.
25.3.1 Setup
The following steps explain how to set up Network Port B.
1. In MSCR, select shared clock if the main clock is 25 MHz, and reset the PHY if desired.
2. Enable Network Port B by writing to ENPR.
3. Write the interrupt vector for the interrupt service routine to the external interrupt table.
4. Select the desired interrupts and interrupt priority by writing to NBCSR.
5. Select the MII interface settings by writing to NBMCFR, NBMRAR, and NBMPAR.
Status Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
First
LSB of Rx Checksum
Second
MSB of Rx Checksum
Third
Receive Status Vector [7:0] (LSB of receive frame length)
Fourth
Receive Status Vector [15:8] (MSB of receive frame length)
Fifth
Receive Status Vector [23:16]
Last
RxOV
Receive Status Vector [30:24]
Содержание 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...