Emac Control Module Interrupt Core 0-2 Receive Interrupts Per Millisecond Register (Cnrximax) - Texas Instruments AM1808 Technical Reference Manual

Sitara arm microprocessor
Hide thumbs Also See for AM1808:
Table of Contents

Advertisement

www.ti.com
18.3.1.12 EMAC Control Module Interrupt Core Receive Interrupts Per Millisecond Registers (C0RXIMAX-
C2RXIMAX)
The EMAC control module interrupt core 0-2 receive interrupts per millisecond register (CnRXIMAX) is
shown in
Figure 18-23
Figure 18-23. EMAC Control Module Interrupt Core 0-2 Receive Interrupts Per Millisecond Register
31
15
LEGEND: R = Read only; R/W = Read/Write; -n = value after reset
Table 18-20. EMAC Control Module Interrupt Core 0-2 Receive Interrupts Per Millisecond Register
Bit
Field
Value
31-6
Reserved
5-0
RXIMAX
2-3Fh
The pacing mechanism can be described by the following pseudo-code:
while(1) {
interrupt_count = 0;
/* Count interrupts over a 1ms window */
for(i = 0; i < INTCONTROL[INTPRESCALE]*250; i++) {
interrupt_count += NEW_INTERRUPT_EVENTS();
if(i < INTCONTROL[INTPRESCALE]*pace_counter)
BLOCK_EMAC_INTERRUPTS();
else
ALLOW_EMAC_INTERRUPTS();
}
ALLOW_EMAC_INTERRUPTS();
if(interrupt_count > 2*RXIMAX)
pace_counter = 255;
else if(interrupt_count > 1.5*RXIMAX)
pace_counter = previous_pace_counter*2 + 1;
else if(interrupt_count > 1.0*RXIMAX)
pace_counter = previous_pace_counter + 1;
else if(interrupt_count > 0.5*RXIMAX)
pace_counter = previous_pace_counter - 1;
else if(interrupt_count != 0)
pace_counter = previous_pace_counter/2;
else
pace_counter = 0;
previous_pace_counter = pace_counter;
}
SPRUH82C – April 2013 – Revised September 2016
Submit Documentation Feedback
and described in
Table 18-20
Reserved
R-0
Description
0
Reserved
RXIMAX is the desired number of CnRXPULSE interrupts generated per millisecond when
CnRXPACEEN is enabled in INTCONTROL.
Copyright © 2013–2016, Texas Instruments Incorporated
(CnRXIMAX)
Reserved
R-0
6
5
(CnRXIMAX)
Registers
16
0
RXIMAX
R/W-0
769
EMAC/MDIO Module

Advertisement

Table of Contents
loading

This manual is also suitable for:

Am1810

Table of Contents