Texas Instruments TMS320DM36X manual Statistics Interrupt, Host Error Interrupt

Models: TMS320DM36X

1 134
Download 134 pages 23.68 Kb
Page 57
Image 57

www.ti.com

Architecture

2.17.1.4Statistics Interrupt

The statistics level interrupt (STATPEND) is issued when any statistics value is greater than or equal to 8000 0000h, if enabled by setting the STATMASK bit in the MAC interrupt mask set register (MACINTMASKSET) to 1. The statistics interrupt is removed by writing to decrement any statistics value greater than 8000 0000h. As long as the most-significant bit of any statistics value is set, the interrupt remains asserted.

2.17.1.5Host Error Interrupt

The host error interrupt (HOSTPEND) is issued, if enabled, under error conditions dealing with the handling of buffer descriptors, detected during transmit or receive DMA transactions. The failure of the software application to supply properly formatted buffer descriptors results in this error. The error bit can only be cleared by resetting the EMAC module in hardware.

The host error interrupt is enabled by setting the HOSTMASK bit in the MAC interrupt mask set register (MACINTMASKSET) to 1. The host error interrupt is disabled by clearing the appropriate bit in the MAC interrupt mask clear register (MACINTMASKCLEAR) to 0. The raw and masked host error interrupt status may be read by reading the MAC interrupt status (unmasked) register (MACINTSTATRAW) and the MAC interrupt status (masked) register (MACINTSTATMASKED), respectively.

The transmit host error conditions are:

SOP error

Ownership bit not set in SOP buffer

Zero next buffer descriptor pointer with EOP

Zero buffer pointer

Zero buffer length

Packet length error

The receive host error conditions are:

Ownership bit not set in input buffer

Zero buffer pointer

SPRUFI5B –March 2009 –Revised December 2010 Ethernet Media Access Controller (EMAC)/Management Data Input/Output 57

Submit Documentation Feedback

(MDIO)

 

© 2009–2010, Texas Instruments Incorporated

Page 57
Image 57
Texas Instruments TMS320DM36X manual Statistics Interrupt, Host Error Interrupt