{"id":2647,"date":"2019-06-17T08:24:20","date_gmt":"2019-06-17T08:24:20","guid":{"rendered":""},"modified":"2019-06-17T16:24:51","modified_gmt":"2019-06-17T08:24:51","slug":"%e5%8d%95%e7%89%87%e6%9c%ba%e5%ae%9a%e6%97%b6%e5%99%a8%e4%b8%ad%e6%96%ad%e5%8e%9f%e7%90%86%e5%8f%8as3c2440%e7%9a%84%e5%ae%9a%e6%97%b6%e5%99%a8%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2647","title":{"rendered":"\u5355\u7247\u673a\u5b9a\u65f6\u5668\u4e2d\u65ad\u539f\u7406\u53cas3c2440\u7684\u5b9a\u65f6\u5668\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"
\n\t\u5728\u7a0b\u5e8f\u4e2d\uff0c\u9700\u8981\u5ef6\u65f6\u7684\u65f6\u5019\uff0c\u901a\u5e38\u72b6\u51b5\u4e0b\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a1\u3001\u5faa\u73af\u8bed\u53e5\u5b9e\u73b0\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6613\u7528\uff0c\u4f46\u662f\u65e0\u6cd5\u5f97\u5230\u4e00\u4e2a\u7cbe\u786e\u7684\u5ef6\u65f6\u65f6\u95f4\uff1b2\u3001\u5b9a\u65f6\u5668<\/u>\u5b9a\u65f6\uff0c\u53ef\u8fbe\u5230\u7cbe\u786e\u5ef6\u65f6\u3002<\/p>\n\n\t\u4e2d\u65ad\u7684\u6982\u5ff5<\/h2>\n
\n\t\u4ec0\u4e48\u662f\u4e2d\u65ad\uff1aCPU<\/u>\u5728\u5904\u7406\u67d0\u4e00\u4e8b\u4ef6A\u65f6\uff0c\u53d1\u751f\u7684\u53e6\u5916\u67d0\u4e00\u4e8b\u4ef6B\u8bf7\u6c42CPU\u53bb\u5904\u7406\uff08\u4ea7\u751f\u4e86\u4e2d\u65ad\uff09\uff0c\u968f\u540eCPU\u6682\u65f6\u4e2d\u65ad\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u4efb\u52a1\uff0c\u53bb\u5bf9\u4e8b\u4ef6B\u8fdb\u884c\u5904\u7406\uff0cCPU\u5904\u7406\u5b8c\u4e8b\u4ef6B\u540e\u518d\u8fd4\u56de\u4e4b\u524d\u4e2d\u65ad\u7684\u4f4d\u7f6e\u7ee7\u7eed\u6267\u884c\u539f\u6765\u7684\u4e8b\u4ef6A\uff0c\u8fd9\u4e00\u8fc7\u7a0b\u603b\u79f0\u4e3a\u4e2d\u65ad\u3002<\/p>\n \n\t\u4e2d\u65ad\u6d41\u7a0b\u793a\u610f\u56fe<\/p>\n \n\t<\/p>\n \n\t\u4f7fCPU\u4e2d\u65ad\u7684\u4e8b\u4ef6\u79f0\u4e2d\u65ad\u6e90\u3002\u4e2d\u65ad\u6e90\u5411CPU\u53d1\u51fa\u4e2d\u65ad\u8bf7\u6c42\uff0cCPU\u6682\u65f6\u4e2d\u65ad\u539f\u6765\u6267\u884c\u7684\u4e8b\u4ef6A\u8f6c\u53bb\u505a\u4e8b\u4ef6B\u3002\u4e8b\u4ef6B\u5904\u7406\u5b8c\u6bd5\u540e\u7ee7\u7eed\u8fd4\u56de\u539f\u5148\u4e2d\u65ad\u7684\u5730\u65b9\uff08\u8be5\u8fc7\u7a0b\u79f0\u4e2d\u65ad\u8fd4\u56de\uff0c\u539f\u5148\u4e2d\u65ad\u7684\u5730\u65b9\u4e3a\u65ad\u70b9\uff09\uff0c\u7ee7\u7eed\u6267\u884c\u539f\u5148\u7684\u4e8b\u4ef6\u3002<\/p>\n \n\t\u4e2d\u65ad\u7684\u4f18\u5148\u7ea7<\/p>\n \n\t<\/p>\n \n\t\u4e2d\u65ad\u7684\u597d\u5904<\/p>\n \n\t\uff081\uff09\uff1a\u63d0\u9ad8\u4e86CPU\u7684\u6548\u7387<\/p>\n \n\tCPU\u662f\u8ba1\u7b97\u673a<\/u>\u7684\u6307\u6325\u4e2d\u5fc3\uff0c\u5b83\u4e0e\u5916\u56f4\u8bbe\u5907\uff08\u5982\uff1a\u6309\u952e\uff0c\u663e\u793a\u5668<\/u>\u7b49\uff09\u901a\u8baf\u7684\u65b9\u6cd5\u6709\u67e5\u8be2\u548c\u4e2d\u65ad2\u79cd<\/p>\n \n\t1\uff1a\u67e5\u8be2\uff1a\u65e0\u8bba\u5916\u56f4i\/o<\/u>\u662f\u5426\u9700\u8981\u670d\u52a1\uff0cCPU\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u90fd\u8981\u4f9d\u6b21\u67e5\u8be2\u4e00\u904d\uff0c\u8fd9\u79cd\u67e5\u8be2\u7684\u65b9\u6cd5\uff0cCPU\u9700\u8981\u82b1\u8d39\u4e00\u4e9b\u65f6\u95f4\u5728\u505a\u67e5\u8be2\u7684\u670d\u52a1\u5de5\u4f5c<\/p>\n \n\t2\uff1a\u4e2d\u65ad\uff1a\u5728\u5916\u56f4\u8bbe\u5907\u9700\u8981\u901a\u8baf\u670d\u52a1\u65f6\u4e3b\u52a8\u544a\u8bc9CPU\uff0cCPU\u505c\u4e0b\u5f53\u524d\u5de5\u4f5c\u53bb\u5904\u7406\u4e2d\u65ad\u7a0b\u5e8f\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86CPU\u7684\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n \n\t\uff082\uff09\uff1a\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u5904\u7406<\/p>\n \n\t\u5916\u8bbe\u4efb\u4f55\u65f6\u5019\u90fd\u53ef\u80fd\u53d1\u51fa\u8bf7\u6c42\u4e2d\u65ad\u7684\u4fe1\u53f7\uff0cCPU\u63a5\u5230\u8bf7\u6c42\u540e\u53ca\u65f6\u5904\u7406\uff0c\u4ee5\u6ee1\u8db3\u5b9e\u65f6\u7cfb\u7edf\u7684\u9700\u8981<\/p>\n \n\t\uff083\uff09\uff1a\u53ef\u4ee5\u53ca\u65f6\u5904\u7406\u6545\u969c<\/p>\n \n\t\u8ba1\u7b97\u673a\u7cfb\u7edf\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u96be\u514d\u4f1a\u51fa\u73b0\u6545\u969c\uff0ceg\uff1a\u7535\u6e90\u4e2d\u65ad\uff0c\u5b58\u50a8\u5668<\/u>\u51fa\u9519\uff0c\u5916\u56f4\u8bbe\u5907\u5de5\u4f5c\u4e0d\u6b63\u5e38\u7b49\uff0c\u8fd9\u65f6\u53ef\u4ee5\u901a\u8fc7\u4e2d\u65ad\u7cfb\u7edf\u5411\u4e2d\u65ad\u6e90\u7684CPU\u53d1\u51fa\u8bf7\u6c42\uff0c\u4ee5\u4fbf\u89e3\u51b3\u6545\u969c\u3002<\/p>\n \n\t1.\u6253\u5f00\u603b\u4e2d\u65ad\uff1a<\/p>\n \n\tEA\uff08ENABLE ALL\uff09 = 1\uff1b<\/p>\n \n\t2.\u8bbe\u7f6e\u5b9a\u65f6\u5668\u5de5\u4f5c\u65b9\u5f0f\uff1a<\/p>\n \n\tTMOD\u5bc4\u5b58\u5668<\/u>\uff1a\u5b9a\u65f6\u5668\/\u8ba1\u6570\u5668\u6a21\u5f0f\u63a7\u5236\u5bc4\u5b58\u5668<\/p>\n \n\t\u5176\u4e2dM1\u548cM0\u662f\u5b9a\u65f6\u5668\u5de5\u4f5c\u65b9\u5f0f\u7684\u8bbe\u7f6e\u4f4d\uff0c\u5171\u53ef\u8bbe\u7f6e4\u79cd\u5de5\u4f5c\u65b9\u5f0f\u3002<\/p>\n \n\t\u65b9\u5f0f0\uff08M1M0 = 00\uff09\uff1a13\u4f4d\u5b9a\u65f6\/\u8ba1\u6570\u5668<\/p>\n \n\t\u65b9\u5f0f1\uff08M1M0 = 01\uff09\uff1a16\u4f4d\u5b9a\u65f6\/\u8ba1\u6570\u5668 \/\/\u901a\u5e38\u91c7\u7528\u65b9\u5f0f1<\/p>\n \n\t\u65b9\u5f0f2\uff08M1M0 = 10\uff09\uff1a8\u4f4d\u81ea\u52a8\u91cd\u88c5\u5b9a\u65f6\/\u8ba1\u6570\u5668<\/p>\n \n\t\u65b9\u5f0f3\uff08M1M0 = 11\uff09\uff1aT0\u5206\u4e3a\u4e24\u4e2a\u72ec\u7acb\u76848\u4e3a\u5b9a\u65f6\/\u8ba1\u6570\u5668\uff1bT1\u5728\u6b64\u65b9\u5f0f\u505c\u6b62\u8ba1\u6570<\/p>\n \n\t3.\u5b9a\u65f6\u5668\u586b\u88c5\u521d\u503c<\/p>\n \n\t\u586b\u88c5\u521d\u503c\u8981\u70b9\uff1a<\/p>\n \n\t\u2460\u5355\u7247\u673a<\/u>\u6676\u632f<\/u>\u9891\u7387\uff1a12M\uff0c\u9707\u8361\u5468\u671f\u4e3a1\/12us<\/p>\n \n\t\u2461\u6807\u51c6\u768451\u5355\u7247\u673a\u4e3a12T\uff0c\u537312\u4e2a\u65f6\u949f<\/u>\u5468\u671f\uff0c 12 x 1\/12 us = 1us\uff0c\u5373\u52a0\u4e00\u6b211us\u3002<\/p>\n \n\t\u4f8b\u5982\uff1a\u5c06\u5b9a\u65f6\u5668\u8bbe\u7f6e\u5728\u5de5\u4f5c\u65b9\u5f0f1\uff0c\u521d\u503c\u8bbe\u4e3a10ms\uff1a<\/p>\n \n\tTMOD = 0x01;<\/p>\n \n\tTH0 = \uff0865536 - 10000\uff09;\/\/10000\u4ee3\u886810000\u4e2a1us<\/p>\n \n\tTL0 = \uff0865536 - 10000\uff09;<\/p>\n \n\t4.\u6253\u5f00\u5b9a\u65f6\u5668\u4e2d\u65ad<\/p>\n \n\tET0 = 1\uff1aENABLE TI<\/u>ME0<\/p>\n \n\tET1 = 1\uff1a ENABLE TIME1<\/p>\n \n\t5.\u6253\u5f00\u5b9a\u65f6\u5668\uff08\u5f00\u59cb\u8ba1\u6570\uff09<\/p>\n \n\tTR0 = 1\uff1a\u6253\u5f00\u5b9a\u65f6\u56680<\/p>\n \n\tTR1 = 1\uff1a\u6253\u5f00\u5b9a\u65f6\u56681<\/p>\n \n\t6.\u5199\u4e2d\u65ad\u670d\u52a1\u51fd\u6570\uff08ISR\uff09<\/p>\n \n\t\u6ce8\u610f\uff1a\u4e2d\u65ad\u670d\u52a1\u51fd\u6570\u4e0d\u80fd\u6709\u53c2\u6570\u548c\u8fd4\u56de\u503c<\/p>\n \n\t<\/p>\n \n\t\u6ce8\u610f\uff1a<\/p>\n \n\t1\uff1a\u5b9a\u65f6\u5668\u548c\u4e2d\u65ad\u90fd\u5c5e\u4e8e\u5355\u7247\u673a\u7684\u5185\u90e8\u8d44\u6e90\uff0c\u5728\u5f00\u53d1\u677f\u4e0a\u662f\u6ca1\u6709\u82af\u7247\u7684\uff0c\u540c\u65f6\u5b9a\u65f6\u5668\u7684\u521d\u59cb\u5316\u7a0b\u5e8f\u4e00\u65e6\u6ea2\u51fa\uff0c\u4f1a\u81ea\u52a8\u53bb\u6267\u884c\u5b9a\u65f6\u5668\u4e2d\u65ad\u5b50\u7a0b\u5e8f\uff0c\u800c\u4e0d\u9700\u8981\u6211\u4eec\u81ea\u5df1\u53bb\u8c03\u7528\uff0c\u8fd9\u4e9b\u90fd\u662f\u7531\u786c\u4ef6\u76f4\u63a5\u63a7\u5236\u7684\u3002<\/p>\n \n\t2\uff1a\u5b9a\u65f6\u5668\u8ba1\u7b97\u7684\u662f\u56fa\u5b9a\u8109\u51b2\uff0c\u5176\u5b9a\u65f6\u65f6\u95f4\u662f\u53ef\u4ee5\u8ba1\u7b97\u51fa\u6765\u7684\u3002\u5b83\u6bd4\u5ef6\u65f6\u51fd\u6570\u6709\u66f4\u597d\u7684\u4f5c\u7528\uff0c\u80fd\u63d0\u9ad8CPU \u7684\u6548\u7387\uff0c\u56e0\u4e3a\u5ef6\u65f6\u51fd\u6570\u662f\u9700\u8981\u8017\u8d39CPU\u53bb\u6267\u884c\u7684\uff0c\u5728\u6b64\u671f\u95f4\uff0cCPU\u662f\u4e0d\u80fd\u6267\u884c\u5176\u5b83\u529f\u80fd\u7684\uff0c\u800c\u5b9a\u65f6\u5668\u662f\u9700\u8981\u7528\u5230 \u7684\u65f6\u5019\uff0cCPU\u81ea\u52a8\u8c03\u7528\u3002<\/p>\n \n\t\u7cfb\u7edf\u65f6\u949f<\/p>\n \n\t\u9996\u5148\uff0c\u5e94\u5148\u4e86\u89e3s3c2440\u7684\u65f6\u949f\u7cfb\u7edf\u3002MCU<\/u>\u7684\u4e3b\u65f6\u949f\u6e90\u4e3b\u8981\u662f\u5916\u90e8\u6676\u632f\u6216\u5916\u90e8\u65f6\u949f\uff0c\u76ee\u524d\u7528\u7684\u6700\u591a\u7684\u662f\u5916\u90e8\u6676\u632f\u3002MI<\/u>NI2440\u5f00\u53d1\u677f\u4f7f\u7528\u4e00\u4e2a12MHz\u7684\u5916\u90e8\u6676\u632f\uff0c\u5982\u679cCPU\u53ea\u5de5\u4f5c\u572812MHz\u9891\u7387\u4e0b\uff0c\u5f00\u53d1\u677f\u7684\u4f7f\u7528\u6548\u7387\u975e\u5e38\u4f4e\uff0c\u6240\u6709\u4f9d\u8d56\u7cfb\u7edf\u65f6\u949f\u5de5\u4f5c\u7684\u786c\u4ef6\uff0c\u5176\u5de5\u4f5c\u6548\u7387\u4e5f\u975e\u5e38\u4f4e\uff0c\u5982\u679c\u60f3\u63d0\u9ad8CPU\u7684\u5de5\u4f5c\u6548\u7387\uff0c\u5219\u9700\u8981\u5bf9\u8f93\u5165\u65f6\u949f\u8fdb\u884c\u4e00\u7cfb\u5217\u5904\u7406\uff0c\u5176\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n \n\t\u6676\u632f\u9891\u7387\u901a\u8fc7PLL\uff08\u9501<\/u>\u76f8\u73af<\/u>\uff09\u8fdb\u884c\u500d\u9891\u5904\u7406\u3002s3c2440\u6709\u4e24\u4e2aPLL\uff0c\u5206\u522b\u662fUPLL\u548cMPLL\u3002UPLL\u4e13\u7528\u4e8eUSB<\/u>\u6a21\u5757\uff0c\u63d0\u4f9b48MHz\uff0cMPLL\u63d0\u4f9bFCLK\u3001HCLK\u548cPCLK\u3002FCLK\u662f\u4e3b\u9891\u65f6\u949f\uff0c\u7528\u4e8eARM<\/u>920T\u5185\u6838\uff1bHCLK\u7528\u4e8eAHB\u603b\u7ebf\u8bbe\u5907\uff0c\u5982\u5185\u5b58\u63a7\u5236\u3001\u4e2d\u65ad\u63a7\u5236\u3001LCD\u63a7\u5236\u3001DMA<\/u>\u4ee5\u53caUSB\u4e3b\u6a21\u5757\uff1bPCLK\u7528\u4e8eAPB\u603b\u7ebf\u8bbe\u5907\uff0c\u5982\u5916\u56f4\u8bbe\u5907\u7684\u770b\u95e8\u72d7<\/u>\uff0cIIS\uff0cI2C<\/u>\uff0cPWM\uff0cMMC\u63a5\u53e3<\/u>\uff0cADC<\/u>\uff0cUART<\/u>\uff0cGPI<\/u>O\uff0cRTC\u4ee5\u53caSPI\u3002<\/p>\n \n\ts3c2440\u652f\u6301FCLK\u3001HCLK\u548cPCLK\u4e4b\u95f4\u7684\u5206\u9891\u6bd4\u4f8b\u9009\u62e9\uff0c\u8be5\u6bd4\u4f8b\u7531CLKDIVN\u5bc4\u5b58\u5668\u4e2d\u7684HDI<\/u>VN\u548cPDIVN\u6765\u51b3\u5b9a\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u53ea\u9700\u786e\u5b9aFCLK\uff0c\u5373\u53ef\u901a\u8fc7\u8bbe\u5b9aHDIVN\u548cPDIVN\u6765\u786e\u5b9aHCLK\u548cPCLK\u3002<\/p>\n \n\tFCLK\u4e0e\u8f93\u5165\u65f6\u949fFin\u4e4b\u95f4\u7684\u500d\u6570\u5173\u7cfb\uff08\u5373\u6676\u632f\u9891\u7387\u901a\u8fc7PLL\u500d\u9891\uff09\u662f\u901a\u8fc7MPLLCON\u5bc4\u5b58\u5668\uff08\u5982\u56fe1\u6240\u793a\uff09\u6765\u8bbe\u7f6e\u7684\uff0cMPLLCON\u5bc4\u5b58\u5668\u4e2d\u5305\u542b3\u4e2a\u53c2\u6570\uff1aMDIV\u3001PDIV\u3001SDI<\/u>V\uff0c\u516c\u5f0f\u5982\u4e0b\uff1a<\/p>\n \n\tMPLL\uff08FCLK\uff09 = \uff082*m*Fin\uff09 \/ \uff08p*2^s\uff09<\/p>\n \n\t\u5176\u4e2d\uff1am = MDIV + 8 \uff0c p = PDIV + 2 \uff0cs = SDIV<\/p>\n \n\t<\/p>\n \n\t\u56fe1 MPLLCON\u5bc4\u5b58\u5668<\/p>\n \n\t\u603b\u7ed3\u4e00\u4e0b\uff0c\u65f6\u949f\u4ea7\u751f\u6d41\u7a0b\u4e3a\uff1a\u5916\u90e8\u65f6\u949f\u6e90→\u901a\u8fc7\u5bc4\u5b58\u5668MPLLCON\u5f97\u5230FCLK→\u518d\u901a\u8fc7\u5bc4\u5b58\u5668CLKDIVN\u5f97\u5230HCLK\u548cPCLK\u3002<\/p>\n \n\t\u5b9a\u65f6\u5668<\/p>\n \n\ts3c2440\u67095\u4e2a16-bit\u7684\u5b9a\u65f6\u5668\uff0c\u5b9a\u65f6\u56680\u30011\u30012\u30013\u5177\u6709PWM\u529f\u80fd\uff1b\u5b9a\u65f6\u56684\u53ea\u6709\u4e00\u4e2a\u5185\u90e8\u5b9a\u65f6\u800c\u6ca1\u6709\u5173\u8054\u5230\u8f93\u51fa\u7ba1\u811a\u4e0a\uff1b\u540c\u65f6\uff0c\u5b9a\u65f6\u56680\u6709\u4e00\u4e2adead-zeno\u4ea7\u751f\u5668\uff0c\u7528\u4e8e\u5927\u7535\u6d41<\/u>\u8bbe\u5907\u3002<\/p>\n \n\t\u5b9a\u65f6\u5668\u7684\u8f93\u5165\u65f6\u949f\u9891\u7387\u4fe1\u53f7\u8ddf\u9884\u5206\u9891\u5668\uff08prescaler\uff09\u548c\u5206\u9891\u5668\uff08divider\uff09\u76f8\u5173\u3002\u5982\u56fe2\u6240\u793a\u3002<\/p>\n \n\t\u9884\u5206\u9891\u5668\uff1a\u5b9a\u65f6\u56680\u548c1\u5171\u4eab\u4e00\u4e2a8-bit\u9884\u5206\u9891\u5668\uff0c\u5b9a\u65f6\u56682\u30013\u30014\u5171\u4eab\u53e6\u4e00\u4e2a8-bit\u9884\u5206\u9891\u5668\uff0c\u9884\u5206\u9891\u5668\u6570\u503c\u7531TCFG0\u914d\u7f6e\uff0c\u53d6\u503c\u8303\u56f4\u662f0~255\u3002<\/p>\n \n\t\u5206\u9891\u5668\uff1a\u540c\u65f6\uff0c\u6bcf\u4e00\u4e2a\u5b9a\u65f6\u5668\u90fd\u5206\u522b\u6709\u4e00\u4e2a\u65f6\u949f\u5206\u9891\u5668\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u4ea7\u751f5\u4e2a\u4e0d\u540c\u7684\u5206\u9891\u4fe1\u53f7\uff0c\u5206\u9891\u5668\u6570\u503c\u7531TCFG1\u914d\u7f6e\uff0c\u53d6\u503c\u53ea\u80fd\u662f2\u30014\u30018\u300116\uff0c\u6216\u8005\u5916\u90e8TCLKn\u3002<\/p>\n \n\t<\/p>\n \n\t\u56fe2 \u5b9a\u65f6\u5668\u8f93\u5165\u65f6\u949f\u6846\u56fe<\/p>\n \n\t\u5177\u4f53\u516c\u5f0f\u4e3a\uff1a<\/p>\n \n\t\u5b9a\u65f6\u5668\u8f93\u5165\u65f6\u949f\u9891\u7387=PCLK ÷ \uff08prescaler+1\uff09 ÷ divider<\/p>\n \n\t\u6bd4\u5982\uff0c\u5df2\u77e5PCLK=50MHz\uff0c\u6211\u4eec\u5e0c\u671b\u67d0\u4e00\u4e2a\u5b9a\u65f6\u5668\u7684\u8f93\u5165\u65f6\u949f\u9891\u7387\u4e3a25KHz\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u9700\u8981\u914d\u7f6eprescaler=249\uff0cdivider=8\uff0c\u5219\u9012\u51cf\u8ba1\u6570\u5668\u6bcf\u51cf\u4e00\u6b211\uff0c\u65f6\u95f4\u5c31\u8fc7\u53bb0.04ms\uff081÷25000×1000\uff09\u3002<\/p>\n \n\tTCONn\u4e3a\u5b9a\u65f6\u5668\u63a7\u5236\u5bc4\u5b58\u5668\uff0c\u63a7\u5236\u5b9a\u65f6\u5668\u7684\u5f00\u542f\u4e0e\u5173\u95ed\u3002<\/p>\n \n\t\u5b9a\u65f6\u8ba1\u6570\u7f13\u51b2\u5bc4\u5b58\u5668TCNTBn\u7528\u4e8e\u5b58\u50a8<\/u>\u5b9a\u65f6\u5668\u7684\u521d\u59cb\u503c\uff0c\u5f53\u5b9a\u65f6\u5668\u542f\u52a8\u65f6\uff0cTCNTBn\u91cc\u7684\u6570\u503c\u4f1a\u88ab\u52a0\u8f7d\u5230\u9012\u51cf\u8ba1\u6570\u5668TCNTn\u4e2d\u3002<\/p>\n \n\t\u5b9a\u65f6\u6bd4\u8f83\u7f13\u51b2\u5bc4\u5b58\u5668TCMPBn\u7528\u4e8e\u5b58\u50a8\u5b9a\u65f6\u5668\u7684\u6bd4\u8f83\u503c\uff0cTCMPBn\u7684\u6570\u503c\u4f1a\u88ab\u52a0\u8f7d\u5230\u6bd4\u8f83\u5bc4\u5b58\u5668TCMPn\u91cc\u6765\u8ddf\u9012\u51cf\u8ba1\u6570\u5668\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n \n\t\u5de5\u4f5c\u539f\u7406\u4e3a\uff1a<\/p>\n \n\t\uff081\uff09\u5c06\u5b9a\u65f6\u5668\u7684\u521d\u59cb\u503c\u548c\u6bd4\u8f83\u503c\u88c5\u5165\u5bc4\u5b58\u5668TCNTBn\u548cTCMPBn\u4e2d\u3002<\/p>\n \n\t\uff082\uff09\u8bbe\u7f6e\u5b9a\u65f6\u5668\u63a7\u5236\u5bc4\u5b58\u5668TCON\uff0c\u542f\u52a8\u5b9a\u65f6\u5668\u3002\u6b64\u65f6\uff0cTCMPBn\u548cTCNTBn\u4e2d\u7684\u503c\u4f1a\u52a0\u8f7d\u5230\u5bc4\u5b58\u5668TCMPn\u548cTCNTn\u4e2d\u3002<\/p>\n \n\t\uff083\uff09\u5b9a\u65f6\u5668\u4f1a\u51cf1\u8ba1\u6570\uff0c\u5373TCNTn\u8fdb\u884c\u51cf1\u8ba1\u6570\uff0c\u5f53TCMPn=TCNTn\u65f6\uff0cTOUTn\u5f15\u811a\u8f93\u51fa\u53d6\u53cd\u3002<\/p>\n \n\t\u5728\u901a\u5e38\u5e94\u7528\u4e2d\uff0cTCMPBn\u7684\u503c\u7528\u4e8ePWM\uff0c\u5f53\u9012\u51cf\u8ba1\u6570\u5668\u548c\u6bd4\u8f83\u8ba1\u6570\u5668\u6570\u503c\u76f8\u7b49\u65f6\uff0c\u7535\u5e73\u4f1a\u7ffb\u8f6c\uff0c\u4ece\u800c\u8fbe\u5230\u6539\u53d8\u5360\u7a7a\u6bd4\u7684\u76ee\u7684\u3002\u5982\u679c\u4ec5\u4ec5\u662f\u7528\u4e8e\u5b9a\u65f6\u4e2d\u65ad\uff0c\u90a3\u4e48\u5c06TCMPBn\u8bbe\u7f6e\u4e3a0\uff0c\u5219\u5f53\u9012\u51cf\u8ba1\u6570\u5668\u8fbe\u52300\u65f6\uff0c\u5b9a\u65f6\u5668\u4e2d\u65ad\u8bf7\u6c42\u901a\u77e5CPU\u5b9a\u65f6\u5668\u64cd\u4f5c\u5df2\u7ecf\u5b8c\u6210\u3002\u5f53\u5b9a\u65f6\u5668\u8ba1\u6570\u5668\u5230\u8fbe\u96f6\u65f6\uff0c \u76f8\u5e94\u7684 TCNTBn\u7684\u503c\u5c06\u81ea\u52a8\u88ab\u52a0\u8f7d\u5230\u9012\u51cf\u8ba1\u6570\u5668\u4ee5\u7ee7\u7eed\u4e0b\u4e00\u6b21\u64cd\u4f5c\u3002\u7136\u800c\uff0c\u5982\u679c\u5b9a\u65f6\u5668\u505c\u6b62\u4e86\uff0c\u4f8b\u5982\uff0c\u5728\u5b9a\u65f6\u5668\u8fd0\u884c\u6a21\u5f0f\u671f\u95f4\u6e05\u9664TCONn\u7684\u5b9a\u65f6\u5668\u4f7f\u80fd\u4f4d\uff0c TCNTBn\u7684\u503c\u5c06\u4e0d\u4f1a\u88ab\u91cd\u65b0\u52a0\u8f7d\u5230\u8ba1\u6570\u5668\u4e2d\u3002<\/p>\n \n\ts3c2440\u7684\u5b9a\u65f6\u5668\u6709\u4e00\u4e2a\u53cc\u7f13\u51b2\u529f\u80fd\uff0c\u4fdd\u8bc1\u4e0b\u6b21\u5b9a\u65f6\u5668\u64cd\u4f5c\u65f6\u91cd\u52a0\u8f7d\u7684\u503c\u6539\u53d8\u65f6\u65e0\u9700\u505c\u6b62\u5f53\u524d\u7684\u5b9a\u65f6\u5668\u64cd\u4f5c\u3002\u6240\u4ee5\u65b0\u7684\u5b9a\u65f6\u5668\u7684\u503c\u8bbe\u5b9a\uff0c\u5f53\u524d\u7684\u5b9a\u65f6\u5668\u64cd\u4f5c\u4e5f\u53ef\u4ee5\u6210\u529f\u5b8c\u6210\u3002\u5b9a\u65f6\u5668\u7684\u503c\u53ef\u4ee5\u5199\u5230TCNTBn\u4e2d\uff0c\u5b9a\u65f6\u5668\u7684\u5f53\u524d\u8ba1\u6570\u503c\u53ef\u4ee5\u4eceTCNTOn\u4e2d\u8bfb\u5230\u3002TCNTBn\u88ab\u8bfb\u53d6\u7684\u503c\uff0c\u4e0d\u8868\u660e\u8ba1\u6570\u5668\u7684\u5f53\u524d\u72b6\u6001\uff0c\u800c\u662f\u4e0b\u4e00\u6b21\u5b9a\u65f6\u5668\u6301\u7eed\u671f\u95f4\u7684\u91cd\u52a0\u8f7d\u503c\u3002\u5f53TCNTn\u4e3a0\uff0c\u81ea\u52a8\u91cd\u52a0\u8f7d\u64cd\u4f5c\u4f1a\u590d\u5236TCNTBn\u5230TCNTn\u4e2d\u3002\u4f46\u662f\uff0c\u5982\u679cTCNTn\u4e3a0\uff0c\u800c\u81ea\u52a8\u91cd\u52a0\u8f7d\u7684\u4f7f\u80fd\u4f4d\u4e3a0\uff0c\u90a3\u4e48TCNTn\u4e0d\u4f1a\u518d\u64cd\u4f5c\u4e86\u3002<\/p>\n \n\t\u914d\u7f6e\u5b8c\u5b9a\u65f6\u5668\u76f8\u5173\u5185\u5bb9\uff0c\u63a5\u4e0b\u6765\u662f\u914d\u7f6e\u4e2d\u65ad\uff0c\u5982\u8bbe\u7f6e\u4e2d\u65ad\u6a21\u5f0f\uff08IRQ\u6216FIQ\uff09\uff0c\u5c06\u5b9a\u65f6\u5668\u6267\u884c\u51fd\u6570\u5bf9\u5e94\u5b9a\u65f6\u4e2d\u65ad\u5165\u53e3\u5730\u5740\u7b49\u7b49\uff0c\u8fd9\u91cc\u4e0d\u591a\u52a0\u8d58\u8ff0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u5728\u7a0b\u5e8f\u4e2d\uff0c\u9700\u8981\u5ef6\u65f6\u7684\u65f6\u5019\uff0c\u901a\u5e38\u72b6\u51b5\u4e0b\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a1\u3001\u5faa\u73af\u8bed\u53e5\u5b9e\u73b0\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u6613\u7528\uff0c\u4f46\u662f\u65e0\u6cd5\u5f97\u5230\u4e00\u4e2a\u7cbe\u786e\u7684\u5ef6\u65f6\u65f6\u95f4\uff1b2\u3001 \u5b9a\u65f6\u5668 \u5b9a\u65f6\uff0c\u53ef\u8fbe\u5230\u7cbe\u786e\u5ef6\u65f6\u3002 \u4e2d\u65ad\u7684\u6982\u5ff5 \u4ec0\u4e48<\/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\/2647"}],"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=2647"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2647\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2647"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n\t\u5b9a\u65f6\u5668\u7684\u4f7f\u7528\u6b65\u9aa4<\/h2>\n
\n\t\u5b9a\u65f6\u5668\u4f7f\u7528\u7a0b\u5e8f<\/h2>\n
\n\ts3c2440\u7684\u5b9a\u65f6\u5668\u4f7f\u7528\u65b9\u6cd5<\/h2>\n