LS009.0
1997.01.16
RTL8029AS Preliminary
33
s set RCR=00H to accept physical packet
s set PAR0-5 to accept packet
s set TCR=05H (CRC disabled)
s set DCR=43H
s clear ISR
s Tx a packet with good or bad CRC appended by program
s check FIFO, ISR & RSR after loopback
For bad CRC, expected: ISR=06H, RSR=02H (Tx:OK, Rx:CRC error)
For good CRC, expected: ISR=02H, RSR=01H (Tx:OK, Rx:OK)
Notes: In loopback mode, the received packets are not stored to SRAM, so PRX bit in ISR
isn't set.
(3) To verify the address recognition function
q Select a loopback mode (e.g. mode 2) to test
A. Right physical destination address
s set RCR=00H to accept physical packet
s set PAR0-5 to accept packet
s set TCR=04H (CRC enabled)
s set DCR=43H
s clear ISR
s Tx a packet
s check ISR after loopback
Expected: ISR=06H (packets accepted, Rx CRC error)
B. Wrong physical destination address
s set RCR=00H to accept physical packet
s set PAR0-5 to reject packet
s set TCR=04H (CRC enabled)
s set DCR=43H
s clear ISR
s Tx a packet
s check ISR after loopback
Expected: ISR=02H (packets rejected, Rx no response)
(4) To Test Cable Connection
q There are four physical medium types in RTL8029AS.
We perform loopback mode 3 to test the cable connection status.
s set RCR=00H to accept physical packet
s set PAR0-5 to accept packet
s set TCR=06H (CRC enabled)
s set DCR=43H
s clear ISR
s Tx a packet
s check TSR after loopback