\u5355\u7247\u673a\u6211\u60f3\u7528T0\u5b9a\u65f6\u5668\u5b9a\u65f61s\uff0c\u7528T1\u8ba1\u6570\u5668\u6765\u8ba1\u7b971s\u65f6\u95f4\u5185\u7684\u65b9\u6ce2\u6570\uff0c\u5b9a\u65f6\u5668\u91c7\u7528\u4e2d\u65ad\u65b9\u5f0f\u3002\u5faa\u73af\u83b7\u53d6
\u30101\u3011\u5faa\u73af\u83b7\u53d6\u662f\u5426\u6307\u4ece\u5f53\u524d\u65f6\u523b\u7b97\u8d77\uff0c\u524d\u4e00\u79d2\u5185T1\u8ba1\u5f97\u7684\u65b9\u6ce2\u6570\u3002
\u30102\u3011\u8fd9\u91cc\u7f3a\u5c11\u4e00\u4e2a\u53c2\u6570\uff0c\u5c31\u662f\u5faa\u73af\u83b7\u53d6\u7684\u91c7\u6837\u5468\u671ft\uff08S\uff09\uff0c\u59820.1S\u3002
\u30103\u3011\u6839\u636et\uff0c\u8bbe\u5b9aT0\u4e2d\u65ad\u3002\u603b\u5171\u5e94\u8be5\u67091/t\u4e2a\u91c7\u6837\u7247\u6bb5PulseNum[1/t]\uff0c\u6bcf\u6b21T0\u4e2d\u65ad\uff0c\u586b\u5145PulseNum[i++%(1/t)]\u3002\u5e76\u6e05\u9664T1\u521d\u503c\u3002
\u30104\u3011\u4e3b\u7a0b\u5e8f\u6c42\u548cPulseNum[1/t]\u5373\u53ef\u3002
\u30105\u3011\u6ce8\u610fT1\u6ea2\u51fa\u91cf\u7a0b\u3002
\u65b9\u6cd5\u4e00\uff1a
\u53ea\u5f00T1\u5b9a\u65f6\u5668\u4e2d\u65ad\uff0c\u5728T1\u5b9a\u65f6\u5668\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u4e2d\u5bf9\uff08TH0 TL0\uff09\u505a\u52a0\u4e00\u8fd0\u7b97\u3002
\u65b9\u6cd5\u4e8c\uff1a
T1\u5b9a\u65f6\u5668\u6a21\u5f0f\uff0cT0\u8ba1\u6570\u5668\u6a21\u5f0f\uff0c\u5728T1\u5b9a\u65f6\u5668\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u4e2d\u5bf9\u67d0\u4e00\u56fa\u5b9a\u5f15\u811aPx.x\u505a\u201c\u7f6e1-\u6e050-\u7f6e1\u201d\u64cd\u4f5c\uff0c\u5e76\u5c06\u5bf9\u5e94\u5f15\u811a\u8fde\u63a5\u5728T0\uff08P3.4\uff09\u5f15\u811a\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0bT0\u4e2d\u65ad\u6bd4T1\u4e2d\u65ad\u6743\u9650\u9ad8\uff0c\u6bcf\u6b21\u5b9a\u65f6\u5668T1\u6ea2\u51fa\u540e\uff0c\u4f1a\u5728\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u5185\u5bf9\u5f15\u811aPx.x\u8fdb\u884c\u201c\u7f6e1-\u6e050-\u7f6e1\u201d\uff0c\u8fc7\u7a0b\u4e2d1\u52300\u7684\u4e0b\u964d\u6cbf\u8df3\u53d8\u4f1a\u5f15\u8d77\uff08TH0 TL0\uff09\u52a0\u4e00\uff1b\u76f4\u5230\u8ba1\u6570\u5668T0\u6ea2\u51fa\u524d\u7684\u201c\u7f6e1-\u6e050\u201d\u65f6\u523b\u540e\u201c\u7f6e1\u201d\u65f6\u523b\u524d\uff0cT0\u4ea7\u751f\u6ea2\u51fa\u4e2d\u65ad\uff0c\u4e2d\u65adT1\u7684\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u3002
\u6bd4\u8f83\uff1a
\u5982\u679c\u4ec5\u4ec5\u4e3a\u4e86\u8ba1\u7b97\u201cT1\u5b9a\u65f6\u5668\u7684\u6ea2\u51fa\u6b21\u6570\u201d\u7684\u8bdd\uff0c\u968f\u4fbf\u5b9a\u4e49\u4e24\u4e2a\u5b57\u8282\u7684\u201c\u5185\u90e8RAM\u6570\u636e\u5b58\u50a8\u5668\u201d\u5c31\u53ef\u4ee5\u4e86\uff0c\u548c\u65b9\u6cd5\u4e00\u7c7b\u4f3c\uff0c\u5728\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u4e2d\uff0c\u5bf9\u5bc4\u5b58\u5668\u5185\u6570\u503c\u52a0\u4e00\uff0c\u5b8c\u5168\u53ef\u4ee5\u5b9e\u73b0\u3002
\u7528T0\u7b97T1\u592a\u6d6a\u8d39\u8d44\u6e90\u4e86\uff01
\u5b9a\u4e49\u201c\u5185\u90e8RAM\u6570\u636e\u5b58\u50a8\u5668\u201d\u8ba1\u7b97\u201cT1\u5b9a\u65f6\u5668\u7684\u6ea2\u51fa\u6b21\u6570\u201d\u7684\u7a0b\u5e8f\uff1a
\u53ef\u4ee5\u7528Keil\u4eff\u771f\u4ee5\u4e0b\uff0c\u80fd\u770b\u51fa\u6548\u679c\u7684\uff01