| Electronic Components Datasheet Search |
|
AM79C90PC Datasheet(PDF) 51 Page - Advanced Micro Devices |
|
|
|||||||||||||||||||||||||||||
AM79C90PC Datasheet(HTML) 51 Page - Advanced Micro Devices |
|
51 / 62 page ![]() AMD 51 Am79C90 640 C(1) = C(1) XOR 1: C(2) = C(2) XOR 1: C(4) = C(4) XOR 1 650 C(5) = C(5) XOR 1: C(7) = C(7) XOR 1: C(8) = C(8) XOR 1 660 C(10) = C(10) XOR 1: C(11) = C(11) XOR 1: C(12) = C(12) XOR 1 670 C(16) = C(16) XOR 1: C(22) = C(22) XOR 1: C(23) = C(23) XOR 1 680 C(26) = C(26) XOR 1 690 C(0) = 1 700 NEXT N 710 REM 720 REM CRC COMPUTATION COMPLETE, EXTRACT HASH NUMBER FROM C(0) TO C(5) 730 REM 740 HH=32*C(0)+16*C(1)+8*C(2)+4*C(3)+2*C(4)+C(5) 750 PRINT “THE HASH NUMBER FOR ”; 760 PRINT A$(0); “ ”; A$(1); “ ”; A$(2); “ ”; A$(3); “ ”; A$(4); “ ”; A$(5); 770 PRINT “IS”; HH 780 GOTO 210 Program example in C to generate the hash filter, for multicast addressing in the C-LANCE. /************************************************************ * hash.c Rev 0.1 * Generate a logical address filter value from a list of * Ethernet multicast addresses. * * Input: * User is prompted to enter an Ethernet address in * Ethernet hex format: First octet entered is the first * octet to appear on the line. LSB of most * significant octet is the first bit on the line. * Octets are separated by blanks. * After results are printed, user is prompted for * another address. * * (Note that the first octet transmitted is stored in * the C-LANCE as the least significant byte of the Physical * Address Register.) * Output: * After each address is entered, the program prints the * hash code for the last address and the cumulative * address filter function. The filter function is * printed as 8 hex bytes, least significant byte first. ****************************************************************/ #include <stdio.h> void updateCRC (int bit); int adr[6], /* Ethernet address */ ladrf[8], /* Logical address filter */ CRC[33], /* CRC register, 1 word/bit + extra control bit */ poly[] = /* CRC polynomial. poly[n] = coefficient of the x**n term of the CRC generator polynomial. */ {1,1,1,0, 1,1,0,1, 1,0,1,1, 1,0,0,0, 1,0,0,0, 0,0,1,1, 0,0,1,0, 0,0,0,0 }; void main() |
|
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 |
| 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 |