{"id":2737,"date":"2019-07-22T04:06:18","date_gmt":"2019-07-22T04:06:18","guid":{"rendered":""},"modified":"2019-07-22T12:06:44","modified_gmt":"2019-07-22T04:06:44","slug":"%e6%b5%85%e6%9e%90%e5%8d%95%e7%89%87%e6%9c%ba%e7%9a%84%e5%91%a8%e6%9c%9f%e5%85%b3%e7%b3%bb%e5%92%8c%e5%ae%9a%e6%97%b6%e5%99%a8%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2737","title":{"rendered":"\u6d45\u6790\u5355\u7247\u673a\u7684\u5468\u671f\u5173\u7cfb\u548c\u5b9a\u65f6\u5668\u539f\u7406"},"content":{"rendered":"
\n\t\u65f6\u949f<\/u>\u5468\u671f\uff1a<\/p>\n
\n\t\u65f6\u949f\u5468\u671f\u4e5f\u53eb\u632f\u8361\u5468\u671f\u6216\u6676\u632f<\/u>\u5468\u671f\uff0c\u5373\u6676\u632f\u7684\u5355\u4f4d\u65f6\u95f4\u53d1\u51fa\u7684\u8109\u51b2\u6570\uff0c\u4e00\u822c\u6709\u5916\u90e8\u7684\u632f\u6676\u4ea7\u751f\uff0c\u6bd4\u598212MHZ=12×10\u76846\u6b21\u65b9\uff0c\u5373\u6bcf\u79d2\u53d1\u51fa12000000\u4e2a\u8109\u51b2\u4fe1\u53f7\uff0c\u90a3\u4e48\u53d1\u51fa\u4e00\u4e2a\u8109\u51b2\u7684\u65f6\u95f4\u5c31\u662f\u65f6\u949f\u5468\u671f\uff0c\u4e5f\u5c31\u662f1\/12\u5fae\u79d2\u3002\u901a\u5e38\u4e5f\u53eb\u505a\u7cfb\u7edf\u65f6\u949f\u5468\u671f\u3002\u662f\u8ba1\u7b97\u673a<\/u>\u4e2d\u6700\u57fa\u672c\u7684\u3001\u6700\u5c0f\u7684\u65f6\u95f4\u5355\u4f4d\u3002<\/p>\n \n\t<\/p>\n \n\t\u57288051\u5355\u7247\u673a<\/u>\u4e2d\u628a\u4e00\u4e2a\u65f6\u949f\u5468\u671f\u5b9a\u4e49\u4e3a\u4e00\u4e2a\u8282\u62cd(\u7528P\u8868\u793a)\uff0c\u4e8c\u4e2a\u8282\u62cd\u5b9a\u4e49\u4e3a\u4e00\u4e2a\u72b6\u6001\u5468\u671f(\u7528S\u8868\u793a)\u3002<\/p>\n \n\t\u673a\u5668\u5468\u671f\uff1a<\/p>\n \n\t\u5728\u8ba1\u7b97\u673a\u4e2d\uff0c\u4e3a\u4e86\u4fbf\u4e8e\u7ba1\u7406\uff0c\u5e38\u628a\u4e00\u6761\u6307\u4ee4\u7684\u6267\u884c\u8fc7\u7a0b\u5212\u5206\u4e3a\u82e5\u5e72\u4e2a\u9636\u6bb5\uff0c\u6bcf\u4e00\u9636\u6bb5\u5b8c\u6210\u4e00\u9879\u5de5\u4f5c\u3002\u4f8b\u5982\uff0c\u53d6\u6307\u4ee4\u3001\u5b58\u50a8\u5668<\/u>\u8bfb\u3001\u5b58\u50a8<\/u>\u5668\u5199\u7b49\uff0c\u8fd9\u6bcf\u4e00\u9879\u5de5\u4f5c\u79f0\u4e3a\u4e00\u4e2a\u57fa\u672c\u64cd\u4f5c\u3002\u5b8c\u6210\u4e00\u4e2a\u57fa\u672c\u64cd\u4f5c\u6240\u9700\u8981\u7684\u65f6\u95f4\u79f0\u4e3a\u673a\u5668\u5468\u671f\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4e00\u4e2a\u673a\u5668\u5468\u671f\u7531\u82e5\u5e72\u4e2aS\u5468\u671f(\u72b6\u6001\u5468\u671f)\u7ec4\u6210\u30028051\u7cfb\u5217\u5355\u7247\u673a\u7684\u4e00\u4e2a\u673a\u5668\u5468\u671f\u540c6\u4e2aS\u5468\u671f(\u72b6\u6001\u5468\u671f)\u7ec4\u6210\u3002\u524d\u9762\u5df2\u8bf4\u8fc7\u4e00\u4e2a\u65f6\u949f\u5468\u671f\u5b9a\u4e49\u4e3a\u4e00\u4e2a\u8282\u62cd(\u7528P\u8868\u793a)\uff0c\u4e8c\u4e2a\u8282\u62cd\u5b9a\u4e49\u4e3a\u4e00\u4e2a\u72b6\u6001\u5468\u671f(\u7528S\u8868\u793a)\uff0c8051\u5355\u7247\u673a\u7684\u673a\u5668\u5468\u671f\u75316\u4e2a\u72b6\u6001\u5468\u671f\u7ec4\u6210\uff0c\u4e5f\u5c31\u662f\u8bf4\u4e00\u4e2a\u673a\u5668\u5468\u671f=6\u4e2a\u72b6\u6001\u5468\u671f=12\u4e2a\u65f6\u949f\u5468\u671f\u3002<\/p>\n \n\t\u5728\u6807\u51c6\u768451\u5355\u7247\u673a\u4e2d\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4e00\u4e2a\u673a\u5668\u5468\u671f\u7b49\u4e8e12\u4e2a\u65f6\u949f\u5468\u671f\uff0c\u4e5f\u5c31\u662f\u673a\u5668\u5468\u671f=12*\u65f6\u949f\u5468\u671f\uff0c(\u4e0a\u9762\u8bb2\u5230\u7684\u539f\u56e0)\u5982\u679c\u662f12MHZ\uff0c\u90a3\u4e48\u673a\u5668\u5468\u671f=1\u5fae\u79d2\u3002\u5355\u7247\u673a\u5de5\u4f5c\u65f6\uff0c\u662f\u4e00\u6761\u4e00\u6761\u5730\u4eceRoM<\/u>\u4e2d\u53d6\u6307\u4ee4\uff0c\u7136\u540e\u4e00\u6b65\u4e00\u6b65\u5730\u6267\u884c\u3002\u5355\u7247\u673a\u8bbf\u95ee\u4e00\u6b21\u5b58\u50a8\u5668\u7684\u65f6\u95f4\uff0c\u79f0\u4e4b\u4e3a\u4e00\u4e2a\u673a\u5668\u5468\u671f\uff0c\u8fd9\u662f\u4e00\u4e2a\u65f6\u95f4\u57fa\u51c6\u3002<\/p>\n \n\t\u673a\u5668\u5468\u671f\u4e0d\u4ec5\u5bf9\u4e8e\u6307\u4ee4\u6267\u884c\u6709\u7740\u91cd\u8981\u7684\u610f\u4e49\uff0c\u800c\u4e14\u673a\u5668\u5468\u671f\u4e5f\u662f\u5355\u7247\u673a\u5b9a\u65f6\u5668<\/u>\u548c\u8ba1\u6570\u5668\u7684\u65f6\u95f4\u57fa\u51c6\u3002\u4f8b\u5982\u4e00\u4e2a\u5355\u7247\u673a\u9009\u62e9\u4e8612MHZ\u6676\u632f\uff0c\u90a3\u4e48\u5f53\u5b9a\u65f6\u5668\u7684\u6570\u503c\u52a01\u65f6\uff0c\u5b9e\u9645\u7ecf\u8fc7\u7684\u65f6\u95f4\u5c31\u662f1us\uff0c\u8fd9\u5c31\u662f\u5355\u7247\u673a\u7684\u5b9a\u65f6\u539f\u7406\u3002<\/p>\n \n\t\u4f46\u662f\u57288051F310\u4e2d\uff0cCIP-51 \u5fae\u63a7\u5236\u5668\u5185\u6838\u91c7\u7528\u6d41\u6c34\u7ebf\u7ed3\u6784\uff0c\u4e0e\u6807\u51c6\u7684 8051 \u7ed3\u6784\u76f8\u6bd4\u6307\u4ee4\u6267\u884c\u901f\u5ea6\u6709\u5f88\u5927\u7684\u63d0\u9ad8\u3002\u5728\u4e00\u4e2a\u6807\u51c6\u7684 8051 \u4e2d\uff0c\u9664 MUL\u548c DIV\u4ee5\u5916\u6240\u6709\u6307\u4ee4\u90fd\u9700\u8981 12 \u6216 24 \u4e2a\u7cfb\u7edf\u65f6\u949f\u5468\u671f\uff0c\u6700\u5927\u7cfb\u7edf\u65f6\u949f\u9891\u7387\u4e3a 12-24MHz\u3002\u800c\u5bf9\u4e8e CIP-51 \u5185\u6838\uff0c70%\u7684\u6307\u4ee4\u7684\u6267\u884c\u65f6\u95f4\u4e3a 1\u62162\u4e2a\u7cfb\u7edf\u65f6\u949f\u5468\u671f\uff0c\u53ea\u6709 4 \u6761\u6307\u4ee4\u7684\u6267\u884c\u65f6\u95f4\u5927\u4e8e 4 \u4e2a\u7cfb\u7edf\u65f6\u949f\u5468\u671f\u3002 \u6240\u4ee5\u5728\u8ba1\u7b97\u5b9a\u65f6\u5668\u7684\u503c\u65f6\u8981\u6ce8\u610f\u8fd9\u91cc\u7684\u53d8\u5316\u3002<\/p>\n \n\t\u6307\u4ee4\u5468\u671f\uff1a<\/p>\n \n\t\u6307\u4ee4\u5468\u671f\u662f\u6267\u884c\u4e00\u6761\u6307\u4ee4\u6240\u9700\u8981\u7684\u65f6\u95f4\uff0c\u4e00\u822c\u7531\u82e5\u5e72\u4e2a\u673a\u5668\u5468\u671f\u7ec4\u6210\u3002\u6307\u4ee4\u4e0d\u540c\uff0c\u6240\u9700\u7684\u673a\u5668\u5468\u671f\u6570\u4e5f\u4e0d\u540c\u3002\u5bf9\u4e8e\u4e00\u4e9b\u7b80\u5355\u7684\u7684\u5355\u5b57\u8282\u6307\u4ee4\uff0c\u5728\u53d6\u6307\u4ee4\u5468\u671f\u4e2d\uff0c\u6307\u4ee4\u53d6\u51fa\u5230\u6307\u4ee4\u5bc4\u5b58\u5668<\/u>\u540e\uff0c\u7acb\u5373\u8bd1\u7801\u6267\u884c\uff0c\u4e0d\u518d\u9700\u8981\u5176\u5b83\u7684\u673a\u5668\u5468\u671f\u3002\u5bf9\u4e8e\u4e00\u4e9b\u6bd4\u8f83\u590d\u6742\u7684\u6307\u4ee4\uff0c\u4f8b\u5982\u8f6c\u79fb\u6307\u4ee4\u3001\u4e58\u6cd5\u6307\u4ee4\uff0c\u5219\u9700\u8981\u4e24\u4e2a\u6216\u8005\u4e24\u4e2a\u4ee5\u4e0a\u7684\u673a\u5668\u5468\u671f\u3002<\/p>\n \n\t\u7cfb\u7edf\u65f6\u949f\uff1a<\/p>\n \n\t\u7cfb\u7edf\u65f6\u949f\uff1a\u7cfb\u7edf\u65f6\u949f\u5c31\u662fCPU<\/u>\u6307\u4ee4\u8fd0\u884c\u7684\u9891\u7387\uff0c\u8fd9\u4e2a\u624d\u662fCPU\u771f\u6b63\u7684\u9891\u7387\u3002<\/p>\n \n\t\u5355\u7247\u673a\u5185\u90e8\u6240\u6709\u5de5\u4f5c\uff0c\u90fd\u662f\u57fa\u4e8e\u7531\u6676\u632f\u4ea7\u751f\u7684\u540c\u4e00\u4e2a\u89e6\u53d1\u4fe1\u53f7\u6e90\uff0c\u7531\u8fd9\u4e2a\u4fe1\u53f7\u6765\u540c\u6b65\u534f\u8c03\u5de5\u4f5c\u6b65\u9aa4\uff0c\u6211\u4eec\u628a\u8fd9\u4e2a\u4fe1\u53f7\u79f0\u4e3a\u7cfb\u7edf\u65f6\u949f\uff0c\u7cfb\u7edf\u65f6\u949f\u4e00\u822c\u7531\u6676\u632f\u4ea7\u751f\uff0c\u4f46\u5728\u5355\u7247\u673a\u5185\u90e8\u7cfb\u7edf\u65f6\u949f\u4e0d\u4e00\u5b9a\u7b49\u4e8e\u6676\u632f\u9891\u7387\uff0c\u6709\u53ef\u80fd\u5c0f\u4e8e\u6676\u632f\u9891\u7387\uff0c\u4e5f\u6709\u53ef\u80fd\u5927\u4e8e\u6676\u632f\u9891\u7387\uff0c\u5177\u4f53\u662f\u591a\u5c11\u7531\u5355\u7247\u673a\u5185\u90e8\u7ed3\u6784\u51b3\u5b9a\uff0c\u6b63\u5e38\u60c5\u51b5\u548c\u6676\u632f\u9891\u7387\u4f1a\u5b58\u5728\u4e00\u4e2a\u6574\u6570\u500d\u5173\u7cfb\u3002\u7cfb\u7edf\u65f6\u79cd\u662f\u6574\u4e2a\u5355\u7247\u673a\u5de5\u4f5c\u8282\u594f\u7684\u57fa\u51c6\uff0c\u5b83\u6bcf\u632f\u8361\u4e00\u6b21\uff0c\u5355\u7247\u673a\u5c31\u88ab\u89e6\u53d1\u6267\u884c\u4e00\u6b21\u64cd\u4f5c\u3002<\/p>\n \n\t\u4e00\u822c\u6765\u8bf4,\u5355\u7247\u673a\u53ea\u6709\u4e00\u4e2a\u65f6\u949f\u6e90.\u7528\u4e86\u5916\u90e8\u6676\u632f,\u5c31\u4e0d\u7528\u5185\u90e8RC,\u7528\u4e86\u5185\u90e8RC,\u5c31\u4e0d\u7528\u5916\u90e8\u6676\u632f.\u632f\u8361\u5668<\/u>\u632f\u8361,\u4ea7\u751f\u5468\u671f\u6ce2.\u5355\u7247\u673a\u5728\u8fd9\u6837\u7684\u5468\u671f\u6ce2\u7684\u4f5c\u7528\u4e00\u4e0b\u6709\u89c4\u5f8b\u7684\u4e00\u62cd\u4e00\u62cd\u7684\u5de5\u4f5c,\u6ce2\u7684\u9891\u7387\u8d8a\u9ad8,\u5355\u7247\u5de5\u4f5c\u5f97\u5c31\u8d8a\u5feb,\u6ce2\u7684\u9891\u7387\u8d8a\u4f4e,\u5355\u7247\u673a\u5de5\u4f5c\u5f97\u5c31\u8d8a\u6162\u3002<\/p>\n \n\t\u6709\u4e86\u4ee5\u4e0a\u7684\u6982\u5ff5\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u6b63\u786e\u7684\u7406\u89e3\u5b9a\u65f6\u5668\u7684\u5de5\u4f5c\u539f\u7406\u4e86\uff0c\u57288051F310\u5355\u7247\u673a\u4e2d\uff0c\u67093\u4e2a\u5b9a\u65f6\u5668\uff0c\u5982\u679c\u5b9a\u65f6\u56681\u5de5\u4f5c\u5728\u6a21\u5f0f1\u4e0b\uff0c\u5982\u5de5\u4f5c\u6a21\u5f0f1\u4e0b\uff0c\u662f16\u4f4d\u7684\u8ba1\u65f6<\/u>\u5668\uff0c\u6700\u5927\u6570\u503c\u662f65535,\u5f53\u518d\u52a01\u65f6(=65536)\uff0c\u5c31\u4f1a\u53d1\u751f\u6ea2\u51fa\uff0c\u4ea7\u751f\u4e2d\u65ad\uff0c\u6240\u4ee5\u5982\u679c\u6211\u4eec\u8981\u5b83\u8ba11000\u4e2a\u6570\uff0c \u90a3\u4e48\u5b9a\u65f6\u521d\u503c\u5c31\u662f65536-1000\uff0c\u7ed3\u679c\u5c31\u662f64536\uff0c\u8fd9\u4e2a\u503c\u9001\u7ed9TH\u3001TL\uff0c\u56e0\u4e3a\u662f16\u8fdb\u5236\u7684\uff0c\u6240\u4ee5\u9ad8\u4f4d\u662f64536\/256\u53d6\u5546\uff0c\u4f4e\u4f4d\u662f64536%6\u53d6\u4f59\u3002<\/p>\n \n\t\u518d\u8005\uff0c\u5c31\u662f\u6bcf\u4e00\u8ba1\u6570\u7684\u65f6\u95f4\u662f\u591a\u4e45?\u4e00\u822c\u6211\u4eec\u53d612M\u6676\u632f\u65f6\uff0c\u4e00\u4e2a\u5468\u671f\u521a\u597d\u662f1us\uff0c\u8ba1\u65701000\u4e2a\u5c31\u662f1ms\uff0c\u8fd9\u662f\u56e0\u4e3a\u6807\u51c6\u768451\u5355\u7247\u673a\u662f12\u65f6\u949f\u5468\u671f\u7684(STC\u67096\u65f6\u949f\u548c1\u65f6\u949f\u65b9\u5f0f)\u3002\u90a3\u4e48\uff0c\u5982\u679c\u6211\u4eec\u6676\u632f\u662f12M\uff0c\u5c31\u6bd4\u8f83\u597d\u7b97\uff0c\u5982\u679c\u662f\u5176\u5b83\u7684\uff0c\u5c31\u752812\u53bb\u9664\u597d\u4e86\u3002\u6bd4\u5982\u662f6M\u7684\uff0c\u90a3\u4e48\u5c31\u662f12\/6=2\uff0c\u6bcf\u4e2a\u8ba1\u6570\u662f2us\uff0c\u90a3\u4e48\u4f60\u8981\u5b9a\u65f61ms\u5c31\u53ea\u8981\u8ba1\u6570500\u4e2a\u5373\u53ef\u4ee5\u3002<\/p>\n \n\t\u5b9a\u65f6\u5668\u7684\u521d\u503c\u8ddf\u5b9a\u65f6\u5668\u7684\u5de5\u4f5c\u65b9\u5f0f\uff0c\u8ddf\u6676\u632f\u9891\u7387\u90fd\u6709\u5173\u7cfb\u3002\u4e00\u4e2a\u673a\u5668\u5468\u671fTcy=\u6676\u632f\u9891\u7387X12\uff0c\u8ba1\u6570\u6b21\u6570N=\u5b9a\u65f6\u65f6\u95f4t\/\u673a\u5668\u5468\u671fTcy\uff0c\u90a3\u4e48\u521d\u503c\u5c31X=65536-N\uff0c\u5f97\u51fa\u7684\u6570\u5316\u6210\u5341\u516d\u8fdb\u5236\u5c31\u884c\u4e86\u3002\u8fd9\u91cc\u662f\u7528\u5b9a\u65f6\u5668O\u5de5\u4f5c\u65b9\u5f0f1\u505a\u4f8b\u5b50\uff0c\u5982\u679c\u662f\u5176\u5b83\u5de5\u4f5c\u65b9\u5f0f\uff0c\u5c31\u4e0d\u80fd\u662f65535\u4e86\u3002\u5de5\u4f5c\u65b9\u5f0f0\u662f8192\uff0c\u65b9\u5f0f2\uff0c3\u662f256\u3002\u8fd9\u91cc\u6709\u4e00\u4e2a\u516c\u5f0f\uff1a<\/p>\n \n\tTH=(65536-ti<\/u>me\/(12\/ft))\/256<\/p>\n \n\t\u5176\u4e2d\uff0cTIme\u5c31\u662f\u8981\u5ef6\u65f6\u7684100ms(\u8981\u53d6100000us)\uff0cft\u662f\u6676\u632f\u9891\u7387\u3002\u8fd9\u4e2a\u5f0f\u5b50\u53c8\u53ef\u4ee5\u7b80\u5316\u6210<\/p>\n \n\tTH=(65536-TIme*ft\/12)\/256<\/p>\n \n\tTL=(65536-TIme*ft\/12)%6<\/p>\n \n\t\u5728\u4e00\u672c\u4e66\u4e0a\u8fd8\u770b\u5230\u4e86\u8fd9\u6837\u8ba1\u7b97\u5b9a\u65f6\u521d\u503c\u7684\uff1a<\/p>\n \n\tTH0=-(50235\/256); \/\/\u91cd\u88c5100ms\u5b9a\u65f6\u521d\u503c<\/p>\n \n\tTL0=-(50235%6); \/\/\/\u8fd9\u91cc\u4f7f\u7528\u76846M\u6676\u4f53<\/u>\uff0c<\/p>\n \n\t\u8fd9\u91cc\u662f6M\u6676\u4f53\uff0c\u5ef6\u65f6100ms\uff0c\u90a3\u4e48\u6309\u4e0a\u9762\u8bb2\u7684\u539f\u7406\uff0c6M\u662f\u6bcf\u4e2a\u8ba1\u6570\u4e3a2us\uff0c100ms\u5b9a\u65f6\u5c31\u662f\u8ba1\u657050000\u4e2a\u3002<\/p>\n \n\t\u90a3\u4e48\uff0c\u5b9a\u65f6\u5668\u521d\u503c\u8981 65536-50000=15536\uff0c\u8f6c\u621016\u8fdb\u662f3CB0\u3002\u8fd9\u5c31\u662f\u8981\u9001\u7ed9TH(=3C) \u548cTL(=B0)\u7684\u503c\u3002<\/p>\n \n\t\u7a0b\u5e8f\u4e2d\u5199 TH0=-(50235\/256);\u5176\u5b9e\u5b83\u662f\u8fd9\u6837\u7684TH0=0x100-(50235\/256); \u572851\u4e2d\uff0c\u53d6\u8d1f\u6570\uff0c\u5176\u7ed3\u679c\u5c31\u662f\u5b83\u7684\u503c\u53d6\u53cd+1\uff0c\u4e5f\u53ef\u4ee5\u75280x100(\u5341\u8fdb\u5236\u7684256)\u53bb\u51cf\uff0c\u7ed3\u679c\u662f\u591a\u5c11\u5462?\u7ed3\u679c\u5c31\u662f3C\u3002<\/p>\n \n\t\u4ee5STM32<\/u>F103\u4e3a\u4f8b\uff0c\u8fdb\u884c\u89e3\u6790<\/p>\n \n\tSTM32\u7684TIM\u4e00\u822c\u6709\u9ad8\u7ea7\u5b9a\u65f6\u5668TIM1\uff0c(TIM8\u53ea\u6709\u5728\u4e92\u8054\u6027\u4ea7\u54c1\u6709)\uff0c\u666e\u901a\u5b9a\u65f6\u5668TIM2\uff0cTIM3\uff0cTIM4\uff0c(TIM5\uff0cTIM6\uff0cTIM7\u6709\u70b9\u8bbe\u5907\u4e2d\u6ca1\u6709)\uff1b\u4eca\u5929\u5c31\u53ea\u4ecb\u7ecd\u666e\u901a\u5b9a\u65f6\u5668\uff0c\u56e0\u4e3a\u9ad8\u7ea7\u5b9a\u65f6\u5668\u6211\u8fd8\u4e0d\u4f1a\uff01\u6bcf\u4e00\u4e2a\u666e\u901a\u5b9a\u65f6\u5668\u90fd\u67094\u8def\u901a\u9053\uff01<\/p>\n \n\t<\/p>\n \n\t\u6211\u4eec\u5148\u770b\u770b\u8fd9\u4e2a\u903b\u8f91\u56fe\u5427\uff01\u6211\u4eec\u4eca\u5929\u5148\u8ba8\u8bba\u8ba8\u8bba\u5b9a\u65f6\u5668\u7684\u95ee\u9898\uff01\u6211\u7528\u7ea2\u8272\u7b14\u6807\u8fc7\u7684\u8def\u7ebf\u5c31\u662f\u5b9a\u65f6\u5668\u7684\u5de5\u4f5c\u8def\u7ebf\uff0c\u65f6\u949f\u6709\u5185\u90e8\u65f6\u949f\u4ea7\u751f\uff0c\u5230PSC\u54ea\u91cc\u8fdb\u884c\u5206\u9891\u5904\u7406\uff0c\u7136\u540eCNT\u8fdb\u884c\u8ba1\u6570\uff0c\u4e0a\u9762\u8fd8\u6709\u4e00\u4e2a\u81ea\u52a8\u91cd\u88c5\u8f7d\u5bc4\u5b58\u5668APP\u3002<\/p>\n \n\t<\/p>\n \n\t\u8fd9\u4e2a\u662f\u5206\u9891\u5668\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\uff0c\u5206\u9891\u5668\u8bbe\u5b9a\u4e4b\u524d\u5206\u9891\u7cfb\u6570\u4e3a1[1]\uff0c\u540e\u9762\u7684[2][3][4]\u5206\u9891\u7cfb\u6570\u4e3a2\uff0c\u5206\u9891\u7cfb\u6570\u6539\u53d8\u540e\uff0c\u8ba1\u6570\u5468\u671f\u4e5f\u8ddf\u7740\u6539\u53d8\u4e86\uff1b\u540c\u65f6\u9884\u5206\u9891\u8bbe\u7f6e\u751f\u6548\u65f6\uff0c\u4ed6\u8fd8\u4f1a\u4ea7\u751f\u4e00\u4e2a\u4e2d\u65ad\u4fe1\u53f7\uff0c\u8fd9\u4e2a\u4e2d\u65ad\u4fe1\u53f7\u4e0d\u8981\u7ba1\u4ed6\uff0c\u4e00\u4e2a\u7cfb\u7edf\u65f6\u949f\u5468\u671f\u540e\u4f1a\u81ea\u52a8\u6d88\u5931\uff0c\u8ddfI2C<\/u>\u7684\u5dee\u4e0d\u591a\uff01<\/p>\n \n\t<\/p>\n \n\t\u8fd9\u4e2a\u662f\u8ba1\u6570\u8fc7\u7a0b\uff0c\u4e0a\u9762\u8bf4\u8fc7\u4e86\uff0c\u8ba1\u6570\u8ddf\u5206\u9891\u540e\u7684\u5468\u671f\u6709\u5173\uff1b\u5f53\u8ba1\u6570\u8fbe\u5230\u88c5\u8f7d\u7684\u6570\u503c\u4e4b\u540e\uff0c\u7cfb\u7edf\u4f1a\u4ea7\u751f\u4e00\u4e2a\u4e09\u4e2a\u4fe1\u53f7\uff0c\u5176\u4e2d\u6ea2\u51fa\u4fe1\u53f7\u548c\u66f4\u65b0\u4e8b\u4ef6\u4e00\u4e2a\u65f6\u949f\u5468\u671f\u540e\u4f1a\u81ea\u52a8\u6d88\u5931\uff0c\u800c\u8fd9\u65f6\u5019\u89e6\u53d1\u4e86\u66f4\u65b0\u4e2d\u65ad\u6807\u5fd7\u4f4dUIF<\/u>\uff0c\u6211\u4eec\u53ef\u4ee5\u7528\u8fd9\u4e2aUPDATE<\/u>\u6765\u505a\u5b9a\u65f6\u5668\u7684\u4e2d\u65ad\u6807\u5fd7\u4fe1\u53f7\uff01<\/p>\n \n\tTIM_ITConfig(TIM2, TIM_IT_UPDATE, ENABLE);<\/p>\n \n\tstm32f103xx\u5668\u4ef6\u529f\u80fd\u4e0e\u914d\u7f6e<\/p>\n \n\t<\/p>\n \n\t3\u3001stm32f103zet6 \u5b9a\u65f6\u5668<\/p>\n \n\t\u5927\u5bb9\u91cf\u7684STM32F103XX\u589e\u5f3a\u578b\u7cfb\u5217\u4ea7\u54c1\u5305\u542b\u6700\u591a2\u4e2a\u9ad8\u7ea7\u63a7\u5236\u5b9a\u65f6\u5668\u30014\u4e2a\u666e\u901a\u5b9a\u65f6\u5668\u548c2\u4e2a\u57fa\u672c\u5b9a\u65f6\u5668\uff0c\u4ee5\u53ca2\u4e2a\u770b\u95e8\u72d7<\/u>\u5b9a\u65f6\u5668\u548c1\u4e2a\u7cfb\u7edf\u5600\u55d2\u5b9a\u65f6\u5668\u3002<\/p>\n \n\t\u4e0b\u8868\u6bd4\u8f83\u4e86\u9ad8\u7ea7\u63a7\u5236\u5b9a\u65f6\u5668\u3001\u666e\u901a\u5b9a\u65f6\u5668\u548c\u57fa\u672c\u5b9a\u65f6\u5668\u7684\u529f\u80fd\uff1a<\/p>\n \n\t\u5b9a\u65f6\u5668\u529f\u80fd\u6bd4\u8f83<\/p>\n \n\t<\/p>\n \n\t1\uff09\u8ba1\u6570\u5668\u4e09\u79cd\u8ba1\u6570\u6a21\u5f0f<\/p>\n \n\t\u5411\u4e0a\u8ba1\u6570\u6a21\u5f0f\uff1a\u4ece0\u5f00\u59cb\uff0c\u8ba1\u5230arr\u9884\u8bbe\u503c\uff0c\u4ea7\u751f\u6ea2\u51fa\u4e8b\u4ef6\uff0c\u8fd4\u56de\u91cd\u65b0\u8ba1\u65f6<\/p>\n \n\t\u5411\u4e0b\u8ba1\u6570\u6a21\u5f0f\uff1a\u4ecearr\u9884\u8bbe\u503c\u5f00\u59cb\uff0c\u8ba1\u52300\uff0c\u4ea7\u751f\u6ea2\u51fa\u4e8b\u4ef6\uff0c\u8fd4\u56de\u91cd\u65b0\u8ba1\u65f6<\/p>\n \n\t\u4e2d\u592e\u5bf9\u9f50\u6a21\u5f0f\uff1a\u4ece0\u5f00\u59cb\u5411\u4e0a\u8ba1\u6570\uff0c\u8ba1\u5230arr\u4ea7\u751f\u6ea2\u51fa\u4e8b\u4ef6\uff0c\u7136\u540e\u5411\u4e0b\u8ba1\u6570\uff0c\u8ba1\u6570\u52301\u4ee5\u540e\uff0c\u53c8\u4ea7\u751f\u6ea2\u51fa\uff0c\u7136\u540e\u518d\u4ece0\u5f00\u59cb\u5411\u4e0a\u8ba1\u6570\u3002\uff08\u6b64\u79cd\u6280\u672f\u65b9\u6cd5\u4e5f\u53ef\u53eb\u5411\u4e0a\/\u5411\u4e0b\u8ba1\u6570\uff09<\/p>\n \n\t2\uff09\u9ad8\u7ea7\u63a7\u5236\u5b9a\u65f6\u5668\uff08TIM1\u548cTIM8\uff09<\/p>\n \n\t\u4e24\u4e2a\u9ad8\u7ea7\u63a7\u5236\u5b9a\u65f6\u5668\uff08TIM1\u548cTIM8\uff09\u53ef\u4ee5\u88ab\u770b\u6210\u662f\u5206\u914d\u52306\u4e2a\u901a\u7684\u4e09\u4e09\u76f8PWM\u53d1\u751f\u5668\uff0c\u5b83\u5177\u6709\u5e26\u6b7b\u533a\u63d2\u5165\u7684\u4e92\u8865PWM\u8f93\u51fa\uff0c\u8fd8\u53ef\u4ee5\u88ab\u5f53\u6210\u5b8c\u6574\u7684\u901a\u7528\u5b9a\u65f6\u5668\u3002\u56db\u4e2a\u72ec\u7acb\u7684\u901a\u9053\u53ef\u4ee5\u7528\u4e8e\uff1a<\/p>\n \n\t\uff081\uff09\u8f93\u5165\u6355\u83b7<\/p>\n \n\t\uff082\uff09\u8f93\u51fa\u6bd4\u8f83<\/p>\n \n\t\uff083\uff09\u4ea7\u751fPWM\uff08\u8fb9\u7f18\u6216\u4e2d\u5fc3\u5bf9\u9f50\u6a21\u5f0f\uff09<\/p>\n \n\t\uff084\uff09\u5355\u8109\u51b2\u8f93\u51fa<\/p>\n \n\t\u914d\u7f6e\u4e3a16\u4f4d\u6807\u51c6\u5b9a\u65f6\u5668\u65f6\uff0c\u5b83\u4e0eTIMX\u5b9a\u65f6\u5668\u5177\u6709\u76f8\u540c\u7684\u529f\u80fd\u3002\u914d\u7f6e\u4e3a16\u4f4dPWM\u53d1\u751f\u5668\u65f6\uff0c\u5b83\u5177\u6709\u5168\u8c03\u5236\u80fd\u529b\uff080~100%\uff09\u3002\u5728\u8c03\u8bd5\u6a21\u5f0f\u4e0b\uff0c\u8ba1\u6570\u5668\u53ef\u4ee5\u88ab\u51bb\u7ed3\uff0c\u540c\u65f6PWM\u8f93\u51fa\u88ab\u7981\u6b62\uff0c\u4ece\u800c\u5207\u65ad\u7531\u8fd9\u4e9b\u8f93\u51fa\u6240\u63a7\u5236\u7684\u5f00\u5173<\/u>\u3002\u5f88\u591a\u529f\u80fd\u90fd\u4e0e\u6807\u51c6\u7684TIM\u5b9a\u65f6\u5668\u76f8\u540c\uff0c\u5185\u90e8\u7ed3\u6784\u4e5f\u76f8\u540c\uff0c\u56e0\u6b64\u9ad8\u7ea7\u63a7\u5236\u5b9a\u65f6\u5668\u53ef\u4ee5\u901a\u8fc7\u5b9a\u65f6\u5668\u94fe\u63a5\u529f\u80fd\u4e0eTIM\u5b9a\u65f6\u5668\u534f\u540c\u64cd\u4f5c\uff0c\u63d0\u4f9b\u6b65\u6216\u4e8b\u4ef6\u94fe\u63a5\u529f\u80fd\u3002<\/p>\n \n\t3\uff09\u901a\u7528\u5b9a\u65f6\u5668\uff08TlMx\uff09<\/p>\n \n\tSTM32F103XC\u3001STM32F103XD\u548cSTM32F103XE\u589e\u5f3a\u578b\u7cfb\u5217\u4ea7\u54c1\u4e2d\uff0c\u5185\u7f6e\u4e86\u591a\u8fbe4 \u4e2a\u53ef\u540c\u6b65\u8fd0\u884c\u7684\u6807\u51c6\u5b9a\u65f6\u5668\uff08TIM2\u3001TIM3\u3001TIM4\u548cTIM5\uff09\u3002\u6bcf\u4e2a\u5b9a\u65f6\u5668\u90fd\u6709\u4e00\u4e2a16\u4f4d\u7684\u81ea\u52a8\u52a0\u8f7d\u9012\u52a0\/\u9012\u51cf\u8ba1\u6570\u5668\u3001\u4e00\u4e2a16\u4f4d\u7684\u9884\u5206\u9891\u5668\u548c4\u4e2a\u72ec\u7acb\u7684\u901a\u9053\uff0c\u6bcf\u4e2a\u901a\u9053\u90fd\u53ef\u7528\u4e8e\u8f93\u5165\u6355\u83b7\u3001\u8f93\u51fa\u6bd4\u8f83\u3001PWM\u548c\u5355\u8109\u51b2\u6a21\u5f0f\u8f93\u51fa\uff0c\u5728\u6700\u5927\u7684\u5c01\u88c5\u914d\u7f6e\u4e2d\u53ef\u63d0\u4f9b\u6700\u591a16\u4e2a\u8f93\u5165\u6355\u83b7\u3001\u8f93\u51fa\u6bd4\u8f83\u6216PWM\u901a\u9053\u3002\u5b83\u4eec\u8fd8\u80fd\u901a\u8fc7\u5b9a\u65f6\u5668\u94fe\u63a5\u529f\u80fd\u4e0e\u9ad8\u7ea7\u63a7\u5236\u5b9a\u65f6\u5668\u5171\u540c\u5de5\u4f5c\uff0c\u63d0\u4f9b\u540c\u6b65\u6216\u4e8b\u4ef6\u94fe\u63a5\u529f\u80fd\u3002\u5728\u8c03\u8bd5\u6a21\u5f0f\u4e0b\uff0c\u8ba1\u6570\u5668\u53ef\u4ee5\u88ab\u51bb\u7ed3\u3002\u4efb\u4e00\u6807\u51c6\u5b9a\u65f6\u5668\u90fd\u80fd\u7528\u4e8e\u4ea7\u751f\uff1aPWM\u8f93\u51fa\u3002\u6bcf\u4e2a\u5b9a\u65f6\u5668\u90fd\u6709\u72ec\u7acb\u7684DMA<\/u>\u8bf7\u6c42\u673a\u5236\u3002<\/p>\n \n\t\u8fd9\u4e9b\u5b9a\u65f6\u5668\u8fd8\u80fd\u591f\u5904\u7406\u589e\u91cf\u7f16\u7801\u5668<\/u>\u7684\u4fe1\u53f7\uff0c\u4e5f\u80fd\u5904\u74061\u81f33\u4e2a\u970d\u5c14\u4f20\u611f\u5668<\/u>\u7684\u6570\u5b57\u8f93\u51fa\u3002<\/p>\n \n\t4\uff09\u57fa\u672c\u5b9a\u65f6\u5668-TlM6\u548cTIM7<\/p>\n \n\t\u8fd92\u4e2a\u5b9a\u65f6\u5668\u4e3b\u8981\u662f\u7528\u4e8e\u4ea7\u751f\uff1aDAC<\/u>\u89e6\u53d1\u4fe1\u53f7\uff0c\u4e5f\u53ef\u5f53\u6210\u901a\u7528\u768416\u4f4d\u65f6\u57fa\u8ba1\u6570\u5668\u3002\u72ec\u7acb\u770b\u95e8 \u72d7\u72ec\u7acb\u7684\u770b\u95e8\u72d7\u662f\u57fa\u4e8e\u4e00\u4e2a12\u4f4d\u7684\u9012\u51cf\u8ba1\u6570\u5668\u548c\u4e00\u4e2a8\u4f4d\u7684\u9884\u5206\u9891\u5668\uff0c\u5b83\u7531\u4e00\u4e2a\u5185\u90e8\u72ec\u7acb\u768440kHz\u7684RC\u632f\u8361\u5668\u63d0\u4f9b\u65f6\u949f; \u56e0\u4e3a\u8fd9\u4e2aRC\u632f\u8361\u5668\u72ec\u7acb\u4e8e\u4e3b\u65f6\u949f\uff0c\u6240\u4ee5\u5b83\u53ef\u8fd0\u884c\u4e8e\u505c\u673a\u548c\u5f85\u673a\u6a21\u5f0f\u3002\u5b83\u53ef\u4ee5\u88ab\u5f53\u6210\u770b\u95e8\u72d7\u7528\u4e8e\u5728\u53d1\u751f\u95ee\u9898\u65f6\u590d\u4f4d\u6574\u4e2a\u7cfb\u7edf\uff0c\u6216\u4f5c\u4e3a\u4e00\u4e2a\u81ea\u7531\u5b9a\u65f6\u5668\u4e3a\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u8d85\u65f6\u7ba1\u7406\u3002\u901a\u8fc7\u9009\u9879\u5b57\u8282\u53ef\u4ee5\u914d\u7f6e\u6210\u662f\u8f6f\u4ef6\u6216\u786c\u4ef6\u542f\u52a8\u770b\u95e8\u72d7\u3002\u5728\u8c03\u8bd5\u6a21\u5f0f\u4e0b\uff0c\u8ba1\u6570\u5668\u53ef\u4ee5\u88ab\u51bb\u7ed3\u3002<\/p>\n \n\t5\uff09\u7a97\u53e3\u770b\u95e8\u72d7<\/p>\n \n\t\u7a97\u53e3\u770b\u95e8\u72d7\u5185\u6709\u4e00\u4e2a7\u4f4d\u7684\u9012\u51cf\u8ba1\u6570\u5668\uff0c\u5e76\u53ef\u4ee5\u8bbe\u7f6e\u6210\u81ea\u7531\u8fd0\u884c\u3002\u5b83\u53ef\u4ee5\u88ab\u5f53\u6210\u770b\u95e8\u72d7\u7528\u4e8e\u5728\u53d1\u751f\u95ee\u9898\u65f6\u590d\u4f4d\u6574\u4e2a\u7cfb\u7edf\u3002\u5b83\u7531\u4e3b\u65f6\u949f\u9a71\u52a8\uff0c\u5177\u6709\u65e9\u671f\u9884\u8b66\u4e2d\u65ad\u529f\u80fd; \u5728\u8c03\u8bd5\u6a21\u5f0f\u4e0b\uff0c\u8ba1\u6570\u5668\u53ef\u4ee5\u88ab\u51bb\u7ed3\u3002<\/p>\n \n\t6\uff09\u7cfb\u7edf\u65f6\u57fa\u5b9a\u65f6\u5668<\/p>\n \n\t\u8fd9\u4e2a\u5b9a\u65f6\u5668\u662f\u4e13\u7528\u4e8e\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4e5f\u53ef\u5f53\u6210\u4e00\u4e2a\u6807\u51c6\u7684\u9012\u51cf\u8ba1\u6570\u5668\u3002\u5b83\u5177\u6709\u4e0b\u8ff0\u7279\u6027\uff1a<\/p>\n \n\t\uff081\uff0924\u4f4d\u7684\u9012\u51cf\u8ba1\u6570\u5668<\/p>\n \n\t\uff082\uff09\u81ea\u52a8\u91cd\u52a0\u8f7d\u529f\u80fd<\/p>\n \n\t\uff083\uff09\u5f53\u8ba1\u6570\u5668\u4e3a0\u65f6\u80fd\u4ea7\u751f\u4e00\u4e2a\u53ef\u5c4f\u853d\u7cfb\u7edf\u4e2d\u65ad<\/p>\n \n\t\uff084\uff09\u53ef\u7f16\u7a0b\u65f6\u949f\u6e90<\/p>\n \n\t7\uff09\u901a\u7528\u5b9a\u65f6\u5668\u7684\u65f6\u949f\u6765\u6e90;<\/p>\n \n\ta\uff1a\u5185\u90e8\u65f6\u949f\uff08CK_INT\uff09<\/p>\n \n\tb\uff1a\u5916\u90e8\u65f6\u949f\u6a21\u5f0f1\uff1a\u5916\u90e8\u8f93\u5165\u811a\uff08TIx\uff09<\/p>\n \n\tc\uff1a\u5916\u90e8\u65f6\u949f\u6a21\u5f0f2\uff1a\u5916\u90e8\u89e6\u53d1\u8f93\u5165\uff08ETR\uff09<\/p>\n \n\td\uff1a\u5185\u90e8\u89e6\u53d1\u8f93\u5165\uff08ITRx\uff09\uff1a\u4f7f\u7528\u4e00\u4e2a\u5b9a\u65f6\u5668\u4f5c\u4e3a\u53e6\u4e00\u4e2a\u5b9a\u65f6\u5668\u7684\u9884\u5206\u9891\u5668<\/p>\n \n\t8\uff09\u901a\u7528\u5b9a\u65f6\u671f\u5185\u90e8\u65f6\u949f\u7684\u4ea7\u751f\uff1a<\/p>\n \n\t\u4ece\u622a\u56fe\u53ef\u4ee5\u770b\u5230\u901a\u7528\u5b9a\u65f6\u5668\uff08TIM2-7\uff09\u7684\u65f6\u949f\u4e0d\u662f\u76f4\u63a5\u6765\u81eaAPB1\uff0c\u800c\u662f\u901a\u8fc7APB1\u7684\u9884\u5206\u9891\u5668\u4ee5\u540e\u624d\u5230\u8fbe\u5b9a\u65f6\u5668\u6a21\u5757\u3002<\/p>\n \n\t\u5f53APB1\u7684\u9884\u5206\u9891\u5668\u7cfb\u6570\u4e3a1\u65f6\uff0c\u8fd9\u4e2a\u500d\u9891\u5668\u5c31\u4e0d\u8d77\u4f5c\u7528\u4e86\uff0c\u5b9a\u65f6\u5668\u7684\u65f6\u949f\u9891\u7387\u7b49\u4e8eAPB1\u7684\u9891\u7387\uff1b<\/p>\n \n\t\u5f53APB1\u7684\u9884\u5206\u9891\u7cfb\u6570\u4e3a\u5176\u5b83\u6570\u503c\uff08\u5373\u9884\u5206\u9891\u7cfb\u6570\u4e3a2\u30014\u30018\u621616\uff09\u65f6\uff0c\u8fd9\u4e2a\u500d\u9891\u5668\u8d77\u4f5c\u7528\uff0c\u5b9a\u65f6\u5668\u7684\u65f6\u949f\u9891\u7387\u7b49\u4e8eAPB1\u65f6\u949f\u9891\u7387\u7684\u4e24\u500d\u3002<\/p>\n \n\t<\/p>\n \n\t\u8fd9\u91cc\u8981\u5206\u6790\u4e00\u4e0b\u51e0\u4e2a\u6982\u5ff5\uff0c\u4e5f\u662f\u7406\u89e3\u5b9a\u65f6\u5668\u7684\u529f\u80fd\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u901a\u7528\u5b9a\u65f6\u5668\u6709\u4e9b\u7c7b\u4f3c\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b9a\u65f6\u5668\u8282\u62cd\uff0c\u53ef\u4ee5\u5728\u5b9a\u65f6\u5668\u91c7\u7528\u7684\u65f6\u949f\u6e90\u7684\u57fa\u7840\u4e0a\u518d\u8fdb\u884c\u5206\u9891\uff0c\u7136\u540e\u518d\u8bbe\u5b9a\u6ea2\u51fa\u5927\u5c0f\uff0c\u8fdb\u800c\u5b9e\u73b0\u5b9a\u65f6\u7684\u529f\u80fd\uff0c\u5f53\u7136\u81ea\u52a8\u91cd\u8f7d\u529f\u80fd\u66f4\u4e0d\u518d\u8bdd\u4e0b\u3002<\/p>\n \n\t\u9884\u5206\u9891\u7684\u529f\u80fd\u662f\u4f7f\u5b9a\u65f6\u5668\u5728APB\u65f6\u949f\u7684\u57fa\u7840\u4e0a\u518d\u4e00\u6b21\u5206\u9891\uff0c\u4f7f\u5176\u72ec\u7acb\u7684\u8fd0\u884c\u3002\u5c31\u50cf\u4e0a\u8ff0\u4ee3\u7801\u4e2d\u4e3e\u4f8b\uff0c\u9884\u5206\u9891\u7cfb\u6570\u8bbe\u5b9a\u4e3a36000-1\uff0c\u5219\u8868\u793a\u8be5\u5b9a\u65f6\u5668\u7684 \u65f6\u949f\u9891\u7387\u5c31\u53d8\u6210\u4e8672MHz\/36000 = 2KHz\uff0c\u800c“\u8ba1\u6570\u6ea2\u51fa\u5927\u5c0f”\u53ef\u4ee5\u7406\u89e3\u4e3a\u81ea\u52a8\u88c5\u8f7d\u6570\u503c\uff0c\u8868\u793a\u6bcf\u9694x\u4e2a\u8ba1\u6570\u6ea2\u51fa\u4e00\u6b21\uff0c\u53ef\u4ee5\u4ea7\u751f1\u6b21\u4e2d\u65ad\uff0c\u5f53\u7136\u8fd9\u4e2a\u9891\u7387\u662f\u7ecf\u8fc7\u9884\u5206\u9891\u540e\u7684\u9891\u7387\u3002<\/p>\n \n\t\u6240\u4ee5\u4ece\u4e0a\u8ff0\u7684\u5206\u6790\u53ef\u77e5\uff0c\u5b9a\u65f6\u5668\u7684\u5b9a\u65f6\u65f6\u95f4\u8ba1\u7b97\u4e3a\uff1a<\/p>\n \n\tTout = (TIM_Period+1)*(TIM_Prescaler+1)\/72000000<\/p>\n \n\t\u5728\u672c\u7a0b\u5e8f\u6848\u4f8b\u4e2d\uff1aTout= 2000*36000\/72000000=1s<\/p>\n \n\t\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u516c\u5f0f\u4e2d\u768472000000\u7684\u4f7f\u7528\uff0c\u662f\u56e0\u4e3a\u8be5\u5b9a\u65f6\u5668\u91c7\u7528\u7684\u65f6\u949f\u6e90\u4e3a72MHz\uff0c\u5982\u679c\u914d\u7f6e\u6210\u522b\u7684\u65f6\u949f\u6e90\uff0c\u5219\u76f8\u5e94\u516c\u5f0f\u4e5f\u5e94\u8be5\u6539\u53d8\u3002<\/p>\n \n\t\u53e6\u5916TIM_ClockDivision\u4e3a\u65f6\u949f\u5206\u5272\uff0c\u8fd9\u4e2a\u7b80\u5355\u7684\u8bb2\uff0c\u5c31\u662f\u5b9a\u65f6\u5668\u7684\u6570\u5b57\u6ee4\u6ce2\u529f\u80fd\uff0c\u8bbe\u7f6e\u6210\u9ed8\u8ba4\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u65f6\u949f \u5468\u671f\uff1a \u65f6\u949f\u5468\u671f\u4e5f\u53eb\u632f\u8361\u5468\u671f\u6216 \u6676\u632f \u5468\u671f\uff0c\u5373\u6676\u632f\u7684\u5355\u4f4d\u65f6\u95f4\u53d1\u51fa\u7684\u8109\u51b2\u6570\uff0c\u4e00\u822c\u6709\u5916\u90e8\u7684\u632f\u6676\u4ea7\u751f\uff0c\u6bd4\u598212MHZ=1210\u76846\u6b21\u65b9\uff0c\u5373\u6bcf\u79d2\u53d1\u51fa12000000\u4e2a\u8109\u51b2\u4fe1\u53f7\uff0c\u90a3\u4e48\u53d1\u51fa\u4e00\u4e2a\u8109\u51b2\u7684<\/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\/2737"}],"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=2737"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2737\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2737"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}