![](http://datasheet.mmic.net.cn/40000/LC82161B-E_datasheet_1645008/LC82161B-E_15.png)
LC82161B-E
No.7775-15/19
Protocol Engine
The protocol engine implements parts of the network protocol stack processing (TCP/IP, UDP/IP) in hardware. It controls
the two Ethernet MAC circuits, performs transmission and reception data buffering, and performs data verification and
modification according to the protocols used.
Reception functions
— Received packet filtering (target MAC/IP address, packet type)
— Checksum check (IP, TCP, UDP)
— Header/data separation
— Reception buffer management
Transmission functions
— Automatic header generation
— Checksum calculation (IP, TCP, UDP)
— Host table function (15-location MAC address/IP address table)
— Transmission buffer management
ARP functions
— Host table generation
— Post-ARP automatic transmission
— Automatic ARP response
Internal 16 KB send/receive buffer
Normally, frames are bypassed bidirectionally, from MAC1 to MAC2 and from MAC2 to MAC1.
For received frames from MAC1, the protocol engine analyzes the target MAC address and if that address matches the local
(its own) MAC address, it sends the frame to the host CPU through the reception buffer. Either DMA or reading of registers
by the CPU is used for transfer of data from the reception buffer. Other frames are forwarded to the MAC2 transmission
buffer. However, broadcast and multicast frames are sent to both the host CPU and MAC2.
Transmission frames for MAC1 are transferred either by DMA transfer or by register writes by the CPU. If there is a
transmission frame from MAC2 in the transmission buffer, the CPU transmission frame is given priority for transmission.
MAC2 operates in the same manner as MAC1.
MAC1
MAC2
TX
RX
MII
Protocol
engine
AHB bus
Buffer