Datasheet

3. Set-up the transmit buffer list by writing buffer addresses to word zero of the transmit buffer descriptor entries
and control and length to word one.
4.
Write data for transmission into the buffers pointed to by the descriptors.
5. Write the address of the first buffer descriptor to transmit buffer descriptor queue pointer.
6. Enable appropriate interrupts.
7. Write to the transmit start bit (TSTART) in the Network Control register.
38.7.1.8 Receiving Frames
When a frame is received and the receive circuits are enabled, the GMAC 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 one of the four type ID registers.
If it matches the hash address function.
If it is a broadcast address (0xFFFFFFFFFFFF) and broadcasts are allowed.
If the GMAC is configured to “copy all frames”.
The register receive buffer queue pointer points to the next entry in the receive buffer descriptor list and the GMAC
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 GMAC then
updates the receive buffer descriptor entry (see Receive Buffer Descriptor Entry) with the reason for the address
match and marks the area as being owned by software. Once this is complete, a receive complete interrupt is set.
Software is then responsible for copying the data to the application area and releasing the buffer (by writing the
ownership bit back to 0).
If the GMAC is unable to write the data at a rate to match the incoming frame, then a receive overrun interrupt is set.
If there is no receive buffer available, i.e., the next buffer is still owned by software, a receive buffer not available
interrupt is set. If the frame is not successfully received, a statistics register is incremented and the frame is
discarded without informing software.
38.7.2 Statistics Registers
Statistics registers are described in the User Interface beginning with GMAC Octets Transmitted Low Register and
ending with GMAC UDP Checksum Errors Register.
The statistics register block begins at 0x100 and runs to 0x1B0, and comprises the registers listed below.
Octets Transmitted Low Register Broadcast Frames Received Register
Octets Transmitted High Register Multicast Frames Received Register
Frames Transmitted Register Pause Frames Received Register
Broadcast Frames Transmitted Register 64 Byte Frames Received Register
Multicast Frames Transmitted Register 65 to 127 Byte Frames Received Register
Pause Frames Transmitted Register 128 to 255 Byte Frames Received Register
64 Byte Frames Transmitted Register 256 to 511 Byte Frames Received Register
65 to 127 Byte Frames Transmitted Register 512 to 1023 Byte Frames Received Register
128 to 255 Byte Frames Transmitted Register 1024 to 1518 Byte Frames Received Register
256 to 511 Byte Frames Transmitted Register 1519 to Maximum Byte Frames Received Register
512 to 1023 Byte Frames Transmitted Register Undersize Frames Received Register
1024 to 1518 Byte Frames Transmitted Register Oversize Frames Received Register
Greater Than 1518 Byte Frames Transmitted Register Jabbers Received Register
Transmit Underruns Register Frame Check Sequence Errors Register
SAM E70/S70/V70/V71 Family
GMAC - Ethernet MAC
© 2019 Microchip T
echnology Inc.
Datasheet
DS60001527D-page 604