參數(shù)資料
型號(hào): VT86C926
廠商: Electronic Theatre Controls, Inc.
英文描述: AMAZON PCI ETHERNET CONTROLLER
中文描述: 亞馬遜的PCI以太網(wǎng)控制器
文件頁(yè)數(shù): 21/24頁(yè)
文件大?。?/td> 87K
代理商: VT86C926
VIA T
ECHNOLOGIES
, I
NC
.
P
RELIMINARY
VT86C926
21
12.1.1. Enable Early Interrupt Mode
To set the VT86C926 to Early Interrupt mode, set bit 3 (EIEN) of the Diagnostic Register to high. To set
the VT86C926 back to normal mode, set bit 3 (EIEN) of the Diagnostic Register to low. You can set Early
interrupt mode in any state. But your receive interrupt service routine must able to receive fragments from
Ethernet data. If the routine cannot handle the fragment data, you may get corrupt data.
12.1.2. Early interrupt Receive Routine Refence register
The receive interrupt service routine algorithm fetches one page data from the SRAM upon reception of an
interrupt. Refer to the following register and status bit for Early Interrupt service routine:
Interrupt Status Register
(ISR, 0x07(0) bit0 PRX, bit 2 RXEE)
Receive Status Register
(RSR,0x0C(0) bit0 EARLY PRX)
Current Local DMA Counter Low and High
(CLDC(0), 0x01, 0x02)
Current Page Register
(CURR, 0x07(1))
But we suggest that you use this method as below, in order to reduce the interrupt occured times. Please
refer the CLDC counter for currently received bytes.
This algorithm sample enables the VT86C926's early interrupt drivers to increase the LAN system peer to
peer transfer rate. Programmers can modify the orignal NE2000 driver sources to add this function.
1. When driver is initialized,
set PktPointer = 0 and allocate PktBuffer = 1.5 KByte.
2. When interrupt is received, check ISR, CURR and RSR.
If RXE bit in ISR has been set, reset PktPointer = 0. (it is a packet error interrupt, STATE 0)
Else If PRX bit in ISR has been set, compare CURR with BNRY+1,
If CURR == BNRY+1, (it is a early interrupt condition)
Read and save CLDC (Current Local Data Count)
Evenlize CLDC. (CLDC = CLDC - CLDC % 2)
If PRX bit in RSR has not been set,
If RXE bit in ISR has been set, goto packet error condition (STATE 0).
If CLDC <= PktPointer, goto packet error condition (STATE 0).
RSAR = ((BNRY + 1) << 8) + PktPointer.
If RSAR >= PSTOP, set RSAR = RSAR - (PSTOP - PSTART).
RBCR = CLDC - PktPointer.
Use remote DMA to read packet data into offset PktBuffer + PktPointer.
PktPointer = CLDC.
Else goto packet complete condition (STATE 1).
Else (it is a packet complete interrupt, STATE 1)
RSAR = (BNRY + 1) << 8.
RBCR = 4.
Use remote DMA to packet header into offset PktBuffer.
If RXE bit in ISR has been set, set PktPointer = 0.
Get PktLen = packet length from PktBuffer.
PktLen = (PktLen + 1) - (PktLen + 1) % 2.
if PktLen <= PktPointer, set PktPointer = 0.
相關(guān)PDF資料
PDF描述
VT900 Photoconductive Cells and Analog Optoisolators (Vactrols)
VT905GA
VT905GC
VT90N1
VT90N2
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
VT8N1 制造商:PERKINELMER 制造商全稱:PerkinElmer Optoelectronics 功能描述:Photoconductive Cells and Analog Optoisolators (Vactrols)
VT8N2 制造商:PERKINELMER 制造商全稱:PerkinElmer Optoelectronics 功能描述:Photoconductive Cells and Analog Optoisolators (Vactrols)
VT900 制造商:PERKINELMER 制造商全稱:PerkinElmer Optoelectronics 功能描述:Photoconductive Cells and Analog Optoisolators (Vactrols)
VT905GA 制造商:未知廠家 制造商全稱:未知廠家 功能描述:
VT905GB 制造商:未知廠家 制造商全稱:未知廠家 功能描述: