T5557卡刷卡失败两次后被锁死,不能再次读卡或者写卡,请大家帮忙找下原因
==================================T5557 AOR模式唤醒处理块开始==================================
CardServiceAorOperation: ;以下代码为AOR模式唤醒操作
//MOV.B #CardPassword_inInfoB,&aoraddressInfo
BIS.B #CardSdaTxDir
BIC.B #CardSdaTxOut
CALL #RF_card_initial
//LOOPNOP:
// NOP
// JMP LOOPNOP
MOV.B #03h,RFCounter
//BIC.B #T5557DataErrBit
CardServiceAorOperationRepeat:
MOV #0AEFDh,com_data_A
MOV #0EB19h,com_data_B
CALL #T5557AorMode
MOV #0200h,R11
LOOP_wait:
DEC R11
JNZ LOOP_wait
CALL #RF_read
CALL #CardDataXorVerify
CMP.B #00AAh,R5TEMP
JZ Read_Err
RET
Read_Err:
DEC.B &RFCounter
JNZ CardServiceAorOperationRepeat
BIS.B #RfRWErrBit_,RFStateFlag
RET
//DEC.B RFCounter
//JNZ CardServiceAorOperationRepeat |