| Electronic Components Datasheet Search |
|
ENC424J600 Datasheet(PDF) 30 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
ENC424J600 Datasheet(HTML) 30 Page - Microchip Technology |
|
30 / 168 page ![]() ENC424J600/624J600 DS39935C-page 28 2010 Microchip Technology Inc. 3.3 PHY Special Function Registers The PHY registers provide configuration and control of the PHY module, as well as status information about its operation. These 16-bit registers are located in their own memory space, outside of the main SFR space. Unlike other SFRs, the PHY SFRs are not directly accessible through the SPI or PSP interfaces. Instead, access is accomplished through a special set of MAC control registers that implement a Media Independent Interface Management (MIIM) defined by IEEE 802.3; these are the MICMD, MISTAT and MIREGADR registers. There are a total of 32 PHY addresses; however, only 10 locations implement user-accessible registers listed in Table 3-8. Writes to unimplemented locations are ignored and any attempts to read these locations return FFFFh. Do not write to reserved PHY register locations and ignore their content if read. TABLE 3-8: PHY SPECIAL FUNCTION REGISTER MAP 3.3.1 READING PHY REGISTERS When a PHY register is read, the entire 16 bits are obtained. To read from a PHY register: 1. Write the address of the PHY register to read from into the MIREGADR register (Register 3-1). Make sure to also set reserved bit 8 of this register. 2. Set the MIIRD bit (MICMD<0>, Register 3-2). The read operation begins and the BUSY bit (MISTAT<0>, Register 3-3) is automatically set by hardware. 3. Wait 25.6 s. Poll the BUSY (MISTAT<0>) bit to be certain that the operation is complete. While busy, the host controller should not start any MIISCAN operations or write to the MIWR register. When the MAC has obtained the register contents, the BUSY bit will clear itself. 4. Clear the MIIRD (MICMD<0>) bit. 5. Read the desired data from the MIRD register. For 8-bit interfaces, the order that these bytes are read is unimportant. 3.3.2 WRITING PHY REGISTERS When a PHY register is written to, the entire 16 bits are written at once; selective bit writes are not implemented. If it is necessary to reprogram only select bits in the register, the host microcontroller must first read the PHY register, modify the resulting data and then write the data back to the PHY register. To write to a PHY register: 1. Write the address of the PHY register to write to into the MIREGADR register. Make sure to also set reserved bit 8 of this register. 2. Write the 16 bits of data into the MIWR register. The low byte must be written first, followed by the high byte. 3. Writing to the high byte of MIWR begins the MIIM transaction and the BUSY (MISTAT<0>) bit is automatically set by hardware. The PHY register is written after the MIIM operation completes, which takes 25.6 s. When the write opera- tion has completed, the BUSY bit clears itself. The host controller should not start any MIISCAN, MIWR or MIIRD operations while the BUSY bit is set. Address Name Address Name 00 PHCON1 10 Reserved 01 PHSTAT1 11 PHCON2 02 Reserved 12 Reserved 03 Reserved 13 — 04 PHANA 14 Reserved 05 PHANLPA 15 Reserved 06 PHANE 16 Reserved 07 —17 Reserved 08 —18 — 09 —19 — 0A —1A — 0B —1B PHSTAT2 0C —1C Reserved 0D —1D Reserved 0E — 1E Reserved 0F — 1F PHSTAT3 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |