monitorwa

asked on

# Mifare access bits hex to binary covnersion

Hi,

I am trying to understand the conversion of binary code into hex for access bits on mifare cards. Nxp has plenty of free pages on this but I'm obviously missing some under standing on how the values in the documents relate to what is programed into the card e.g Ff0708 converts to C1 c2 c3 which equals the binary value of 001

I'm sure I'm not giving enough info so ask and I will answer where I can

Thanks

I am trying to understand the conversion of binary code into hex for access bits on mifare cards. Nxp has plenty of free pages on this but I'm obviously missing some under standing on how the values in the documents relate to what is programed into the card e.g Ff0708 converts to C1 c2 c3 which equals the binary value of 001

I'm sure I'm not giving enough info so ask and I will answer where I can

Thanks

ASKER CERTIFIED SOLUTION

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

ASKER

Thanks your advices got me through it, on the actualy Mifare 1 k classic which is the card concerned C1 - C3 actually have 4 values each e.g C1 (0-3) so C1(2) - C3(2) reltae to different blocks of the card. I used your method for the rest and it worked out OK

thanks again

Dave

thanks again

Dave

i.e. F (Hex) = 1 1 1 1 (Bin) = 15 (Dec)

1 (Hex) = 0 0 0 1 (Bin) = 1 (Dec)

2 (Hex) = 0 0 1 0 (Bin) = 2 (Dec)

4 (Hex) = 0 1 0 0 (Bin) = 4 (Dec)

8 (Hex) = 1 0 0 0 (Bin) = 8 (Dec)

A (Hex) = 1 0 1 0 (Bin) = 10 (Dec)

hope that helps