Part Number: DP83822HF
I want to implement UDP communication, but currently it is not working. There are no device MAC found within the local network, and it is also impossible to ping. Could you please help me identify where the problem lies?
As we can see in the circuit diagram, Pin 26 has no external resistor, which causes the default hardware strap mode to lock in the MII mode.
Since I need RMII Master mode, I forced RMII Master mode through the following software configuration and output a 50M clock through GPIO3.
1. RCSR register (0x0017):bit 5 is set to 1, and bit 7 is cleared for RMII Master mode;
2. 0x0462 = 0x4300 for 50MHz of GPIO3;
3. PHYRCR register (0x001F):bit 14 is set to 1 for digital restart;
The waveforms output by the 25M crystal oscillator and GPIO3 (50M) were detected to be normal through the oscilloscope.
The following are the corresponding register values for the cases of network cable disconnected, network cable connected and link up.
| Reg | address | value when network cable disconnected | value when link up |
| DP83822_BMCR | 0x00 | 0x3100 | 0x3100 |
| DP83822_BMSR | 0x01 | 0x7849 | 0x786D |
| DP83822_PHYI1R | 0x02 | 0x2000 | 0x2000 |
| DP83822_PHYI2R | 0x03 | 0xA240 | 0xA240 |
| DP83822_ANAR | 0x04 | 0x01E1 | 0x01E1 |
| DP83822_ANLPAR | 0x05 | 0x0000 | 0xCDE1 |
| DP83822_ANER | 0x06 | 0x0004 | 0x000F |
| DP83822_ANNPTR | 0x07 | 0x2001 | 0x2001 |
| DP83822_ANLNPTR | 0x08 | 0x0000 | 0x41E2 |
| DP83822_CR1 | 0x09 | 0x0020 | 0x0020 |
| DP83822_CR2 | 0x0a | 0x0100 | 0x0100 |
| DP83822_CR3 | 0x0b | 0x1000 | 0x1000 |
| DP83822_REGCR | 0x0d | 0x401F | 0x401F |
| DP83822_ADDAR | 0x0e | 0x4300 | 0x4300 |
| DP83822_FLDS | 0x0f | 0x0000 | 0x0000 |
| DP83822_PHYSTS | 0x10 | 0x0002 | 0x4015 |
| DP83822_PHYSCR | 0x11 | 0x0108 | 0x0108 |
| DP83822_MISR1 | 0x12 | 0x0000 | 0x6400 |
| DP83822_MISR2 | 0x13 | 0x0800 | 0x2800 |
| DP83822_FCSCR | 0x14 | 0x0000 | 0x0000 |
| DP83822_RECR | 0x15 | 0x0000 | 0x0000 |
| DP83822_BISCR | 0x16 | 0x0100 | 0x0100 |
| DP83822_RCSR | 0x17 | 0x0061 | 0x0065 |
| DP83822_LEDCR | 0x18 | 0x0400 | 0x0400 |
| DP83822_PHYCR | 0x19 | 0x8021 | 0x8C21 |
| DP83822_10BTSCR | 0x1a | 0x0000 | 0x0000 |
| DP83822_BICSR1 | 0x1b | 0x007D | 0x007D |
| DP83822_BICSR2 | 0x1c | 0x05EE | 0x05EE |
| DP83822_CDCR | 0x1e | 0x0102 | 0x0102 |
| DP83822_PHYRCR | 0x1f | 0x0000 | 0x0000 |
