<strong>RTL8181</strong>0 23 BOVF Buffer Overflow. When set, indicates that receive buffer has everexhausted before this packet is received.0 22 FOVF FIFO Overflow. When set, indicates that FIFO overflow has everoccurred before this packet is received.0 21 RWT Receive Watchdog Timer expired. When set, indicates that the receivedpacket length exceeds 1724 bytes, the receive watchdog timer willexpire and stop receive engine.0 20 RES Receive Error Summary. When set, indicates at least one of thefollowing errors occurred: CRC, RUNT, RWT, FAE. This bit is validonly when LS(Last segment bit) is set0 19 RUNT Runt packet. When set, indicates that the received packet length issmaller than 64 bytes. RUNT packet is able to be received only whenRCR_AR is set.0 18 CRC CRC error. When set, indicates that a CRC error has occurred on thereceived packet. A CRC-error packet can be received only whenRCR_AER is set.0 17-16 PDI[1:0] Protocol ID1, Protocol ID000: Non-IP01: TCP/IP10: UDP/IP11: IP.0 15 IPF When set, indicates IP checksum failure.0 14 UDPF When set, indicates UDP checksum failure.0 13 TCPF When set, indicates TCP checksum failure.0 12-0 Frame_Le When OWN=0 and LS =1, it indicates the received packet lengthngth including CRC, in bytes.4 31-17 RSEV Reserved.4 16 TAVA Tag Available. When set, the received packet is an IEEE802.1Q V<strong>LAN</strong>TAG (0x8100) available packet.4 15-0 V<strong>LAN</strong>_T If the packet ‘s TAG is 0x8100, The NIC extracts four bytes from afterAG source ID, sets TAVA bit to1, and moves the TAG value to this field inRx descriptor.8 31-0 RxBuff Logic Address of receive buffer.9. UART <strong>Controller</strong><strong>RTL8181</strong> provides a 16C550 compatible UART, which contains 16 byte FIFOs. In addition, auto flow control is provided, inwhich, auto-CTS mode (CTS controls transmitter) and auto-RTS mode (Receiver FIFO contents and threshold control RTS)are both supported. The baud rate is programmable and allows division of any input reference clock by 1 to (2^16-1) andgenerates an internal 16x clock. <strong>RTL8181</strong> provides fully programmable serial interface, which can be configured to support7,8 bit characters, even, odd, no parity generation and detection, and 1 or 2 stop bit generation. Last, fully prioritized interruptcontrol and loopback functionality for diagnostic capability are also provided.The clock source is 22MHz.UART Register SetVirtual address Size (byte) Name Description <strong>Access</strong>0xBD01_00C3 1 UART_RBR Receiver buffer register. (DLAB=0) R0xBD01_00C3 1 UART_THR Transmitter holding register. (DLAB=0) W0xBD01_00C3 1 UART_DLL Divisor latch LSB. (DLAB=1) R/W0xBD01_00C7 1 UART_IER Interrupt enable register. (DLAB=0) R/W0xBD01_00C7 1 UART_DLM Divisor latch MSB. (DLAB=1) R/W0xBD01_00CB 1 UART_IIR Interrupt identification register. R0xBD01_00CB 1 UART_FCR FIFO control register W0xBD01_00CF 1 UART_LCR Line control register R/W0xBD01_00D3 1 UART_MCR Modem control register R/W30CONFIDENTIAL v1.0
<strong>RTL8181</strong>0xBD01_00D7 1 UART_LSR Line status register R/W0xBD01_00DB 1 UART_MSR Modem status register R/W0xBD01_00DF 1 UART_SCR Scratch register R/WInterrupt Enable Register (UART_IER)Bit Bit Name Description R/W InitVal7-6 - Reserved5 ELP Low power mode enable R/W 03 EDSSI Enable modem status register interrupt R/W 04 ESLP Sleep mode enable R/W 02 ELSI Enable receiver line status interrupt R/W 01 ETBEI Enable transmitter holding register empty interrupt R/W 00 ERBI Enable received data available interrupt R/W 0Interrupt Identification Register (UART_IIR)Bit Bit Name Description R/W InitVal7:5 FIFO64[2:0] 000 = no FIFOR 110110 = 16-byte FIFO4 - Reserved R 03:1 IID[2:0] Interrupt ID. IID[1:0] indicates the interruptpriority.0 IPND Interrupt pending0 = interrupt pendingInterrupt PriorityInterruptIdentification RegisterBit3 Bit2 Bit1 Bit0PrioritylevelInterrupt type Interrupt sourceR 000R 0Interrupt resetmethod0 0 0 1 None None None None0 1 1 0 1 Receiver line Overrun, parity, framing Read LSRstatus errors or break0 1 0 0 2 Received data DR bit is set.Read RBR.available1 1 0 0 2 Charactertime-outindicationNo characters have beenremoved from or input toFIFO during the last characterRead RBR0 0 1 0 3 Transmitterholding registeremptytimes and at 1 character in it.THRE bit set.Reading IIR or writeTHR0 0 0 0 4 Modem status CTS#,DSR#,RI#,DCD# Reading MSRFIFO Control Register (UART_FCR)Bit Bit Name Description R/W InitVal7-6 RTRG[1:0] Receiver trigger levelW 11Trigger level: 16-byte00 = 0101 = 0410 = 0811 = 143-5 - Reserved2 TFRST Transmitter FIFO reset. Writes 1 to clear the W 0transmitter FIFO.1 RFRST Receiver FIFO reset. Writes 1 to clear the receiver W 0FIFO.0 EFIFO Enable FIFO. When this bit is set, enable the W 031CONFIDENTIAL v1.0