From: Story, L. <Lenny.Story@Alcatel.com> - 2003-01-22 15:12:36
|
Greetings, I am assuming you recieved the spec i sent you. From The spec :=20 Table 3: 26-bit Wiegand Format ------------------------------------------------ Bit 1 --- Even parity over bits 2 to 13 Bits 2 to 9 --- Facility code (0 to 255); Bit 2 is MSB Bits 10 to 25 --- ID Number (0 to 65,535); Bit 10 is MSB Bit 26 --- Odd parity over bits 14 to 25 Just as it says above, Compute the numbe of EVEN bits in 2-13, if the number is ODD, then set Bit 1. Else, Clear it. Same idea for the parity on Bit 26, Compute the number of ODD bits=20 in 14 - 25. If the number is ODD clear bit 26, else set it. The parity bits are used to make the parity equal the type. If you are using even parity, then the total of even bits in the field PLUS the parity = bit should be even. Same with odd parity, total up the number of odd bits in the field, and = use the=20 ODD parity bit to make it ODD. Hope this helps -Lenny -----Original Message----- From: Helton Marques [mailto:hm...@ya...] Sent: Wednesday, January 22, 2003 7:45 AM To: SDCC User list Subject: [Sdcc-user] parity wiegand 26 bts Please... Anyone know how to calculate the Parity even and Parity oven in protocol Wiegand 26 bits ? Thanks... --------------------------- Helton Luiz Marques T=E9cnico Sistemas de Automa=E7=E3o Elcotech - Divis=E3o de Tecnologia - elc...@el... Elco Engenharia - www.elco.eng.br Fone:+55(41)213-3300 Cel: +55(41)9121-1583 _______________________________________________________________________ Busca Yahoo! O melhor lugar para encontrar tudo o que voc=EA procura na Internet http://br.busca.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Sdcc-user mailing list Sdc...@li... https://lists.sourceforge.net/lists/listinfo/sdcc-user |