http://www.mikrocontroller.net/topic/373408#new https://courses.cit.cornell.edu/ee476/FinalProjects/s2004/mtf23/BarcodeScanner/index.htm http://www.barcodeisland.com/ean13.phtml Insgesamte Breite: 3+6*7+5+6*7+3=95 2+3*3+12*7=95 Beispiel 1: 4001497281008 40 01497 28100 8 Prüfsumme: 4+0+4+7+8+0+8+3*(0+1+9+2+1+0)=70 d. h. durch 10 teilbar, also ist 8 richtig erste Stelle 4 bedeutet folgende Paritäten: 123456789abcd -oeooeerrrrrr 4001497281008 40 01497 28100 8 Eckes-Granini hohesC Orange mit Fruchtfleisch 1 L 00000000011111111112222222222333333333344444444445555555555666666666677777777778888888888999999 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 10100011010100111001100101000110010111001000101010110110010010001100110111001011100101001000101 gggo0 e0 o1 o4 e9 e7 gggggr2 r8 r1 r0 r0 r8 ggg g = guard bit e = left hand even decoding o = left hand odd decoding r = right hand decoding Beispiel 2: 4311596412006 43 11596 41200 6 Edeka G&G Haferflocken extra zart 00000000011111111112222222222333333333344444444445555555555666666666677777777778888888888999999 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 10101111010110011001100101100010001011000010101010101110011001101101100111001011100101010000101 gggo3 e1 o1 o5 e9 e6 gggggr4 r1 r2 r0 r0 r6 ggg