欢迎访问ic37.com |
会员登录 免费注册
发布采购

ENC28J60-I/ML 参数 Datasheet PDF下载

ENC28J60-I/ML图片预览
型号: ENC28J60-I/ML
PDF下载: 下载PDF文件 查看货源
内容描述: 独立以太网控制器,SPI接口 [Stand-Alone Ethernet Controller with SPI Interface]
分类和应用: 微控制器和处理器串行IO控制器通信控制器外围集成电路数据传输PC局域网以太网时钟
文件页数/大小: 96 页 / 1466 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号ENC28J60-I/ML的Datasheet PDF文件第38页浏览型号ENC28J60-I/ML的Datasheet PDF文件第39页浏览型号ENC28J60-I/ML的Datasheet PDF文件第40页浏览型号ENC28J60-I/ML的Datasheet PDF文件第41页浏览型号ENC28J60-I/ML的Datasheet PDF文件第43页浏览型号ENC28J60-I/ML的Datasheet PDF文件第44页浏览型号ENC28J60-I/ML的Datasheet PDF文件第45页浏览型号ENC28J60-I/ML的Datasheet PDF文件第46页  
ENC28J60  
FIGURE 7-2:  
SAMPLE TRANSMIT PACKET LAYOUT  
Buffer Pointers Address  
Memory  
Description  
PHUGEEN, PPADN,  
PCRCEN and POVERRIDE  
0120h  
0121h  
0122h  
0Eh  
Control  
ETXST = 0120h  
data[1]  
data[2]  
Destination Address,  
Source Address,  
Data Packet  
Type/Length and Data  
ETXND = 0156h  
0156h  
0157h  
0158h  
0159h  
016Ah  
016Bh  
016Ch  
016Dh  
016Eh  
data[m]  
tsv[7:0]  
tsv[15:8]  
tsv[23:16]  
tsv[31:24]  
tsv[39:32]  
tsv[47:40]  
tsv[55:48]  
Status Vector  
Written by the Hardware  
Status Vector  
Start of the Next Packet  
To achieve the example layout shown in Figure 7-2 and  
to transmit a packet, the host controller should:  
DMA and transmission engine share the same memory  
access port. Similarly, if the DMAST bit in ECON1 is set  
after TXRTS is already set, the DMA will wait until the  
TXRTS bit becomes clear before doing anything. While  
the transmission is in progress, none of the unshaded  
bits (except for the EECON1 register’s bits) in Table 7-2  
should be changed. Additionally, none of the bytes to be  
transmitted should be read or written to through the SPI.  
If the host controller wishes to cancel the transmission,  
it can clear the TXRTS bit.  
1. Appropriately program the ETXST Pointer to  
point to an unused location in memory. It will  
point to the per packet control byte. In the  
example, it would be programmed to 0120h. It is  
recommended that an even address be used for  
ETXST.  
2. Use the WBM SPI command to write the per  
packet control byte, the destination address, the  
source MAC address, the type/length and the  
data payload.  
When the packet is finished transmitting or was aborted  
due to an error/cancellation, the ECON1.TXRTS bit will  
be cleared, a seven-byte transmit status vector will be  
written to the location pointed to by ETXND + 1, the  
EIR.TXIF will be set and an interrupt will be generated  
(if enabled). The ETXST and ETXND Pointers will not  
be modified. To check if the packet was successfully  
transmitted, the ESTAT.TXABRT bit should be read. If  
it was set, the host controller may interrogate the  
ESTAT.LATECOL bit in addition to the various fields in  
the transmit status vector to determine the cause. The  
transmit status vector is organized as shown in  
Table 7-1. Multi-byte fields are written in little-endian  
format.  
3. Appropriately program the ETXND Pointer. It  
should point to the last byte in the data payload.  
In the example, it would be programmed to  
0156h.  
4. Clear EIR.TXIF, set EIE.TXIE and set EIE.INTIE  
to enable an interrupt when done (if desired).  
5. Start the transmission process by setting  
ECON1.TXRTS.  
If a DMA operation was in progress while the TXRTS bit  
was set, the ENC28J60 will wait until the DMA opera-  
tion is complete before attempting to transmit the  
packet. This possible delay is required because the  
DS39662B-page 40  
Preliminary  
© 2006 Microchip Technology Inc.