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

Need some advice about EM4095/EM4102(decoding)

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








Need some advice about EM4095/EM4102(decoding)
PostPosted: Wed Oct 08, 2008 9:35 am     Reply with quote

Need some advice about EM4095/EM4102(decoding)

I had looked at nearly all examples and want to ask something about theory of Manchester decoding.

Lets say my EM4102 use 32 clk to one data bit.

The Manchester coding is self clocking but to get track on it I also use "clk/rdy".

Will the following ex. code work? If not why?

Program flow: (this is only describing code, not "c" code)

Code:
void read()
{
 Set SHD=L //H=sleep
 Wait some data bit //just in case

 Wait for H-L on data line.
 Count 32/2 on clk line //now in the middle of a bit
 Read data bit

 Bit_cnt=0
 
 While (Bit_cnt < 64*2+10) //read 2 complete data cycler from the tag
 {
 Count 32 on clk line //now in middle of a bit
 Read Data bit
 Bit++
 }
 
 //Now all bit is read from the tag!
}



Some hints? :-)
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