CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

read em4150 with em4095+PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
olivervd



Joined: 10 Oct 2014
Posts: 10

View user's profile Send private message

read em4150 with em4095+PIC
PostPosted: Fri Oct 10, 2014 1:36 am     Reply with quote

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);
     
}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group