Hi to all please help me i have working project about smart card by using MCU MCS-51 i has found the problem can't start reset the card / send another command by this MCU.
if you help coed for fix this problem please share me know.
Hi to all please help me i have working project about smart card by using MCU MCS-51 i has found the problem can't start reset the card / send another command by this MCU.
if you help coed for fix this problem please share me know.
Are you getting an ATR when toggling the reset line?
There are cards with high-active and low-active resets. So try both versions.
Use a DSO to check the cards VCC, clock, reset and IO.
I has used MCS-51 and i checked the logic of pin of smart already RST, CLK,I/O by logic analyzer when send ATR from SCM reader. and i was simmulate same as the logicby MCU but card not active. my configuration is T=1, CLK = 3.579MHz.
Low RST = 180ms
i will attached some photo to u review they are 3 pins above.
and MCU i has attcahd code for u. if u can use MCS51 pls review.
Doesn't look too bad. CH02 seems to be the IO pin. So can you read the ATR from the 8051?
First byte should be 3B (normal convention) or 3F (inverse convention).
but that you seem a photo is from SCM reader. for the MSC-51 the signal is same but the card not reset. and i will check buadrate is correct, i have no idea.
There's no magic in getting an ATR. Apply 5V, apply a clock (1 - 5MHz) with a duty cycle of 50% +- 10% (better +- 5%) and toggle the reset pin to the correct state.
Of course you have to make sure that the IO line is not tied low from the MCU side.