Hello, I am trying to use the built-in self test feature in order to test the PHYs in my design. I have read through the datasheet and I understand how to set up the self test. However, I can not seem to get the PRBS to send anything?
This is what I am doing.
1) Set BICSR2 bit #1 to 1 to clear the values PRBS_ERR_CNT and PRBS_BYTE_CNT
2) Set BISCR to 0xD008
-PRBS Continuous mode ON
-Generate continuous packets
-Enable PRBS generator
-Analog loopback mode
3) Set BMCR to 0x0140 (disable Auto-Negotiation)
4) Set CTRL to 0x4000 (Software Restart)
Then, I wait some time and then check the PRBS count and error registers.
For some reason, I see 0 in both PRBS_ERR_CNT and also 0 in PRBS_BYTE_CNT.
Is there some setting I am missing here in order to get this to work? It seems like the PRBS is not generating any bits. I thought you could just set the loopback to analog mode, which is internal, and then turn the PRBS generation on and loop some packets...
Any suggestions would be very helpful!
Thanks
Matt