Electronic Components Datasheet Search
  English  ▼

X  

LAN89218 Datasheet(PDF) 27 Page - Microchip Technology

Part # LAN89218
Description  High-Performance Single-Chip 10/100 Ethernet Controller for Automotive Applications
PDF  148 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

LAN89218 Datasheet(HTML) 27 Page - Microchip Technology

Back Button LAN89218 Datasheet HTML 23Page - Microchip Technology LAN89218 Datasheet HTML 24Page - Microchip Technology LAN89218 Datasheet HTML 25Page - Microchip Technology LAN89218 Datasheet HTML 26Page - Microchip Technology LAN89218 Datasheet HTML 27Page - Microchip Technology LAN89218 Datasheet HTML 28Page - Microchip Technology LAN89218 Datasheet HTML 29Page - Microchip Technology LAN89218 Datasheet HTML 30Page - Microchip Technology LAN89218 Datasheet HTML 31Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 148 page
background image
 2008-2015 Microchip Technology Inc.
DS60001255B-page 27
LAN89218
the RX status word for the associated frame will indicate that the frame size has increased by two bytes to
accommodate the checksum.
Setting the RXCOE_EN bit in the COE_CR—Checksum Offload Engine Control Register enables the RXCOE, and
the RXCOE_MODE bit selects the operating mode. When the RXCOE is disabled, the received frame and associated
status must not be modified and received data is simply passed through the RXCOE.
3.6.1.1
RX Checksum Calculation
The checksum is calculated 16 bits at a time. In the case of an odd sized frame, an extra byte of zero is used to
pad up to 16 bits.
Consider the following packet: DA, SA, Type, B0, B1, B2 … BN, FCS
Let [A, B] = A*256 + B;
If the packet has an even number of octets then
checksum = [B1, B0] + C0 + [B3, B2] + C1 + … + [BN, BN-1] + CN-1
Where C0, C1, ... CN-1 are the carry out results of the intermediate sums.
If the packet has an odd number of octets then
checksum = [B1, B0] + C0 + [B3, B2] + C1 + … + [0, BN] + CN-1
3.6.2
TRANSMIT CHECKSUM OFFLOAD ENGINE (TXCOE)
The transmit checksum offload engine provides assistance to the CPU by calculating a 16-bit checksum, typically for
TCP, for a transmit Ethernet frame. The TXCOE calculates the checksum and inserts the results back into the data
stream as it is transferred to the MAC.
To activate the TXCOE and perform a checksum calculation, the host must first set the TX checksum offload engine
enable bit (TXCOE_EN) in the COE_CR—Checksum Offload Engine Control Register. The host then pre-pends a 3
DWORD buffer to the data that will be transmitted. The pre-pended buffer includes a TX Command ‘A’, TX Command
‘B’, and a 32-bit TX checksum preamble. When bit 14 (CK) of the TX Command ‘B’ is set in conjunction with bit 13
(FS) of TX Command ‘A’ and bit 16 (TXCOE_EN) of the COE_CR register, the TXCOE will perform a checksum
calculation on the associated packet. When these three bits are set, a 32-bit TX checksum preamble must be pre-
pended to the beginning of the TX packet (refer to Table 3-7). The TX checksum preamble instructs the TXCOE on
the handling of the associated packet. Bits 11:0 of the TX checksum preamble define the byte offset at which the
data checksum calculation will begin (TXCSSP). The checksum calculation will begin at this offset and will continue
until the end of the packet. When the calculation is complete, the checksum will be inserted into the packet at the
byte offset defined by bits 27:16 of the TX checksum preamble (TXCSLOC). If the CK bit is not set in the first TX
Command ‘B’ of a packet, the packet is passed directly through the TXCOE without modification, regardless if the
TXCOE_EN is set.
Note:
When enabled, the RXCOE calculates a checksum for every received frame.
Note:
Software applications must stop the receiver and flush the RX data path before changing the state of the
RXCOE_EN or RXCOE_MODE bits.
Note:
When the RXCOE is enabled, automatic pad stripping must be disabled (bit 8 (PADSTR) of the MAC_CR—
MAC Control Register) and vice versa. These functions cannot be enabled simultaneously.
Note:
The data checksum calculation must not begin in the MAC header (first 14 bytes) or in the last 4 bytes of
the TX packet.
Note:
The TX checksum cannot be inserted in the MAC header (first 14 bytes) or in the last 4 bytes of the TX
packet.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com