Guest
|
Need some advice about EM4095/EM4102(decoding) |
Posted: Wed Oct 08, 2008 9:35 am |
|
|
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? :-) |
|