{"id":3047,"date":"2020-04-08T06:17:23","date_gmt":"2020-04-08T06:17:23","guid":{"rendered":""},"modified":"2020-04-08T14:18:34","modified_gmt":"2020-04-08T06:18:34","slug":"%e5%9f%ba%e4%ba%8eic%e6%8e%a5%e5%8f%a3%e7%ae%a1%e7%90%86%e8%8a%af%e7%89%87%e5%ae%9e%e7%8e%b0%e8%af%bb%e5%86%99%e5%99%a8%e7%9a%84%e8%bd%af%e7%a1%ac%e4%bb%b6%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=3047","title":{"rendered":"\u57fa\u4e8eIC\u63a5\u53e3\u7ba1\u7406\u82af\u7247\u5b9e\u73b0\u8bfb\u5199\u5668\u7684\u8f6f\u786c\u4ef6\u8bbe\u8ba1"},"content":{"rendered":"
\n\tIC\u5361\uff08Inte<\/u>grated Circuit card\uff09\u5373\u96c6\u6210\u7535\u8def<\/u>\u5361\uff0c\u662f\u5c06\u4e00\u4e2a\u96c6\u6210\u7535\u8def<\/u>\u82af\u7247\u9576\u5d4c\u4e8e\u6714\u6599\u57fa\u7247\u4e2d\uff0c\u5c01\u88c5\u6210\u5361\u7684\u5f62\u5f0f\uff0c\u5916\u5f62\u4e0e\u5e38\u7528\u7684\u8986\u76d6\u78c1\u6761\u7684\u78c1\u5361\u76f8\u4f3c\u3002IC\u5361\u82af\u7247\u5177\u6709\u5199\u5165\u548c\u5b58\u50a8<\/u>\u6570\u636e\u7684\u80fd\u529b\u3002IC\u5361\u5b58\u50a8\u5668<\/u>\u4e2d\u7684\u5185\u5bb9\u6839\u636e\u9700\u8981\u53ef\u4ee5\u6709\u6761\u4ef6\u5730\u4f9b\u5916\u90e8\u8bfb\u53d6\uff0c\u6216\u4f9b\u5185\u90e8\u4fe1\u606f\u5904\u7406\u548c\u5224\u5b9a\u3002\u6839\u636e\u5361\u4e2d\u6240\u9576\u5d4c\u7684\u96c6\u6210\u7535\u8def\u7684\u4e0d\u540c\uff0c\u53ef\u4ee5\u5206\u6210\u5b58\u50a8\u5668\u5361\u3001\u903b\u8f91\u52a0\u5bc6\u5361\u3001CPU<\/u>\u5361\u4e09\u7c7b\u3002\u5176\u4e2dCPU\u5361\u5373\u4e3a\u7531\u4e2d\u592e\u5904\u7406\u5668CPU\u3001EEPROM<\/u>\u3001\u968f\u673a\u5b58\u50a8\u5668RAM<\/u>\u4ee5\u53ca\u56fa\u5316\u5728\u53ea\u8bfb\u5b58\u50a8\u5668ROM\u4e2d\u7684\u7247\u5185\u64cd\u4f5c\u7cfb\u7edfCOS\uff08Chip Operati<\/u>on System\uff09\u7ec4\u6210\u7684IC\u5361\u3002IC\u5361\u6309\u4e0e\u5916\u754c\u6570\u636e\u4f20\u9001\u7684\u5f62\u5f0f\u6765\u5206\uff0c\u6709\u63a5\u89e6\u5f0f\u548c\u975e\u63a5\u89e6\u5f0f\u4e24\u79cd\u3002<\/p>\n
\n\t1\u3001 CPU IC\u5361T=0\u7684\u534f\u8bae\u4ecb\u7ecd<\/p>\n
\n\t\u76ee\u524d\u5927\u591a\u6570CPU IC\u5361\u91c7\u7528T=0\u6a21\u5f0f\u3002\u6240\u8c13T=0\uff0c\u5373CPU IC\u5361\u4e0e\u63a5\u53e3<\/u>\u8bbe\u5907\uff08\u5373\u8bfb\u5199\u5668\uff09\u4e2d\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u4e3a\u5f02\u6b65\u534a\u53cc\u5de5\u5b57\u7b26<\/u>\u4f20\u8f93\u6a21\u5f0f\u3002<\/p>\n
\n\t\u4eceT=0\u534f\u8bae\u7684\u529f\u80fd\u51fa\u53d1\uff0c\u8be5\u534f\u8bae\u7684\u5b9e\u73b0\u53ef\u4ee5\u5206\u4e3a\u7269\u7406\u5c42\u3001\u6570\u636e\u94fe\u8def\u5c42\u3001\u7ec8\u7aef\u4f20\u8f93\u5c42\u548c\u5e94\u7528\u5c42\u3002\u5176\u4e2d\u7269\u7406\u5c42\u548c\u6570\u636e\u94fe\u8def\u5c42\u53ef\u4ee5\u5177\u4f53\u53c2\u770bISO7816\u6807\u51c6\u3002\u5728T=0\u534f\u8bae\u5e94\u7528\uff0c\u7ec8\u7aef\u4f20\u8f93\u5c42\u548c\u5e94\u7528\u5c42\u5b9e\u9645\u4e0a\u662f\u4e0d\u6613\u5206\u5272\u6765\u8bf4\u660e\u7684\uff0c\u4e0b\u9762\u7b80\u5355\u8bf4\u660e\u3002<\/p>\n
\n\t\u7ec8\u7aef\u4f20\u8f93\u5c42\u6839\u636e\u5361\u7247\u8fd4\u56de\u7684\u8fc7\u7a0b\u5b57\u7b26\u548c\u72b6\u6001\u5b57\u8282\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\uff0c\u4f7f\u8bfb\u5199\u5668\u5bf9\u6570\u636e\u7684\u5904\u7406\u8fc7\u7a0b\u660e\u6717\u6e05\u6670\u3002\u5361\u7247\u8fd4\u56de\u7684\u8fc7\u7a0b\u5b57\u8282\u548c\u72b6\u6001\u5b57\u8282\u8ddf\u5e94\u7528\u5c42\u53d1\u9001\u7ed9\u5361\u7684APDU\uff08ApplicaTIon Protocol Data Unit\uff0c\u5e94\u7528\u534f\u8bae\u6570\u636e\u5355\u5143\uff09\u548cVPP\u4f7f\u7528\u7b49\u6709\u5173\u3002\u88681\u4e3aVPP\u672a\u7528\u65f6\u7684\u7ec8\u7aef\u4f20\u8f93\u5c42\u4e2d\u8fd4\u56de\u7684\u8fc7\u7a0b\u5b57\u8282\u3002<\/p>\n
\n\t<\/p>\n
\n\t\u5e94\u7528\u5c42\u5373\u4e3a\u7531CLA\u3001INS\u3001P1\u3001P2\u3001P3\u4f5c\u4e3a\u547d\u4ee4\u5934\u7ec4\u6210\u7684\u547d\u4ee4\u6d88\u606f\u4f53\u7684APDU\u54cd\u5e94\u548c\u5e94\u7b54\u5904\u7406\u5c42\u3002\u5176\u4e2dCLA\u4e3a\u6307\u4ee4\u7c7b\u522b\uff0cINS\u4e3a\u6307\u4ee4\u7801\uff0cP1\u3001P2\u4e3a\u53c2\u6570\uff0cP3\u4e3a\u6839\u636eAPDU\u7684\u4e0d\u540c\u683c\u5f0f\u4e3a\u53d1\u9001\u7ed9\u5361\u7684\u6570\u636e\u957f\u5ea6\u6216\u671f\u671b\u54cd\u5e94\u7684\u6570\u636e\u957f\u5ea6\u3002APDU\u7684\u51e0\u79cd\u60c5\u51b5\u5982\u88682\u6240\u5217\u3002<\/p>\n
\n\t<\/p>\n
\n\t\u5176\u4e2d\u4f53\u4e2d\u7684\u6570\u636e\u5b57\u8282\u6570\u7531\u547d\u4ee4APDU\u4e2d\u7684LE\u6307\u51fa\uff1bSW1\u3001SW2\u662f\u5fc5\u5907\u7684\uff0c\u53ef\u4ee5\u6307\u660e\u547d\u4ee4APDU\u6267\u884c\u6b63\u786e\u6216\u6267\u884c\u51fa\u9519\u7684\u9519\u8bef\u7c7b\u578b\u3002<\/p>\n
\n\t<\/p>\n
\n\t2 \u3001\u57fa\u4e8eT=0\u4f20\u8f93\u534f\u8bae\u7684CPU IC\u7684APDU\u6307\u4ee4\u6d41\u7a0b<\/p>\n
\n\t\u6839\u636e\u76ee\u524dCPU\u5361\u7684\u5e38\u7528T=0\u534f\u8bae\u3001\u81ea\u5e26\u7f16\u7a0b\u5347\u538b\u7535\u8def\u7684\u5e94\u7528\u60c5\u51b5\uff0c\u4ee5\u53ca\u672c\u8bfb\u5199\u5668\u63a5\u6536IC\u5361\u6570\u636e\u62a5\u6587\u76f4\u63a5\u53d1\u9001PC\u673a\u5904\u7406\u7684\u7279\u70b9\uff0c\u672c\u8bfb\u5199\u5668\u53ef\u884c\u7684APDU\u547d\u4ee4\u548c\u54cd\u5e94\u7684\u5904\u7406\u6d41\u7a0b\u5982\u56fe1\u6240\u793a\u3002<\/p>\n
\n\t<\/p>\n
\n\t3\u3001 \u8bfb\u5199\u5668\u7684\u786c\u4ef6\u7ec4\u6210<\/p>\n
\n\t\u8bfb\u5199\u5668\u7684\u786c\u4ef6\u90e8\u5206\u4e3b\u8981\u7531IC\u63a5\u53e3\u7ba1\u7406\u82af\u7247TDA8007\u3001MCU<\/u>AT89C52\u3001\u5916\u90e8\u6570\u636e\u5b58\u50a8\u5668W24257S\u3001\u4e32\u53e3\u7535\u5e73\u8f6c\u6362\u82af\u7247MAX3226\u3001\u5b89\u5168IC\u5361\u5ea7<\/u>\uff08\u5373SAM\u5361\u5ea7\uff09\u3001\u5e94\u7528IC\u5361\u5ea7\u3001\u952e\u76d8\u53e3\u4f9b\u7535\u7684\u4e32\u53e3\u901a\u4fe1\u7ebf\u53ca\u5176\u5b83\u76f8\u5173\u5143\u5668\u4ef6<\/u>\u7ec4\u6210\u3002<\/p>\n
\n\t\u56fe2\u6240\u793a\u4e3a\u901a\u8fc7PC\u673a\u63a7\u5236\u7ba1\u7406\u7684\u5916\u7f6e\u4e8ePC\u673a\u7684\u63a5\u89e6\u5f0fCPU IC\u5361\u8bfb\u5199\u5668\u3002\u901a\u8fc7\u5b9a\u5236\u7684\u6570\u636e\u7ebf\uff0c\u8be5\u8bfb\u5199\u5668\u76845V\u76f4\u6d41\u7535\u6e90\u53ef\u76f4\u63a5\u7531\u952e\u76d8\u53e3\u63d0\u4f9b\uff0c\u540c\u65f6\u6570\u636e\u7ebf\u8fd8\u8d1f\u8d23PC\u673a\u4e0e\u8bfb\u5199\u5668\u7684\u4e32\u884c\u6570\u636e\u4ea4\u6362\u3002\u5728\u5927\u90e8\u5206IC\u5361\u8bfb\u5199\u5e94\u7528\u4e2d\uff0c\u90fd\u6d89\u53ca\u5230IC\u5361\u7684\u8ba4\u8bc1\u548c\u6570\u636e\u8bfb\u5199\u7684\u56fd\u89e3\u5bc6\u95ee\u9898\uff0c\u6240\u4ee5\u672c\u8bfb\u5199\u5668\u9664\u4e86\u63d0\u4f9b\u4e00\u4e2a\u4f9b\u7528\u6237\u4f7f\u7528\u7684IC\u5361\u63a5\u53e3\u5361\u5ea7\u5916\uff0c\u8fd8\u5185\u7f6e\u4e86\u4e00\u4e2aSAM\u5361\uff0c\u5373\u5b89\u5168IC\u5361\u5361\u5ea7\uff0c\u4ee5\u65b9\u4fbf\u5b89\u88c5SAM\u5361\uff0c\u4fdd\u8bc1\u5e94\u7528IC\u5361\u8bfb\u5199\u65f6\u7684\u6570\u636e\u5b89\u5168\uff0c\u4fdd\u62a4\u7528\u6237\u7684\u5229\u76ca\u3002<\/p>\n
\n\t<\/p>\n
\n\t\u786c\u4ef6\u7684\u5176\u5b83\u7ec4\u6210\u90e8\u5206\uff0c\u5982\u5904\u7406\u5668\uff0c\u76ee\u524d\u91c7\u7528Atmel<\/u>\u768489C52\u3002\u51764KB\u7684Flash\u7a0b\u5e8f\u5b58\u50a8\u5668\u53ef\u4ee5\u6ee1\u8db3\u8bfb\u5199\u5668\u7684\u7a0b\u5e8f\u7a7a\u95f4\u9700\u8981\u3002\u7531\u4e8ePC\u673a\u4e0e89C52\u300189C52\u4e0eTDA8007\u7684\u6570\u636e\u4ea4\u6362\u8981\u6c42\u7684\u6682\u5b58\u6570\u636e\u7a7a\u95f4\u6bd4\u8f83\u5927\uff0c89C52\u63d0\u4f9b\u7684256\u5b57\u8282\u4e0d\u591f\uff0c\u9700\u5916\u52a0\u4e00\u7247\u6570\u636e\u5b58\u50a8\u5668\u3002\u672c\u8bfb\u5199\u5668\u4e2d\u4f7f\u7528\u7684\u662f\u534e\u90a6\u7684W24257S\u3002\u5176\u670932KB\u5b58\u50a8\u5bb9\u91cf\uff0cIC\u63a5\u53e3\u90e8\u5206\u7684\u4e3b\u8981\u82af\u7247\u4e3aPhilips\u7684TDA8007\u3002<\/p>\n
\n\t4\u3001 IC\u5361\u63a5\u53e3\u82af\u7247<\/u>\u5e94\u7528<\/p>\n
\n\t\u4e0b\u9762\u4ecb\u7ecd\u4e00\u4e0bTDA8007\u53ca\u5176\u5e94\u7528\u3002TDA8007\u7684\u539f\u7406\u7ed3\u6784\u5982\u56fe3\u6240\u793a\u3002<\/p>\n
\n\t<\/p>\n
\n\tTDA8007\u82af\u7247\u80fd\u591f\u63d0\u4f9b\u4e24\u4e2a\u80fd\u540c\u65f6\u6ee1\u8db3ISO7816\u6807\u51c6\u53caEMV\u548cGSM11-11\u6807\u51c6\u7684IC\u5361\u8bfb\u5199\u63a5\u53e3\u3002\u5728\u672c\u8bfb\u5199\u5668\u4e2d\uff0c\u4e00\u4e2a\u7528\u4e8e\u4e0e\u5e94\u7528IC\u901a\u4fe1\uff0c\u53e6\u4e00\u4e2a\u7528\u4e8e\u4e0e\u5b89\u5168IC\u5361\u901a\u4fe1\u3002\u4e0e\u4e0a\u6587CPU\u5361\u7684\u89e6\u70b9<\/u>\u56fe\u76f8\u5bf9\u5e94\uff0cCLKi\u3001RS<\/u>TI\u3001VCCi\u3001I\/O<\/u>i\u3001GNDCi\u3001PRESi\u3001C4i\u3001C8i\uff08\u5176\u4e2di=1\uff0c2\uff1bC4i\u3001C8i\u672a\u7528\uff1bPRESi\u53ef\u7528\u4e8e\u68c0\u6d4bIC\u5361\u662f\u5426\u63d2\u5165\u3002\u5177\u4f53\u5e94\u7528\u53ef\u53c2\u770bTDA8007\u7684\u6280\u672f\u6587\u6863\uff09\u90fd\u76f4\u63a5\u7531TDA8007\u63d0\u4f9b\u7ed9IC\u5361\u63a5\u53e3\u76f8\u8fde\uff0cMCU\u53ea\u9700\u901a\u8fc7\u5176\u63a5\u53e3\u63a7\u5236\u5e76\u884c\u901a\u4fe1\u6765\u7ba1\u7406TDA8007\uff0c\u4fbf\u53ef\u5b9e\u73b0\u5bf9IC\u5361\u7684\u4e0a\u7535\u3001\u4e0b\u7535\u53ca\u8bfb\u5199\u6570\u636e\u5904\u7406\u3002\u5176\u4e2d\uff0c\u5fae\u5904\u7406\u5668\u65e2\u53ef\u4ee5\u901a\u8fc7\u603b\u7ebf\u590d\u7528\u628aTDA8007\u5185\u90e8\u7684\u6240\u6709\u5bc4\u5b58\u5668<\/u>\u4f5c\u4e3a\u5916\u90e8\u5b58\u50a8\u5668\uff0c\u7528MOVX\u5bfb\u5740\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u975e\u603b\u7ebf\u590d\u7528\u65b9\u5f0f\u8bbf\u95ee\uff0c\u6b64\u65f6TDA8007\u7528AD0\uff5eAD3\u6765\u533a\u5206\u5185\u90e8\u5404\u5bc4\u5b58\u5668\u3002\u53e6\u5916\uff0cTDA8007\u7684\u7247\u9009\u4fe1\u53f7\u548c\u5916\u90e8\u4e2d\u65ad\u4fe1\u53f7\u7ebf<\/u>\u53ef\u4ee5\u65b9\u4fbf\u8bfb\u5199\u5668\u5904\u7406\u591a\u4e2aIC\u5361\u5934\u3002TDA8007\u7684\u7279\u522b\u786c\u4ef6ESD\u5904\u7406\u3001\u63a5\u53e3\u77ed\u8def<\/u>\u5904\u7406\u3001\u7535\u6e90\u51fa\u9519\u5904\u7406\u7b49\u4e5f\u7ed9IC\u5361\u548cIC\u5361\u8bfb\u5199\u5668\u63d0\u4f9b\u4e86\u6bd4\u8f83\u9ad8\u7684\u5b89\u5168\u4fdd\u62a4\uff1b\u540c\u65f6\uff0cTDA8007\u5185\u90e8\u96c6\u6210\u7684\u7535\u6e90\u7ba1\u7406<\/u>\u529f\u80fd\u5141\u8bb8TDA8007\u7684\u4f9b\u7535\u8303\u56f4\u53ef\u8fbe2.7\uff5e6.0V\uff0c\u5e76\u4e14TDA8007\u901a\u8fc7\u7535\u6e90\u7ba1\u7406\u53ef\u4ee5\u7ed9IC\u5361\u63d0\u4f9b5.0V\u30013.0V\u53ca1.8V\u7684\u7535\u6e90\uff0c\u4ee5\u9002\u5408\u4e0d\u540c\u5de5\u4f5c\u7535\u538b\u7684IC\u5361\u5e94\u7528\u3002<\/p>\n
\n\t\u672c\u8bfb\u5199\u5668\u662f\u901a\u8fc7\u603b\u7ebf\u590d\u7528\u5bf9TDA8007\u7684\u5bc4\u5b58\u5668\u8fdb\u884c\u63a7\u5236\u7684\u3002\u5176\u4e2dMCU\u7684P1.5\u4e3aTDA8007\u7684\u7247\u9009\uff0cP0\u53e3\u4e3a\u4e0e\u4e4b\u901a\u4fe1\u76848\u4f4d\u6570\u636e\u7ebf\uff0cTDA8007\u7684\u5404\u5bc4\u5b58\u5668\u9884\u5148\u88ab\u5b8f\u5b9a\u4e49\u7684\u6210\u5fae\u5904\u7406\u5668\u7684\u4e00\u4e2a\u5916\u90e8\u6570\u636e\u5355\u5143\uff08\u4e0b\u9762\u7535\u7a0b\u5e8f\u5904\u7684\u5b9a\u4e49\uff09\uff0c\u4ece\u800c\u65b9\u4fbfMCU\u8bbf\u95ee\u3002\u4e0b\u9762\u7ed3\u5408TDA8007\u5bc4\u5b58\u5668\u7684\u5b9a\u4e49\u548c\u4f4d\u5206\u914d\uff0c\u7ed9\u51fa\u5e94\u7528TDA8007\u63a5\u53e3\u82af\u7247\u5bf9IC\u5361\u8fdb\u884c\u4e0a\u7535\u6fc0\u6d3b\u548c\u4e0b\u7535\u7684\u7a0b\u5e8f\u3002TDA8007\u7684\u5bc4\u5b58\u5668\u4e3b\u8981\u4e09\u7c7b\u3002\u7b2c\u4e00\u7c7b\uff0c\u901a\u7528\u5bc4\u5b58\u5668\uff1a\u2460\u5361\u69fd\u9009\u62e9CSR<\/u>\uff1b\u2461\u786c\u4ef6\u72b6\u6001HSR\uff1b\u2462\u5b9a\u65f6\u5668<\/u>TOR1\u3001TOR2\u3001TOR3\u3002\u7b2c\u4e8c\u7c7b\uff0cISO7816\u4e32\u884c\u5904\u7406\u5bc4\u5b58\u5668\uff1a\u2460\u4e32\u884c\u72b6\u6001USR\uff1b\u2461\u6df7\u5408\u72b6\u6001MSR\uff1b\u2462\u4e32\u884c\u53d1\u9001UTR\uff1b\u2463\u4e32\u884c\u63a5\u6536URR\uff1b\u2464\u961f\u5217\u63a7\u5236FCR\u3002\u7b2c\u4e09\u7c7b\uff0c\u5361\u4e13\u5c5e\u5bc4\u5b58\u5668\uff1a\u2460\u53ef\u7f16\u7a0b\u5206\u9891PDR\uff1b\u2461\u4fdd\u62a4\u65f6\u95f4GTR\uff1b\u2462\u4e32\u884c\u63a7\u5236UCR1\u3001UCR2\uff1b\u2463\u65f6\u949f<\/u>\u914d\u7f6eCCR\uff1b\u2464\u4e0a\u7535\u63a7\u5236PCR\u3002\u6ce8\u610f\uff1a\u5bf9\u4e8e\u5361\u4e13\u5c5e\u7684\u5bc4\u5b58\u5668\uff0c\u5373\u5361\u63a5\u53e31\u3001\u5361\u63a5\u53e32\u5206\u522b\u5bf9\u5e94\u7684\u5bc4\u5b58\u5668\uff0c\u903b\u8f91\u4e0a\u5177\u6709\u76f8\u540c\u7684\u540d\u53ca\u8bbf\u95ee\u5730\u5740\uff0c\u56e0\u800c\uff0c\u5bf9\u4e0d\u540c\u7684\u77b3\u64cd\u4f5c\uff0c\u9700\u8981\u901a\u8fc7CSR\u9009\u62e9\u5bf9\u5e94\u7684\u5361\u69fd\u6765\u5207\u6362\u5361\u4e13\u5361\u5c5e\u5bc4\u5b58\u5668\u7684\u6620\u5c04\u7684\u7269\u7406\u7a7a\u95f4\u3002\u6240\u4ee5\uff0c\u63a5\u53e3\u8bbe\u5907\u6bcf\u6b21\u4ece\u4e00\u4e2a\u5361\u7684\u4e0a\u4e0b\u7535\u6216\u8bfb\u5199\u8f6c\u5411\u53e6\u4e00\u5361\uff0c\u90fd\u9700\u8981\u8bbfCSR\u8bbe\u5b9a\u5bf9\u5e94\u7684\u5361\u69fd\u3002\u5bf9\u4e8e\u6bcf\u4e2a\u5bc4\u5b58\u5668\u7684\u4f4d\u5b9a\u4e49\u4e0d\u518d\u591a\u8ff0\uff0c\u4e3b\u52a8\u6027\u8005\u53ef\u53c2\u770bTDA8007\u7684\u6280\u672f\u6587\u6863\u3002<\/p>\n
\n\t5\u3001 \u4e0a\u4e0b\u7535\u8fc7\u7a0b\u53ca\u5177\u4f53\u7a0b\u5e8f<\/p>\n
\n\t\u56fe4\u4e3aIC\u5361\u7684\u4e0a\u7535\u65f6\u5e8f\u56fe\u3002\u8981\u5b9e\u73b0\u4e4b\uff0c\u9700\u5bf9PCR\u8fdb\u884c\u5199\u64cd\u4f5c\u3002\u5176\u4e2dSTART=PCR.0\uff0cRSTIN=PCR.2\uff0cVUP\u4e0a\u5347\u8868\u793a\u6fc0\u6d3b\u4e86TDA8007\u4e2d\u7684\u7535\u538b\u8f6c\u6362\u7535\u8def\u3002\u5f53START\u7f6e\u9ad8\u65f6\uff0c\u53ea\u8981\u80fd\u68c0\u6d4b\u5230\u9009\u5b9a\u5361\u69fd\u4e2d\u7684IC\u5361\u5b58\u5728\uff0c\u4e14\u6ca1\u6709TDA8007\u80fd\u68c0\u6d4b\u5230\u5e76\u5728HSR\u4e2d\u6307\u793a\u7684\u786c\u4ef6\u9519\u8bef\u51fa\u73b0\uff0c\u5219\u5bf9\u5e94IC\u5361\u63a5\u53e3\u7684VCC1\u6216VCC2\u5c06\u80fd\u88ab\u63d0\u4f9b\u54cd\u5e94\u7684\u7535\u5e73\uff085V\u30013V\u62161.8V\uff09\u3002\u968f\u540e\u5bf9\u5e94\u5361\u7684I\/O\u6570\u636e\u7ebf\u88ab\u7f6e\u6210\u9ad8\u72b6\u6001\uff08Z\u72b6\u6001\uff09\uff0c\u7ed9IC\u5361\u63d0\u4f9b\u8bbe\u5b9a\u7684\u65f6\u949f\u4fe1\u53f7\uff0c\u5e38\u7528\u4e3a3.5712MHz\u3002\u5927\u7ea6\u5728START\u7f6e\u9ad8108ETU\u540e\uff0cRSTIN\u7f6e\u9ad8\u3002\u56e0\u4e3aRST\u4e3aRSTIN\u7684\u62f7\u8d1d\uff0c\u5219\u5bf9\u5e94\u5361\u7684RST\u88ab\u7f6e\u9ad8\u3002\u7136\u540e\uff0c\u7528TDA8007\u63d0\u4f9b\u7684\u5b9a\u65f6\u5668TOR3\u3001TOR2\u8bbe\u5b9a\u5bf9ATR\uff08Answer To Request\uff09\u5373\u590d\u4f4d\u5e94\u7b54\u9996\u5b57\u8282\u7684\u6700\u5927\u7b49\u5f85\u65f6\u95f4120ETU\uff08Element Time Unit\uff09\uff0cTOC\u8bbe\u5b9a\u5b9a\u65f6\u5668\u5de5\u4f5c\u65b9\u5f0f\uff0c\u4fbf\u5f00\u59cb\u7b49\u5f85ATR\u9996\u5b57\u8282\u5230\u6765\u540e\u505a\u76f8\u5e94\u5904\u7406\u3002\u81f3\u6b64\uff0cIC\u5361\u4e0a\u7535\u6fc0\u6d3b\u5de5\u4f5c\u5b8c\u6210\uff0c\u968f\u540e\u53ef\u4ee5\u6839\u636eATR\u5b57\u8282\u7684\u8981\u6c42\u7684\u5de5\u4f5c\u65b9\u5f0f\u5bf9IC\u5361\u8fdb\u884c\u76f8\u5e94\u7684\u8bfb\u5199\u5904\u7406\u3002\u5177\u4f53\u89c1\u4e0a\u7535\u7a0b\u5e8f\u3002<\/p>\n
\n\t<\/p>\n
\n\tTDA8007\u5bc4\u5b58\u5668\u8bbf\u95ee\u7684\u9884\u5b9a\u4e49<\/p>\n
\n\t#include<\/p>\n
\n\t#define XXX XBYTE\uff3b0x8000\uff3d\/\/XXX\u8868\u793aCSR\u7b49\u5404\u5bc4\u5b58\u5668\u4e0a\u7535\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n
\n\tP1.5=0; \/\/\u7247\u9009TDA8007<\/p>\n
\n\tCSR&=0xf8\uff1b<\/p>\n
\n\tCSR|=ncard; \/\/\u9009\u62e9\u5361\uff0cncard=1\uff0c2<\/p>\n
\n\tCSR&=0xf7\uff1b<\/p>\n
\n\tCSR|=0xf7;<\/p>\n
\n\tCSR|=0x08; \/\/\u590d\u4f4dUART<\/u>\u7684\u5bc4\u5b58\u5668<\/p>\n
\n\tUCR2&=0xf7\uff1b \/\/\u5f02\u6b65\u6a21\u5f0f\uff0cSAN=0<\/p>\n
\n\tCCR&=0xdf\uff1b \/\/\u65f6\u949f\u505c\u6b62\u4e8e\u4f4e\u7535\u5e73<\/p>\n
\n\tUCR2|=0x60; \/\/\u5173\u95ed\u9644\u52a0\u4e2d\u65ad\u53ca\u6536\u53d1\u4e2d\u65ad<\/p>\n
\n\tGTR=0xff; \/\/\u4fdd\u6301\u65f6\u95f412ETU<\/p>\n
\n\tIf<\/u>\uff08v==1\uff09 \/\/v\u4e3a\u51fd\u6570\u53d8\u91cf<\/p>\n
\n\tPCR|=0x08; \/\/1.8V\u5361\u7528<\/p>\n
\n\telse if\uff08v==3\uff09<\/p>\n
\n\tPCR|=0x02; \/\/3V\u5361\u7528<\/p>\n
\n\tElse<\/p>\n
\n\tPCR&=0xfd; \/\/5V\u5361\u7528<\/p>\n
\n\tUCR2&=0xfc; \/\/CKU=PSC=0\uff0c--31<\/p>\n
\n\tFCR=0x00; \/\/1\u5947\u5076\u6821\u9a8c1FIFO<\/p>\n
\n\tPDR=0x0c; \/\/Divider=12<\/p>\n
\n\tCCR=0x00; \/\/\u4e0d\u5206\u9891<\/p>\n
\n\tPCR&=0xfb; \/\/RSTIN=0<\/p>\n
\n\tUCR2|=0x04; \/\/\u4e0d\u81ea\u52a8\u8f6c\u6362<\/p>\n
\n\tUCR1=0x01; \/\/\u6b63\u5411\u7ea6\u5b9a<\/p>\n
\n\tUCR1&=0xf7\uff1b \/\/\u63a5\u6536\u6a21\u5f0f<\/p>\n
\n\tflag3=0; \/\/\u590d\u4f4d\u5b9a\u65f6\u6807\u5fd7<\/p>\n
\n\tflagatr=0; \/\/\u63a5\u6536ATR\u9996\u5b57\u8282\u5b9a\u65f6\u6807\u5fd7<\/p>\n
\n\tPCR|=0x01; \/\/\u6fc0\u6d3b<\/p>\n
\n\tTOR2=0x6c;<\/p>\n
\n\tTOR3=0x00;<\/p>\n
\n\tTOC=0x61; \/\/RST\u62c9\u9ad8\u524d\u7b49\u5f85108ETU<\/p>\n
\n\twhile\uff08flag3==0\uff09\uff1b \/\/\u5b9a\u65f6\u65f6\u95f4\u5230\uff0c\u5728\u4e2d\u65ad\u4e2d\u8bbe\u7f6eflag3=1<\/p>\n
\n\tTOC=0x00\uff1b \/\/\u5173\u95ed\u5b9a\u65f6\u5668<\/p>\n
\n\tPCR|=0x04; \/\/\u7ed9\u590d\u4f4d\u62c9\u9ad8<\/p>\n
\n\tTOR2=0x78;<\/p>\n
\n\tTOR3=0x00;<\/p>\n
\n\tTOC=0x61; \/\/RST\u62c9\u9ad8\u524d\u7b49\u5f85<\/p>\n
\n\tflagatr=1;<\/p>\n
\n\tATR\uff08\uff09; \/\/\u590d\u4f4d\u5e94\u7b54\u5904\u7406\u51fd\u6570<\/p>\n
\n\t\u56fe5\u4e3aIC\u5361\u7684\u4e0b\u7535\u65f6\u5e8f\u56fe\u3002\u76f8\u5bf9\u4e8e\u4e0a\u7535\u65f6\u5e8f\uff0c\u4e0b\u7535\u8fc7\u7a0b\u5bf9\u65f6\u95f4\u7684\u8981\u6c42\u4e0d\u662f\u5f88\u4e25\u683c\uff0c\u53ea\u8981\u8bbe\u8ba1\u8005\u63a7\u5236TDA8007\u6309\u7167\u4e00\u5b9a\u7684\u987a\u5e8f\u7f6e\u4f4eSTART\u3001RSTIN\u548c\u505c\u6b62CLK\u5373\u53ef\uff0c\u7136\u540eTDA8007\u4f1a\u81ea\u52a8\u9010\u6b65\u91ca\u653eRST\u3001I\/O\u3001Vcc\u53caVUP\u3002\u5177\u4f53\u5904\u7406\u89c1\u4e0b\u7535\u7a0b\u5e8f\u3002<\/p>\n
\n\t<\/p>\n
\n\t\u4e0b\u7535\u7a0b\u5e8f\uff1a<\/p>\n
\n\tP15=0\uff1b<\/p>\n
\n\tPCR&=0xfe; \/\/START=0\uff1b\u4e0b\u7535<\/p>\n
\n\tPCR&=0xfb; \/\/\u5361\u7684\u590d\u4f4d\u811a\u4fdd\u63010<\/p>\n
\n\tCCR&=0xdf\uff1b \/\/\u505c\u6b62\u65f6\u949f\u4e8e\u4f4e<\/p>\n
\n\tCCR|=0x10; \/\/\u505c\u6b62\u65f6\u949f<\/p>\n
\n\tP15=1\uff1b<\/p>\n
\n\t6\u3001 \u4f7f\u7528TDA8007\u5e94\u5f53\u6ce8\u610f\u7684\u95ee\u9898<\/p>\n
\n\tTDA8007\u5bf9\u4e8eVcc\u3001RST\u51fa\u9519\uff0c\u82af\u7247\u8fc7\u70ed\uff08\u5982\u56feIC\u5361\u4e3a\u7535\u6e90\u77ed\u8def\u5361\u6216\u91d1\u5c5e\u7247\uff09\uff0c\u6216IC\u5361\u63d2\u5165\u62d4\u51fa\u65f6\u90fd\u4f1a\u4ea7\u751f\u4e2d\u65ad\u8f93\u51fa\u3002\u6bcf\u6b21\u4e2d\u65ad\u5904\u7406\u7ed3\u675f\uff0c\u5e94\u6ce8\u610f\u628aHSR\u4e2d\u7684\u503c\u8bfb\u5165\u4e00\u4e2a\u4e34\u65f6\u5730\u5740\uff0c\u4ee5\u4fbf\u6e05\u695aHSR\u4e2d\u7684\u6807\u5fd7\u3002<\/p>\n
\n\t\u6bcf\u6b21\u53d1\u9001\u6570\u636e\u5230IC\u524d\uff0c\u5373\u63a5\u6536IC\u5361\u7684\u6700\u540e\u4e00\u4e2a\u6570\u636e\u4e4b\u524d\uff0c\u5e94\u8bbe\u7f6e\u5bc4\u5b58\u5668UCR1\u4e2d\u7684LCT\u4f4d\uff0c\u4ee5\u4fbf\u63a5\u6536\u5b8cIC\u5361\u7684\u6570\u636e\u540e\uff0c\u81ea\u52a8\u5207\u6362\u6210\u53d1\u9001\u72b6\u6001\u3002<\/p>\n
\n\t\u5bf9TDA8007\u90e8\u5206\u5e03\u7ebf<\/u>\u65f6\u5e94\u6ce8\u610f\uff0c\u65f6\u949f\u4fe1\u53f7\u7ebf\u4e0e\u5176\u5b83\u7ebf\u7684\u9694\u79bb\uff1a\u6700\u597d\u88ab\u5730\u7ebf\u5305\u56f4\u3002<\/p>\n
\n\t\u5bf9\u4e8e\u7535\u8def\u677f<\/u>\u4e0aTDA8007\u90e8\u5206\u7684\u7535\u5bb9<\/u>\u5e94\u5c3d\u91cf\u9760\u8fd1TDA8007\uff0c\u5176\u4e2d\u7535\u5bb9Cap\u3001Cbp\u3001Cup\u5c24\u5176\u5982\u6b64\uff0c\u5e76\u6700\u597d\u4e0d\u8981\u5728\u8fd9\u4e9b\u7535\u5bb9\u8fde\u5411TDA8007\u5f15\u811a\u8fc7\u7a0b\u4e2d\u4f7f\u7528\u8fc7\u5b54\uff1b\u540c\u65f6\uff0cCap\u3001Cup\u3001Cbp\u7535\u5bb9\u7684ESR\u8981\u5c3d\u91cf\u5c0f\u3002<\/p>\n
\n\t\u5bf9TDA8007\u5904\u7406\u7684\u4e24\u4e2aIC\u5361\u5ea7\u4e2d\u7684\u4efb\u4f55\u4e00\u4e2a\u6267\u884c\u4e0a\u7535\u3001\u4e0b\u7535\u3001\u8bfb\u5199\u5361\u64cd\u4f5c\u4e4b\u524d\uff0c\u5fc5\u987b\u6267\u884c\u9009\u62e9\u5361\u5ea7\u7684\u64cd\u4f5c\u51fd\u6570\uff0c\u4ee5\u4fbf\u9009\u4e2d\u5177\u4f53\u7684IC\u5361\u8fdb\u884c\u5904\u7406\u3002<\/p>\n
\n\t\u5bf9IC\u5361\u64cd\u4f5c\u4e2d\u4e0a\u7535\u65f6\u5e8f\u4e2d\u7684\u5b9a\u65f6\uff0c\u8bfb\u5199\u5361\u5b57\u8282\u95f4\u7b49\u5f85\u5b9a\u65f6\u7b49\u90fd\u53ef\u4f7f\u7528TDA8007\u4e2d\u7684\u5b9a\u65f6\u5668\u53ca\u5b9a\u65f6\u63a7\u5236\u5668\u64cd\u4f5c\uff0c\u6ce8\u610f\u5176\u5b9a\u65f6\u5668\u4e3a\u5411\u4e0b\u8ba1\u6570\u65b9\u5f0f\u3002<\/p>\n
\n\t\u7ed3\u8bed<\/p>\n
\n\t\u672c\u6587\u4e3b\u8981\u4eceCPU IC\u5361\u7684T=0\u7684\u534f\u8bae\u51fa\u53d1\uff0c\u4ecb\u7ecd\u6b64\u7c7bIC\u8bfb\u5199\u5668\u8bbe\u8ba1\u7684\u4e00\u4e9b\u6280\u672f\u95ee\u9898\u3002\u503c\u5f97\u6307\u51fa\u7684\u662f\uff0cT=0\u534f\u8bae\u4ec5\u4ec5\u662fIC\u5361\u4e0e\u5916\u754c\u6570\u636e\u4ea4\u6362\u7684\u4e00\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u53ea\u8981\u5728\u8f6f\u4ef6\u4e0a\u9002\u5f53\u4fee\u6539\u5e76\u5229\u7528\u63a5\u53e3\u82af\u7247TDA8007\u7a81\u51fa\u7684\u5904\u7406\u80fd\u529b\uff0c\u672c\u8bfb\u5199\u5668\u5b8c\u5168\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u5176\u5b83ISO7816\u5361\u3001EMV\u3001GSM`11-11\u5361\u7684\u8bfb\u5199\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
IC\u5361\uff08In te grated Circuit card\uff09\u5373 \u96c6\u6210\u7535\u8def \u5361\uff0c\u662f\u5c06\u4e00\u4e2a\u96c6\u6210 \u7535\u8def \u82af\u7247\u9576\u5d4c\u4e8e\u6714\u6599\u57fa\u7247\u4e2d\uff0c\u5c01\u88c5\u6210\u5361\u7684\u5f62\u5f0f\uff0c\u5916\u5f62\u4e0e\u5e38\u7528\u7684\u8986\u76d6\u78c1\u6761\u7684\u78c1\u5361\u76f8\u4f3c\u3002IC\u5361\u82af\u7247\u5177\u6709\u5199\u5165\u548c \u5b58\u50a8 \u6570\u636e\u7684\u80fd\u529b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/3047"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3047"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/3047\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3047"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}