Datasheet

KSZ8795CLX
DS00002112B-page 86 2016-2017 Microchip Technology Inc.
Programming Examples
Read Operation
1. Use the Indirect Access Control Register to select register to be read, to read Global PME Control Register.
Write 0x90 to the Register 110 (0x6E) // PME selected and read operation, and 4 MSBs of port number (Register
110 Bits[3:0]) = 0 for the Global PME Register.
2. Write 0x03 to the Register 111 (0x6F) // trigger the read operation for bits [7:0] of the Global PME Control Register.
3. Read the Indirect Byte Register 160 (0xA0) // Get the value of the Global PME Control Register.
Write Operation
1. Write 0x80 to the Register 110 (0x6E) //PME selected and write operation, and 4 MSBs of Port number = 0 for
the Global PME Register.
2. Write 0x03 to the Register 111 (0x6F) // select write the bits [7:0] of the Global PME Control Address Register.
3. Write new value to the Indirect Byte Register 160 bits [7:0] (0xA0) //Write value to the Global PME Control Reg-
ister of the Indirect PME Data Register by the assigned the indirect data register address.
Port PME Control Mask Register
Reg. 110 (0x6E) Bits[7:5]=100 for PME, Reg. 110 Bits[3:0] = 0xn for port (n = 1, 2, 3, 4).
Reg. 111 (0x6F) Bits[7:0]= Offset to access the Indirect Byte Register 0xA0.
Offset: 0x04 (Bits[31:24]), 0x05 (Bits[23:16]), 0x06 (Bits[15:8]), 0x07 (Bits[7:0]).
Location: (100 PME) -> {0xn, offset} -> 0xA0 holds the data.
31 - 3 Reserved RO All ‘0’
2 Magic Packet
Detect
Enable
1 = The PME pin will be asserted when a magic
packet is detected at host QMU.
0 = The PME pin will not be asserted by the magic
packet detection.
R/W 0
1 Link-Up
Detect
Enable
1 = The PME pin will be asserted when a link-up is
detected at any port.
0 = The PME pin will not be asserted by the link-up
detection.
R/W 0
0Energy
Detect
Enable
1 = The PME pin will be asserted when energy on
line is detected at any port.
0 = The PME pin will not be asserted by the energy
detection.
R/W 0
TABLE 4-20: PME INDIRECT REGISTERS (CONTINUED)
Address Name Description Mode Default