Rainbow Electronics AT91CAP9S250A User Manual

Page 805

Advertising
background image

805

6264A–CAP–21-May-07

AT91CAP9S500A/AT91CAP9S250A

8.

Write to the transmit start bit in the network control register.

42.4.1.7

Receiving Frames

When a frame is received and the receive circuits are enabled, the EMAC checks the address
and, in the following cases, the frame is written to system memory:

• if it matches one of the four specific address registers.

• if it matches the hash address function.

• if it is a broadcast address (0xFFFFFFFFFFFF) and broadcasts are allowed.

• if the EMAC is configured to copy all frames.

The register receive buffer queue pointer points to the next entry (see

Table 42-1 on page 793

)

and the EMAC uses this as the address in system memory to write the frame to. Once the frame
has been completely and successfully received and written to system memory, the EMAC then
updates the receive buffer descriptor entry with the reason for the address match and marks the
area as being owned by software. Once this is complete an interrupt receive complete is set.
Software is then responsible for handling the data in the buffer and then releasing the buffer by
writing the ownership bit back to 0.

If the EMAC is unable to write the data at a rate to match the incoming frame, then an interrupt
receive overrun is set. If there is no receive buffer available, i.e., the next buffer is still owned by
software, the interrupt receive buffer not available is set. If the frame is not successfully
received, a statistic register is incremented and the frame is discarded without informing
software.

Advertising