Discussion Forum

Wiegand

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Ajay s
Posted
22-Jan-2005 11:57 GMT
Toolset
C51
New! 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');
}


}
Read-Only
Author
Keil Reinhard
Posted
8-Feb-2005 10:15 GMT
Toolset
C51
New! RE: Wiegand
Maybe examples on http://www.keil.com/download help.

For example:
http://www.keil.com/download/docs/8051_bitio.zip.asp

Next Thread | Thread List | Previous Thread Start a Thread | Settings