olivervd
Joined: 10 Oct 2014 Posts: 10
|
read em4150 with em4095+PIC |
Posted: Fri Oct 10, 2014 1:36 am |
|
|
Hello,
I want read em4150tag. I use em4095 + pic16f886, but I have a problem.
When I run my program, emerge the next error "PARITY".
My code is:
Code: |
int8 msg[32];
int8 tag_adr=5; // tag_adr is between 0-33
err = read_4150(msg,tag_adr);
printf("valor de ERR = %d\n",err);
tagNum = make32(msg[3], msg[2], msg[1], msg[0]);
switch(err) {
case ERR_OK: sprintf(data, "\n\rData: %lu", tagNum);break;
case ERR_LIW: sprintf(msg,"\n\rLIW LECTURA");
break;
case ERR_NAK: sprintf(msg,"\n\rNAK LECTURA");
break;
case ERR_PARITY: sprintf(msg,"\n\rPARITY LECTURA");
break;
}
puts(msg,RS);
} |
|
|