In SX Microcontrollers, SX/B Compiler and SX-Key Tool, stef wrote: Hi Bongo Thanks for the help. I recheked all and took some of your advice in considuration. I changed the hardware and added 2 pull up resistors of 10 K to the wiegand lines.(why I dont know) Afther some test (The value's where now always the same but not what I wood expect) I saw that I made a mistake in the program. The 26bit wiegand format has a leeding parity bit for the first 12 bits. The program I run in the sx was taking also that bit als value. That was the reason I saw diffrent values than expected. I changed the program to discard the first bit and now I see realy the value's I expect. Thanks for the help. The wiegand has al leeding even paritybit for the first 12 bits and a tailing odd paritybit for the last 12 bits. I think i can use them like a sort off error check if my values are read ok. Is somebody knowing how to calculate in basic the odd and even parity checksum?? I now can see the value's true the serial connection on my pc. I like to difine 2 pins and send the value also out again in wiegand format. Is sombody knowing what command I need to use to do this?? I think it is more difficult because you need to look also in considuration the timing you create to match wiegand standard. stef ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=154102#m154926 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)