This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wiegand

i'm having trouble getting wegiand data from 89c52 ports all i want to do is just to print whati get on two pins which i defind label data0 and data1 i don't understand if it is due to delay or some thin else i'm gettin varing data ever time please help.


code used was

while(1)
{
while(data1==0 || data0 == 0)
{
if(data1==0)
putchar('0');
if(data0==0)
putchar('1');
}


}

0