lan9313 Standard Microsystems Corp., lan9313 Datasheet - Page 120

no-image

lan9313

Manufacturer Part Number
lan9313
Description
Lan9313/lan9313i Three Port 10/100 Managed Ethernet Switch With Mii
Manufacturer
Standard Microsystems Corp.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
lan9313-NZW
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
lan9313-NZW
Manufacturer:
SMSC
Quantity:
20 000
Part Number:
lan9313I-NZW
Manufacturer:
Standard
Quantity:
261
Part Number:
lan9313I-NZW
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
lan9313NZW
Manufacturer:
Standard
Quantity:
295
Revision 1.2 (04-08-08)
8.4.1.1
8.4.2
SCK (active high)
SCK (active low)
nSCS
SO
SCK (active high)
SI
SCK (active low)
Figure 8.1
SPI Read Polling for Reset Complete
During reset, the SPI slave interface will not return valid data. To determine when the reset condition
is complete, the
read, the interface can be considered functional. At this point, the READY bit in the
Configuration Register (HW_CFG)
complete. Refer to
SPI Write Sequence
The SPI slave interface of the LAN9313/LAN9313i is selected for writes by first bringing nSCS low.
The SI pin should then driven with an 8-bit write instruction, followed by the 8-bit address and then the
data.
Multiple writes are performed by continuing the clock pulses and input data while nSCS is low.
Depending on the instruction (as shown in
decremented, or maintained. Maintaining an fixed internal address is useful for “bit-banging”. For auto-
incrementing instructions, once the internal address reaches its maximum, it rolls over to 0. For auto-
decrementing instructions, once the internal address reaches 0, it rolls over to its maximum.
The nSCS input is brought high to conclude the cycle. The SO output is three-stated throughout the
entire write sequence.
The data write to the register occurs after the 32-bits are input. In the event that 32-bits are not written
when the nSCS is returned high, the write is considered invalid and the register is not affected. Multiple
registers may be written in a multiple write cycle, each one being written after 32-bits.
SPI writes must not be performed to unused register addresses.
X
X
X
1
0
1
nSCS
2
0
SO
2
SI
3
0
illustrates a typical single and multiple register read.
3
X
X
Instruction
X
4
0
4
1
0
5
1
dec
Byte Order Test Register (BYTE_TEST)
5
2
0
6
2
Section 4.2, "Resets," on page 41
inc
6
3
0
7
3
1
Instruction
7
4
0
8
4
1
8
Z
5
9
0
5
A9
9
6
1
0
0
6
A8
1
0
Figure 8.1 SPI Reads
7
1
1
1
7
A7
DATASHEET
1
1
8
Multiple Register Reads
1
Single Register Read
1
2
Address
Z
can be polled to determine when the device initialization is
8
A6
1
2
9
A9
1
3
9
A5
1
3
120
1
0
A8
1
4
1
0
A4
1
4
1
1
A7
1
5
1
1
A3
1
5
Table
1
2
Address
A6
1
6
1
2
A2
1
6
1
3
A5
1
7
1
3
31
D
1
7
for additional information.
1
4
8.10), the internal address is incremented,
Data 1...
A4
1
8
1
4
30
X
D
1
8
should be polled. Once the correct pattern is
1
5
A3
1
9
1
5
29
.. .
D
1
9
1
6
.. .
A2
.. .
.. .
Three Port 10/100 Managed Ethernet Switch with MII
1
6
1
7
31
D
…Data m
1
7
1
8
D2
30
X
D
1
8
1
9
D1
29
.. .
D
1
9
.. .
.. .
.. .
D0
Data
4
5
X
4
5
31
D
Data m+1...
4
6
SMSC LAN9313/LAN9313i
D2
4
6
30
D
4
7
D1
4
7
29
.. .
D
X
4
8
.. .
D0
.. .
.. .
4
8
X
X
X
…Data n
Z
D2
Hardware
Datasheet
D1
X
D0
X
X
X
Z

Related parts for lan9313