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

ENC28J60-I/SO 参数 Datasheet PDF下载

ENC28J60-I/SO图片预览
型号: ENC28J60-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 独立以太网控制器,SPI接口 [Stand-Alone Ethernet Controller with SPI Interface]
分类和应用: 微控制器和处理器串行IO控制器通信控制器外围集成电路光电二极管数据传输PC局域网以太网时钟
文件页数/大小: 96 页 / 1466 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号ENC28J60-I/SO的Datasheet PDF文件第26页浏览型号ENC28J60-I/SO的Datasheet PDF文件第27页浏览型号ENC28J60-I/SO的Datasheet PDF文件第28页浏览型号ENC28J60-I/SO的Datasheet PDF文件第29页浏览型号ENC28J60-I/SO的Datasheet PDF文件第31页浏览型号ENC28J60-I/SO的Datasheet PDF文件第32页浏览型号ENC28J60-I/SO的Datasheet PDF文件第33页浏览型号ENC28J60-I/SO的Datasheet PDF文件第34页  
ENC28J60  
4.2.2  
READ BUFFER MEMORY  
COMMAND  
4.2.3  
WRITE CONTROL REGISTER  
COMMAND  
The Read Buffer Memory (RBM) command allows the  
host controller to read bytes from the integrated 8-Kbyte  
transmit and receive buffer memory.  
The Write Control Register (WCR) command allows  
the host controller to write to any of the ETH, MAC and  
MII Control registers in any order. The PHY registers  
are written to via a special MII register interface (see  
Section 3.3.2 “Writing PHY Registers” for more  
information).  
If the AUTOINC bit in the ECON2 register is set, the  
ERDPT Pointer will automatically increment to point to  
the next address after the last bit of each byte is read.  
The next address will normally be the current address  
incremented by one. However, if the last byte in the  
receive buffer is read (ERDPT = ERXND), the ERDPT  
Pointer will change to the beginning of the receive  
buffer (ERXST). This allows the host controller to read  
packets from the receive buffer in a continuous stream  
without keeping track of when a wraparound is needed.  
If AUTOINC is set when address 1FFFh is read and  
ERXND does not point to this address, the Read  
Pointer will increment and wrap around to 0000h.  
The WCR command is started by pulling the CS pin  
low. The WCR opcode is then sent to the ENC28J60,  
followed by a 5-bit address (A4 through A0). The 5-bit  
address identifies any of the 32 control registers in the  
current bank. After the WCR command and address  
are sent, actual data that is to be written is sent, MSb  
first. The data will be written to the addressed register  
on the rising edge of the SCK line.  
The WCR operation is terminated by raising the CS pin.  
If the CS line is allowed to go high before eight bits are  
loaded, the write will be aborted for that data byte.  
Refer to the timing diagram in Figure 4-5 for a more  
detailed illustration of the byte write sequence.  
The RBM command is started by pulling the CS pin low.  
The RBM opcode is then sent to the ENC28J60,  
followed by the 5-bit constant 1Ah. After the RBM com-  
mand and constant are sent, the data stored in the  
memory pointed to by ERDPT will be shifted out MSb  
first on the SO pin. If the host controller continues to  
provide clocks on the SCK pin, without raising CS, the  
byte pointed to by ERDPT will again be shifted out MSb  
first on the SO pin. In this manner, with AUTOINC  
enabled, it is possible to continuously read sequential  
bytes from the buffer memory without any extra SPI  
command overhead. The RBM command is terminated  
by raising the CS pin.  
FIGURE 4-5:  
WRITE CONTROL REGISTER COMMAND SEQUENCE  
CS  
0
1
2
3
4
5
6
7
8
9
10  
11  
12  
13  
14  
15  
SCK  
SI  
Address  
2
Opcode  
Data Byte  
0
1
0
A4  
3
1
0
D7  
6
5
4
3
2
1
D0  
High-Impedance State  
SO  
DS39662B-page 28  
Preliminary  
© 2006 Microchip Technology Inc.