{"id":101446,"date":"2026-09-06T21:02:30","date_gmt":"2026-09-06T13:02:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/101446.html"},"modified":"2026-09-06T21:02:30","modified_gmt":"2026-09-06T13:02:30","slug":"tim%e5%ae%9a%e6%97%b6%e4%b8%ad%e6%96%ad%ef%bc%88stm32%e6%a0%87%e5%87%86%e5%ba%93%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/101446.html","title":{"rendered":"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09"},"content":{"rendered":"<p>\u5728\u4e0a\u4e00\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u5b66\u4e60\u4e86 EXTI \u5916\u90e8\u4e2d\u65ad&#xff0c;\u638c\u63e1\u4e86\u5982\u4f55\u901a\u8fc7\u5916\u90e8\u5f15\u811a\u7684\u7535\u5e73\u53d8\u5316\u6765\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u4ece\u800c\u8ba9 CPU \u53ca\u65f6\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6\u3002\u7136\u800c\u5728\u5b9e\u9645\u7684\u5d4c\u5165\u5f0f\u5f00\u53d1\u4e2d&#xff0c;\u9664\u4e86\u9700\u8981\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6&#xff0c;\u6211\u4eec\u8fd8\u7ecf\u5e38\u9700\u8981\u7cbe\u786e\u5730\u63a7\u5236\u65f6\u95f4&#xff0c;\u6bd4\u5982\u5b9a\u65f6\u91c7\u96c6\u4f20\u611f\u5668\u6570\u636e\u3001\u5468\u671f\u6027\u5237\u65b0\u663e\u793a\u3001\u4ea7\u751f PWM \u6ce2\u5f62\u7b49\u3002\u5982\u679c\u5355\u7eaf\u4f9d\u9760\u4e3b\u5faa\u73af\u7684\u5ef6\u65f6\u51fd\u6570&#xff0c;\u4e0d\u4ec5\u4f1a\u963b\u585e CPU \u7684\u6267\u884c&#xff0c;\u800c\u4e14\u96be\u4ee5\u4fdd\u8bc1\u65f6\u95f4\u7684\u51c6\u786e\u6027\u3002\u8fd9\u65f6&#xff0c;STM32 \u5185\u7f6e\u7684\u5b9a\u65f6\u5668&#xff08;TIM&#xff09;\u5c31\u6d3e\u4e0a\u4e86\u7528\u573a\u3002<\/p>\n<p>\u5b9a\u65f6\u5668\u662f STM32 \u4e2d\u975e\u5e38\u91cd\u8981\u4e14\u5e38\u7528\u7684\u5916\u8bbe&#xff0c;\u5b83\u901a\u8fc7\u5bf9\u5185\u90e8\u6216\u5916\u90e8\u65f6\u949f\u8fdb\u884c\u8ba1\u6570&#xff0c;\u5728\u8ba1\u6570\u503c\u8fbe\u5230\u8bbe\u5b9a\u503c\u65f6\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u4ece\u800c\u5b9e\u73b0\u7cbe\u786e\u7684\u5b9a\u65f6\u529f\u80fd\u3002\u4e0e EXTI \u5916\u90e8\u4e2d\u65ad\u4e0d\u540c&#xff0c;\u5b9a\u65f6\u5668\u4e2d\u65ad\u662f\u7531\u5185\u90e8\u65f6\u949f\u9a71\u52a8\u3001\u81ea\u4e3b\u4ea7\u751f\u7684&#xff0c;\u65e0\u9700\u5916\u90e8\u4fe1\u53f7\u7684\u53c2\u4e0e&#xff0c;\u56e0\u6b64\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5468\u671f\u6027\u4efb\u52a1\u7684\u8c03\u5ea6\u3002\u672c\u7ae0\u5c06\u56f4\u7ed5 TIM \u5b9a\u65f6\u4e2d\u65ad\u5c55\u5f00&#xff0c;\u4ece\u5b9a\u65f6\u5668\u7684\u57fa\u672c\u6982\u5ff5\u3001\u4e09\u79cd\u7c7b\u578b&#xff08;\u57fa\u672c\u3001\u901a\u7528\u3001\u9ad8\u7ea7&#xff09;\u7684\u5dee\u5f02&#xff0c;\u5230\u65f6\u57fa\u5355\u5143\u4e2d\u9884\u5206\u9891\u5668\u3001\u8ba1\u6570\u5668\u4e0e\u81ea\u52a8\u91cd\u88c5\u5bc4\u5b58\u5668\u7684\u5de5\u4f5c\u539f\u7406&#xff0c;\u518d\u5230\u9884\u5206\u9891\u5668\u65f6\u5e8f\u3001\u8ba1\u6570\u5668\u65f6\u5e8f\u4ee5\u53ca\u7f13\u51b2\u5bc4\u5b58\u5668\u7684\u4f7f\u7528&#xff0c;\u6700\u540e\u901a\u8fc7\u4e24\u4e2a\u5b9e\u6218\u5b9e\u4f8b\u2014\u2014\u5b9a\u65f6\u5668\u5b9a\u65f6\u4e2d\u65ad\u4e0e\u5b9a\u65f6\u5668\u5916\u90e8\u65f6\u949f&#xff0c;\u5e26\u9886\u5927\u5bb6\u5b8c\u6574\u638c\u63e1 STM32 \u5b9a\u65f6\u4e2d\u65ad\u7684\u5f00\u53d1\u6d41\u7a0b\u3002<\/p>\n<p>\u5982\u679c\u89c9\u5f97\u6709\u6536\u83b7\u53ef\u4ee5\u4e3a\u6211\u7684\u6587\u7ae0\u70b9\u70b9\u5c0f\u8d5e&#xff0c;\u8fd9\u5c06\u6fc0\u52b1\u6211\u521b\u4f5c\u66f4\u597d\u7684\u5185\u5bb9&#xff01;\u8c22\u8c22&#xff01;<\/p>\n<h2 style=\"background-color:transparent;margin-left:0.0001pt;text-align:justify\">\u4e00\u3001TIM\u5b9a\u65f6\u4e2d\u65ad<\/h2>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.1 TIM\u7b80\u4ecb<\/h3>\n<p style=\"margin-left:.0001pt;text-align:justify\">TIM&#xff08;Timer&#xff09;\u5b9a\u65f6\u5668<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5b9a\u65f6\u5668\u53ef\u4ee5\u5bf9\u8f93\u5165\u7684\u65f6\u949f\u8fdb\u884c\u8ba1\u6570&#xff0c;\u5e76\u5728\u8ba1\u6570\u503c\u8fbe\u5230\u8bbe\u5b9a\u503c\u65f6\u89e6\u53d1\u4e2d\u65ad<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">16\u4f4d\u8ba1\u6570\u5668\u3001\u9884\u5206\u9891\u5668\u3001\u81ea\u52a8\u91cd\u88c5\u5bc4\u5b58\u5668\u7684\u65f6\u57fa\u5355\u5143&#xff0c;\u572872MHz\u8ba1\u6570\u65f6\u949f\u4e0b\u53ef\u4ee5\u5b9e\u73b0\u6700\u592759.65s\u7684\u5b9a\u65f6<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u4e0d\u4ec5\u5177\u5907\u57fa\u672c\u7684\u5b9a\u65f6\u4e2d\u65ad\u529f\u80fd&#xff0c;\u800c\u4e14\u8fd8\u5305\u542b\u5185\u5916\u65f6\u949f\u6e90\u9009\u62e9\u3001\u8f93\u5165\u6355\u83b7\u3001\u8f93\u51fa\u6bd4\u8f83\u3001\u7f16\u7801\u5668\u63a5\u53e3\u3001\u4e3b\u4ece\u89e6\u53d1\u6a21\u5f0f\u7b49\u591a\u79cd\u529f\u80fd<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u6839\u636e\u590d\u6742\u5ea6\u548c\u5e94\u7528\u573a\u666f\u5206\u4e3a\u4e86\u9ad8\u7ea7\u5b9a\u65f6\u5668\u3001\u901a\u7528\u5b9a\u65f6\u5668\u3001\u57fa\u672c\u5b9a\u65f6\u5668\u4e09\u79cd\u7c7b\u578b<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.2 \u5b9a\u65f6\u5668\u7c7b\u578b<\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130225-6a9d64613dc78.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">STM32F103C8T6\u5b9a\u65f6\u5668\u8d44\u6e90&#xff1a;TIM1\u3001TIM2\u3001TIM3\u3001TIM4<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.3 \u57fa\u672c\u5b9a\u65f6\u5668<\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130225-6a9d64616bec0.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u4e0b\u9762\u8fd9\u4e00\u90e8\u5206&#xff0c;\u6709\u4e09\u4e2a\u6700\u91cd\u8981\u7684\u5bc4\u5b58\u5668&#xff0c;\u5206\u522b\u662f\u9884\u5206\u9891\u5668\u3001\u8ba1\u6570\u5668\u548c\u81ea\u52a8\u91cd\u88c5\u5bc4\u5b58\u5668&#xff0c;\u5b83\u4eec\u6784\u6210\u4e86\u6700\u57fa\u672c\u7684\u8ba1\u6570\u8ba1\u65f6\u7535\u8def&#xff0c;\u6240\u4ee5\u8fd9\u4e00\u5757\u7535\u8def\u5c31\u53eb\u505a\u65f6\u57fa\u5355\u5143\u3002\u9884\u5206\u9891\u5668\u4e4b\u524d&#xff0c;\u8fde\u63a5\u7684\u5c31\u662f\u57fa\u51c6\u8ba1\u6570\u65f6\u949f\u7684\u8f93\u5165&#xff0c;\u7531\u4e8e\u57fa\u672c\u5b9a\u65f6\u5668\u53ea\u80fd\u9009\u62e9\u5185\u90e8\u65f6\u949f&#xff0c;\u6240\u4ee5\u4f60\u53ef\u4ee5\u76f4\u63a5\u8ba4\u4e3a&#xff0c;\u9884\u5206\u9891\u5668\u76f4\u63a5\u8fde\u5230\u4e86\u8f93\u5165\u7aef\u7684\u5185\u90e8\u65f6\u949fCK INT&#xff0c;\u5185\u90e8\u65f6\u949f\u7684\u6765\u6e90\u662fRCC_TIMxCLK,\u8fd9\u91cc\u7684\u9891\u7387\u503c\u4e00\u822c\u90fd\u662f\u7cfb\u7edf\u7684\u4e3b\u989172MHz&#xff0c;\u6240\u4ee5\u901a\u5411\u65f6\u57fa\u5355\u5143\u7684\u8ba1\u6570\u57fa\u51c6\u9891\u7387\u5c31\u662f72M<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u65f6\u57fa\u5355\u5143&#xff0c;\u9996\u5148\u662f\u9884\u5206\u9891\u5668&#xff0c;\u5b83\u53ef\u4ee5\u5bf9\u8fd9\u4e2a72MHz\u7684\u8ba1\u6570\u65f6\u949f\u8fdb\u884c\u9884\u5206\u9891&#xff0c;\u6bd4\u5982\u8fd9\u4e2a\u5bc4\u5b58\u5668\u51990&#xff0c;\u90a3\u5c31\u662f\u4e0d\u5206\u9891&#xff0c;\u6216\u8005\u8bf4\u662f1\u5206\u9891&#xff0c;\u8fd9\u65f6\u5019\u8f93\u51fa\u9891\u7387&#061;\u8f93\u5165\u9891\u7387&#061;72MHz&#xff1b;\u5982\u679c\u9884\u5206\u9891\u5668\u51991&#xff0c;\u90a3\u5c31\u662f2\u5206\u9891&#xff0c;\u8f93\u51fa\u9891\u7387&#061;\u8f93\u5165\u9891\u7387\/2&#061;36MHz&#xff1b;\u5982\u679c\u51992&#xff0c;\u5c31\u662f3\u5206\u9891&#xff0c;\u8f93\u51fa&#061;\u8f93\u5165\/3&#xff0c;\u4ee5\u6b64\u5185\u63a8&#xff1b;\u6240\u4ee5\u9884\u5206\u9891\u5668\u7684\u503c\u548c\u5b9e\u9645\u7684\u5206\u9891\u7cfb\u6570\u76f8\u5dee\u4e861&#xff0c;\u5373\u5b9e\u9645\u5206\u9891\u7cfb\u6570&#061;\u9884\u5206\u9891\u5668\u7684\u503c&#043;1&#xff0c;\u8fd9\u4e2a\u9884\u5206\u9891\u5668\u662f16\u4f4d\u7684,\u6240\u4ee5\u6700\u5927\u503c\u53ef\u4ee5\u519965535&#xff0c;\u4e5f\u5c31\u662f65536\u5206\u9891&#xff0c;\u8fd9\u5c31\u662f\u9884\u5206\u9891\u5668&#xff0c;\u5c31\u662f\u5bf9\u8f93\u5165\u7684\u57fa\u51c6\u9891\u7387\u63d0\u524d\u8fdb\u884c\u4e00\u4e2a\u5206\u9891\u7684\u64cd\u4f5c&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8ba1\u6570\u5668&#xff0c;\u8fd9\u4e2a\u8ba1\u6570\u5668\u53ef\u4ee5\u5bf9\u9884\u5206\u9891\u540e\u7684\u8ba1\u6570\u65f6\u949f\u8fdb\u884c\u8ba1\u6570&#xff0c;\u8ba1\u6570\u65f6\u949f\u6bcf\u6765\u4e00\u4e2a\u4e0a\u5347\u6cbf&#xff0c;\u8ba1\u6570\u5668\u7684\u503c\u5c31\u52a01&#xff0c;\u8fd9\u4e2a\u8ba1\u6570\u5668\u4e5f\u662f16\u4f4d\u7684&#xff0c;\u6240\u4ee5\u91cc\u9762\u7684\u503c\u53ef\u4ee5\u4ece0\u4e00\u76f4\u52a0\u523065535&#xff0c;\u5982\u679c\u518d\u52a0\u7684\u8bdd&#xff0c;\u8ba1\u6570\u5668\u5c31\u4f1a\u56de\u52300\u91cd\u65b0\u5f00\u59cb&#xff0c;\u6240\u4ee5\u8ba1\u6570\u5668\u7684\u503c\u5728\u8ba1\u65f6\u8fc7\u7a0b\u4e2d\u4f1a\u4e0d\u65ad\u5730\u81ea\u589e\u8fd0\u884c&#xff0c;\u5f53\u81ea\u589e\u8fd0\u884c\u5230\u76ee\u6807\u503c\u65f6&#xff0c;\u4ea7\u751f\u4e2d\u65ad&#xff0c;\u90a3\u5c31\u5b8c\u6210\u4e86\u5b9a\u65f6\u7684\u4efb\u52a1&#xff0c;\u6240\u4ee5\u73b0\u5728\u8fd8\u9700\u8981\u4e00\u4e2a\u5b58\u50a8\u76ee\u6807\u503c\u7684\u5bc4\u5b58\u5668&#xff0c;\u90a3\u5c31\u662f\u81ea\u52a8\u91cd\u88c5\u5bc4\u5b58\u5668\u4e86&#xff0c;\u81ea\u52a8\u91cd\u88c5\u5bc4\u5b58\u5668\u4e5f\u662f16\u4f4d\u7684&#xff0c;\u5b83\u5b58\u7684\u5c31\u662f\u6211\u4eec\u5199\u5165\u7684\u8ba1\u6570\u76ee\u6807&#xff0c;\u5728\u8fd0\u884c\u7684\u8fc7\u7a0b\u4e2d&#xff0c;\u8ba1\u6570\u503c\u4e0d\u65ad\u81ea\u589e&#xff0c;\u81ea\u52a8\u91cd\u88c5\u503c\u662f\u56fa\u5b9a\u7684\u76ee\u6807&#xff0c;\u5f53\u8ba1\u6570\u503c\u7b49\u4e8e\u81ea\u52a8\u91cd\u88c5\u503c\u65f6&#xff0c;\u4e5f\u5c31\u662f\u8ba1\u65f6\u65f6\u95f4\u5230\u4e86&#xff0c;\u90a3\u5b83\u5c31\u4f1a\u4ea7\u751f\u4e00\u4e2a\u4e2d\u65ad\u4fe1\u53f7&#xff0c;\u5e76\u4e14\u6e05\u96f6\u8ba1\u6570\u5668&#xff0c;\u8ba1\u6570\u5668\u81ea\u52a8\u5f00\u59cb\u4e0b\u4e00\u6b21\u7684\u8ba1\u6570\u8ba1\u65f6&#xff0c;\u50cf\u8fd9\u79cd\u8ba1\u6570\u503c\u7b49\u4e8e\u81ea\u52a8\u91cd\u88c5\u503c\u4ea7\u751f\u7684\u4e2d\u65ad\u5462&#xff0c;\u6211\u4eec\u4e00\u822c\u628a\u5b83\u53eb\u505a\u201c\u66f4\u65b0\u4e2d\u65ad\u201d&#xff0c;\u8fd9\u4e2a\u66f4\u65b0\u4e2d\u65ad\u4e4b\u540e\u5c31\u4f1a\u901a\u5f80NVIC,\u6211\u4eec\u518d\u914d\u7f6e\u597dNVIC\u7684\u5b9a\u65f6\u5668\u901a\u9053&#xff0c;\u90a3\u5b9a\u65f6\u5668\u7684\u66f4\u65b0\u4e2d\u65ad\u5c31\u80fd\u591f\u5f97\u5230CPU\u7684\u54cd\u5e94\u4e86&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5411\u4e0b\u7684\u7bad\u5934&#xff0c;\u4ee3\u8868\u7684\u662f\u4f1a\u4ea7\u751f\u4e00\u4e2a\u4e8b\u4ef6&#xff0c;\u8fd9\u91cc\u5bf9\u5e94\u7684\u4e8b\u4ef6\u5c31\u53eb\u505a\u201c\u66f4\u65b0\u4e8b\u4ef6\u201d&#xff0c;\u66f4\u65b0\u4e8b\u4ef6\u4e0d\u4f1a\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u4f46\u53ef\u4ee5\u89e6\u53d1\u5185\u90e8\u5176\u4ed6\u7535\u8def\u7684\u5de5\u4f5c\u3002<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u57fa\u672c\u5b9a\u65f6\u5668\u4ec5\u652f\u6301\u5411\u4e0a\u8ba1\u6570\u8fd9\u4e00\u79cd\u6a21\u5f0f<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.4 \u901a\u7528\u5b9a\u65f6\u5668<\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130225-6a9d64618c2c1.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u901a\u7528\u5b9a\u65f6\u5668\u548c\u9ad8\u7ea7\u5b9a\u65f6\u5668\u652f\u6301\u5411\u4e0a\u8ba1\u6570\u3001\u5411\u4e0b\u8ba1\u6570\u3001\u4e2d\u592e\u5bf9\u9f50\u8fd9\u4e09\u79cd\u6a21\u5f0f<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130225-6a9d6461bf124.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5916\u90e8\u65f6\u949f\u6a21\u5f0f1\u7684\u8f93\u5165\u53ef\u4ee5\u662fETR\u5f15\u811a\u3001\u5176\u4ed6\u5b9a\u65f6\u5668&#xff0c;CH1\u5f15\u811a\u7684\u8fb9\u6cbf\u3001CH1\u5f15\u811a\u548cCH2\u5f15\u811a&#xff0c;\u4e00\u822c\u60c5\u51b5\u4e0b\u5916\u90e8\u65f6\u949f\u901a\u8fc7ETR\u5f15\u811a\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.5 \u9ad8\u7ea7\u5b9a\u65f6\u5668<\/h3>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130226-6a9d64620a518.png\" \/><\/p>\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.6 \u5b9a\u65f6\u4e2d\u65ad\u57fa\u672c\u7ed3\u6784<\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130226-6a9d64623ed5b.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\"><span style=\"color:#ff0000\">1.7 \u9884\u5206\u9891\u5668\u65f6\u5e8f<\/span><\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130226-6a9d64627b809.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8ba1\u6570\u5668\u8ba1\u6570\u9891\u7387&#xff1a;CK_CNT &#061; CK_PSC \/ (PSC &#043; 1)<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7b2c\u4e00\u884c\u662fCK PSC,\u9884\u5206\u9891\u5668\u7684\u8f93\u5165\u65f6\u949f&#xff0c;\u9009\u5185\u90e8\u65f6\u949f\u7684\u8bdd\u4e00\u822c\u662f72MHz;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130226-6a9d6462a5a99.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7b2c\u4e8c\u884c\u662fCNT_EN,\u8ba1\u6570\u5668\u4f7f\u80fd&#xff0c;\u9ad8\u7535\u5e73\u8ba1\u6570\u5668\u6b63\u5e38\u8fd0\u884c&#xff0c;\u4f4e\u7535\u5e73\u8ba1\u6570\u5668\u505c\u6b62;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7b2c\u4e09\u884c\u662fCK_CNT,\u8ba1\u6570\u5668\u65f6\u949f,\u65e2\u662f\u9884\u5206\u9891\u5668\u7684\u65f6\u949f\u8f93\u51fa,\u4e5f\u662f\u8ba1\u6570\u5668\u7684\u65f6\u949f\u8f93\u5165;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130226-6a9d6462c6f52.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7b2c\u56db\u884c\u662f\u8ba1\u6570\u5668\u5bc4\u5b58\u5668,\u6570\u503c\u8ddf\u968f\u65f6\u949f\u7684\u4e0a\u5347\u6cbf\u4e0d\u65ad\u81ea\u589e,\u8fbe\u5230\u81ea\u52a8\u91cd\u88c5\u503c\u65f6,\u4e0b\u4e00\u4e2a\u8ba1\u6570\u53d8\u4e3a0;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u7b2c\u4e94\u884c\u662f\u66f4\u65b0\u4e8b\u4ef6(UEV),\u5f53\u8ba1\u6570\u5668\u5bc4\u5b58\u5668\u8fbe\u5230\u81ea\u52a8\u91cd\u88c5\u503c\u65f6,\u66f4\u65b0\u4e8b\u4ef6(UEV),\u4ea7\u751f\u4e00\u4e2a\u4f4e\u5230\u9ad8\u7684\u7535\u5e73\u8109\u51b2;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">\u7f13\u51b2\u5bc4\u5b58\u5668:<\/span><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130226-6a9d6462e7b80.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u8ba1\u6570\u5668\u8ba1\u6570\u9891\u7387&#xff1a;CK_CNT &#061; CK_PSC \/ (PSC &#043; 1)<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">\u5f53\u8ba1\u6570\u5bc4\u5b58\u5668&#xff08;\u7b2c\u56db\u884c&#xff09;\u8ba1\u6570\u8ba1\u5230\u4e00\u534a\u7684\u65f6\u5019\u6539\u53d8\u4e86\u5206\u9891\u503c&#xff0c;\u8fd9\u4e2a\u53d8\u5316\u5e76\u4e0d\u4f1a\u7acb\u523b\u751f\u6548&#xff0c;\u800c\u662f\u4f1a\u7b49\u5230\u672c\u6b21\u8ba1\u6570\u5468\u671f\u7ed3\u675f\u65f6&#xff0c;\u4ea7\u751f\u4e86\u66f4\u65b0\u4e8b\u4ef6&#xff0c;\u9884\u5206\u9891\u5bc4\u5b58\u5668\u7684\u503c\u624d\u4f1a\u88ab\u4f20\u9012\u5230\u7f13\u51b2\u5bc4\u5b58\u5668\u91cc\u9762\u53bb&#xff0c;\u624d\u4f1a\u751f\u6548<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u9884\u5206\u9891\u5668\u5185\u90e8\u5b9e\u9645\u4e0a\u4e5f\u662f\u9760\u8ba1\u6570\u6765\u5206\u9891\u7684&#xff0c;\u5f53\u9884\u5206\u9891\u503c\u4e3a0\u65f6&#xff0c;\u8ba1\u6570\u5668\u5c31\u4e00\u76f4\u4e3a0&#xff0c;\u76f4\u63a5\u8f93\u51fa\u539f\u9891\u7387&#xff0c;\u5f53\u9884\u5206\u9891\u503c\u4e3a1\u65f6&#xff0c;\u8ba1\u6570\u5668\u5c310\u30011\u30010\u30011\u30010\u30011\u30010\u30011\u8fd9\u6837\u8ba1\u6570&#xff0c;\u5728\u56de\u52300\u7684\u65f6\u5019&#xff0c;\u8f93\u51fa\u4e00\u4e2a\u8109\u51b2&#xff0c;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\"><span style=\"color:#ff0000\">1.8 \u8ba1\u6570\u5668\u65f6\u5e8f<\/span><\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130227-6a9d64631cf96.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">\u8ba1\u6570\u5668\u6ea2\u51fa\u9891\u7387&#xff1a;CK_CNT_OV &#061; CK_CNT \/ (ARR &#043; 1)<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">&#061; CK_PSC \/ (PSC &#043; 1) \/ (ARR &#043; 1)<\/span><span style=\"color:#ff0000\">&#xff08;<\/span><span style=\"color:#ff0000\">CK_PSC<\/span><span style=\"color:#ff0000\">\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u662f72M&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\u66f4\u65b0\u4e2d\u65ad\u6807\u5fd7\u4f4dUIF&#xff1a;\u6b64\u6807\u5fd7\u4f4d\u53ea\u8981\u7f6e1\u4e86&#xff0c;\u5c31\u4f1a\u4e0d\u65ad\u7533\u8bf7\u4e2d\u65ad&#xff0c;\u7136\u540e\u4e2d\u65ad\u54cd\u5e94\u540e&#xff0c;\u9700\u8981\u5728\u4e2d\u65ad\u7a0b\u5e8f\u4e2d\u624b\u52a8\u6e05\u96f6<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.9 \u8ba1\u6570\u5668\u65e0\u9884\u88c5\u65f6\u5e8f&#xff08;\u4e0d\u4f7f\u7528\u7f13\u51b2\u5bc4\u5b58\u5668&#xff09;<\/h3>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u901a\u8fc7\u8bbe\u7f6eARPE\u4f4d\u6765\u914d\u7f6e\u7f13\u51b2\u5bc4\u5b58\u5668\u7684\u4f7f\u7528\u4e0e\u5426<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130227-6a9d64633d6bc.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.10 \u8ba1\u6570\u5668\u6709\u9884\u88c5\u65f6\u5e8f&#xff08;\u4f7f\u7528\u7f13\u51b2\u5bc4\u5b58\u5668&#xff09;<\/h3>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u901a\u8fc7\u8bbe\u7f6eARPE\u4f4d\u6765\u914d\u7f6e\u7f13\u51b2\u5bc4\u5b58\u5668\u7684\u4f7f\u7528\u4e0e\u5426<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130227-6a9d646363939.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u53ea\u6709\u5728\u5f53\u524d\u8ba1\u6570\u5668\u5bc4\u5b58\u5668\u7684\u503c\u5728\u66f4\u6539\u91cd\u88c5\u503c\u540e<span style=\"color:#ff0000\">\u5b8c\u6210\u6700\u540e\u7684\u6ea2\u51fa\u65f6&#xff08;\u7b49\u5bc4\u5b58\u5668\u8d70\u5b8c\u66f4\u6539\u524d\u7684\u503c&#xff0c;\u4e0a\u56fe\u4e3aF5&#xff09;<\/span><span style=\"color:#000000\">&#xff0c;\u8981\u66f4\u6539\u7684\u91cd\u88c5\u503c\u624d\u88ab\u4f20\u9012\u5230\u5f71\u5b50\u5bc4\u5b58\u5668&#xff0c;<\/span><span style=\"color:#000000\">\u5728\u4e0b\u4e00\u4e2a\u8ba1\u6570\u5468\u671f\u8fd9\u4e2a\u66f4\u6539<\/span><span style=\"color:#000000\">\u503c&#xff08;\u4e0a\u56fe\u4e3a36&#xff09;<\/span><span style=\"color:#000000\">\u624d\u6709\u6548<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<h3 style=\"margin-left:0.0001pt;text-align:justify\"><span style=\"color:#ff0000\">1.11 <\/span><span style=\"color:#ff0000\">RCC\u65f6\u949f\u6811<\/span><\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130227-6a9d64638d1a4.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5e93\u51fd\u6570Systemlnit\u51fd\u6570\u914d\u7f6e\u65f6\u949f\u6811\u7684\u64cd\u4f5c\u5982\u4e0b&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">1. \u542f\u52a8\u5185\u90e8\u65f6\u949f&#xff0c;\u9009\u62e9\u5185\u90e88MHz\u4e3a\u7cfb\u7edf\u65f6\u949f&#xff0c;\u6682\u65f6\u4ee5\u5185\u90e88MHz\u7684\u65f6\u949f\u8fd0\u884c&#xff1b;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130228-6a9d6464ca3d2.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">2. \u542f\u52a8\u5916\u90e8\u65f6\u949f&#xff0c;\u914d\u7f6e\u5916\u90e8\u65f6\u949f\u8fdb\u5165PLL\u9501\u76f8\u73af\u8fdb\u884c\u500d\u9891&#xff0c;8MHz\u500d\u98919\u500d&#xff0c;\u5f97\u523072MHz&#xff1b;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130228-6a9d6464dbbee.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">3. \u7b49\u5230\u9501\u76f8\u73af\u8f93\u51fa\u7a33\u5b9a\u540e&#xff0c;\u9009\u62e9\u9501\u76f8\u73af\u8f93\u51fa\u4e3a\u7cfb\u7edf\u65f6\u949f&#xff0c;\u8fd9\u6837\u5c31\u628a\u7cfb\u7edf\u65f6\u949f\u75318MHz\u5207\u6362\u4e3a\u4e8672MHz&#xff1b;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130228-6a9d6464ef4a6.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u4ee5\u4e0a3\u6b65\u5c31\u662fST\u516c\u53f8\u7684\u5e93\u51fd\u6570\u5728\u65f6\u949f\u90e8\u5206\u7684\u914d\u7f6e\u7684\u6d41\u7a0b<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5982\u679c\u5916\u90e8\u6676\u632f\u51fa\u95ee\u9898\u4e86&#xff0c;\u7cfb\u7edf\u5c31\u65e0\u6cd5\u5207\u6362\u523072MHz&#xff0c;\u90a3\u5b83\u5c31\u4f1a\u4ee5\u5185\u90e8\u76848MHz\u8fd0\u884c&#xff0c;8M\u76f8\u6bd4\u8f8372M&#xff0c;\u5927\u6982\u5c31\u6162\u4e8610\u500d<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\u65f6\u949f\u5b89\u5168\u7cfb\u7edfCSS&#xff1a;\u53ef\u4ee5\u76d1\u6d4b\u5916\u90e8\u65f6\u949f\u7684\u8fd0\u884c\u72b6\u6001&#xff0c;\u4e00\u4f46\u5916\u90e8\u65f6\u949f\u5931\u6548&#xff0c;\u5c31\u4f1a\u81ea\u52a8\u628a\u5916\u90e8\u65f6\u949f\u5207\u6362\u56de\u5185\u90e8\u65f6\u949f&#xff0c;\u4fdd\u8bc1\u7cfb\u7edf\u65f6\u949f\u7684\u8fd0\u884c&#xff0c;\u9632\u6b62\u7a0b\u5e8f\u5361\u6b7b\u9020\u6210\u4e8b\u6545<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130229-6a9d64650a203.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">AHB\u603b\u7ebf\u6709\u4e2a\u9884\u5206\u9891\u5668&#xff0c;\u5728Systemlnit\u91ccAHB\u9884\u5206\u9891\u5668\u914d\u7f6e\u7684\u5206\u914d\u7cfb\u6570\u4e3a1&#xff0c;\u6545AHB\u7684\u65f6\u949f\u5c31\u662f72MHz&#xff0c;\u7136\u540e\u8fdb\u5165APB1\u603b\u7ebf&#xff0c;APB1\u9884\u5206\u9891\u5668\u914d\u7f6e\u7684\u5206\u914d\u7cfb\u6570\u662f2&#xff0c;\u6240\u4ee5APB1\u603b\u7ebf\u7684\u65f6\u949f\u4e3a72MHz\/2&#061;36MHz<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130229-6a9d64651dc7a.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u65e0\u8bba\u662f\u9ad8\u7ea7\u5b9a\u65f6\u5668&#xff0c;\u8fd8\u662f\u901a\u7528\u5b9a\u65f6\u5668&#xff0c;\u8fd8\u662f\u57fa\u672c\u5b9a\u65f6\u5668&#xff0c;\u5b83\u4eec\u7684\u5185\u90e8\u57fa\u51c6\u65f6\u949f\u90fd\u662f72MHz&#xff0c;\u56e0\u4e3a\u8fd8\u6709\u4e0b\u9762\u7684\u4e00\u6761\u5206\u652f&#xff1a;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130229-6a9d64652d807.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">APB2\u5916\u8bbe\u4e0e\u5b9a\u65f6\u56681\u548c8\u4e5f\u662f72MHz<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06ebyu4rfyoxf.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u6211\u4eec\u5728\u7a0b\u5e8f\u4e2d\u5199RCC APB2\/1PeriphClockCmd\u4f5c\u7528\u662f\u914d\u7f6e\u5916\u8bbe\u65f6\u949f\u4f7f\u80fd&#xff0c;\u51991\u6253\u5f00\u5b9a\u65f6\u5668<\/p>\n<h3 style=\"margin-left:0.0001pt;text-align:justify\"><\/h3>\n<h3 style=\"margin-left:0.0001pt;text-align:justify\">1.12 \u5b9e\u4f8b\u4e006.1.1 \u5b9a\u65f6\u5668\u5b9a\u65f6\u4e2d\u65ad<\/h3>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u53ef\u80fd\u7528\u5230\u7684\u5e93\u51fd\u6570&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/<\/span><span style=\"color:#00b050\">\u5c06\u6307\u5b9a\u5b9a\u65f6\u5668\u5916\u8bbe\u6062\u590d\u4e3a\u590d\u4f4d\u9ed8\u8ba4\u72b6\u6001&#xff0c;\u628a TIM \u6240\u6709\u5bc4\u5b58\u5668\u8fd8\u539f\u6210\u4e0a\u7535\u590d\u4f4d\u503c&#xff0c;\u76f8\u5f53\u4e8e\u628a\u5b9a\u65f6\u5668\u6574\u4e2a\u521d\u59cb\u5316\u914d\u7f6e\u5168\u90e8\u6e05\u7a7a<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_DeInit(TIM_TypeDef* TIMx);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u65f6\u57fa\u5355\u5143\u521d\u59cb\u5316<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_TimeBaseInit(TIM_TypeDef*TIMx,TIM_TimeBaseInitTypeDef*TIM_TimeBaseInitStruct);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">\u5176\u4e2d<\/span><span style=\"color:#ff0000\">TIM_TimeBaseInitTypeDef<\/span><span style=\"color:#ff0000\">\u5b9a\u4e49\u7684\u7ed3\u6784\u4f53TIM_TimeBaseInitStructure\u9700\u8981\u6ce8\u610f&#xff1a;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#000000\">TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStructure;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#000000\">TIM_TimeBaseInitStructure.TIM_ClockDivision &#061; TIM_CKD_DIV1;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#000000\">TIM_TimeBaseInitStructure.TIM_CounterMode &#061; TIM_CounterMode_Up;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">TIM_TimeBaseInitStructure.TIM_Period &#061; 10000 &#8211; 1;\/\/\u91cd\u88c5\u503c&#xff08;\u8bb0\u591a\u5c11\u6b21\u6570\u6ea2\u51fa\u4e00\u6b21&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">TIM_TimeBaseInitStructure.TIM_Prescaler &#061; 7200 &#8211; 1;\/\/\u9884\u5206\u9891\u503c&#xff08;\u5185\u90e8\u65f6\u949f\u7535\u5e73\u4e00\u4e0a\u4e00\u4e0b\u591a\u5c11\u6b21\u8ba1\u4e00\u4e2a\u6570&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#000000\">TIM_TimeBaseInitStructure.TIM_RepetitionCounter &#061; 0;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#000000\">TIM_TimeBaseInit(TIM2,&amp;TIM_TimeBaseInitStructure);<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">TIM_Period &#8211;&gt; \u91cd\u88c5\u503c &#8211;&gt; A<\/span><span style=\"color:#ff0000\">RR<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">TIM_Prescaler &#8211;&gt; \u9884\u5206\u9891\u503c &#8211;&gt; <\/span><span style=\"color:#ff0000\">PSC<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">\u4e0a\u9762\u4e24\u4e2a\u503c\u6ee1\u8db3<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">\u8ba1\u6570\u5668\u6ea2\u51fa\u9891\u7387&#xff1a;CK_CNT_OV &#061; CK_PSC \/ (PSC &#043; 1) \/ (ARR &#043; 1)<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">&#xff08;<\/span><span style=\"color:#ff0000\">CK_PSC<\/span><span style=\"color:#ff0000\">\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u662f72M&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#7030a0\">\u4f8b\u5982\u8981\u8ba1\u65f61s&#xff0c;1s\u5bf9\u5e94\u5c31\u662f1Hz\u9891\u7387&#xff0c;\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u914d\u6210 <\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#7030a0\">1 &#061; 72M \/ <\/span><span style=\"color:#ff0000\">7200 &#8211; 1<\/span><span style=\"color:#7030a0\"> &#043; 1 \/<\/span><span style=\"color:#ff0000\"> 10000 -1<\/span><span style=\"color:#7030a0\"> &#043;1<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#7030a0\">\u6ce8\u610f&#xff1a;\u8fd9\u4e2a\u51fd\u6570\u5728\u4f7f\u7528\u65f6\u4f1a\u5728\u6700\u5f00\u59cb<\/span><span style=\"color:#7030a0\">\u624b\u52a8\u751f\u6210\u4e00\u4e2a\u66f4\u65b0\u4e8b\u4ef6<\/span><span style=\"color:#7030a0\">\u7528\u6765\u8ba9\u6211\u4eec\u7ed9\u9884\u5206\u9891\u5668\u7684<\/span>   <span style=\"color:#7030a0\">\u503c\u751f\u6548\u3002\u4f46\u540c\u65f6&#xff0c;\u5b83\u7684\u526f\u4f5c\u7528\u5c31\u662f\u66f4\u65b0\u4e8b\u4ef6\u548c\u66f4\u65b0\u4e2d\u65ad\u662f\u540c\u65f6\u53d1\u751f\u7684&#xff0c;\u66f4\u65b0\u4e2d\u65ad<\/span>   <span style=\"color:#7030a0\">\u4f1a\u7f6e\u66f4\u65b0\u4e2d\u65ad\u6807\u5fd7\u4f4d&#xff0c;\u4e4b\u540e\u4e00\u4f46\u521d\u59cb\u5316\u5b8c\u6210&#xff0c;\u66f4\u65b0\u4e2d\u65ad\u5c31\u4f1a\u7acb\u523b\u8fdb\u5165<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#7030a0\">\u89e3\u51b3\u65b9\u6848&#xff1a;\u5728TimeBaselnit\u7684\u540e\u9762&#xff0c;\u5f00\u542f\u4e2d\u65ad\u7684\u524d\u9762&#xff0c;\u518d\u624b\u52a8\u8c03\u7528\u4e00\u4e0bTIM_ClearFlag<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#7030a0\">\u7528TIM_ClearFlag(TIM2,TIM_FLAG_Update);\u624b\u52a8\u628a\u66f4\u65b0\u4e2d\u65ad\u6807\u5fd7\u4f4d\u6e05\u9664\u4e00\u4e0b&#xff0c;\u5c31<\/span> <span style=\"color:#7030a0\">\u80fd\u907f\u514d\u521a\u521d\u59cb\u5316\u5b8c\u5c31\u8fdb\u4e2d\u65ad\u7684\u95ee\u9898\u4e86<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u628a\u7ed3\u6784\u4f53\u53d8\u91cf\u8d4b\u4e00\u4e2a\u9ed8\u8ba4\u503c<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_TimeBaseStructInit(TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06ye1ga1wdhd0.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u4f7f\u80fd\u8ba1\u6570\u5668<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_Cmd(TIM_TypeDef* TIMx, FunctionalState NewState);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p><img decoding=\"async\" alt=\"\" src=\"2026-09-06nvjuownzwhi.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u4f7f\u80fd\u4e2d\u65ad\u8f93\u51fa\u4fe1\u53f7&#xff08;\u66f4\u65b0\u4e2d\u65ad&#xff09;\u7684<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ITConfig(TIM_TypeDef* TIMx, uint16_t TIM_IT, FunctionalState NewState);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06j3gxx2lmooh.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u9009\u62e9\u5185\u90e8\u65f6\u949f<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_InternalClockConfig(TIM_TypeDef* TIMx);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u9009\u62e9ITRx\u5176\u4ed6\u5b9a\u65f6\u5668\u7684\u65f6\u949f<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ITRxExternalClockConfig(TIM_TypeDef* TIMx, uint16_t TIM_InputTriggerSource);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06lj3mkiegyjv.png\" \/><\/p>\n<p style=\"margin-left:0.0001pt;text-align:center\"><span style=\"color:#00b050\">\/\/\u9009\u62e9TIx\u6355\u83b7\u901a\u9053\u7684\u65f6\u949f<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_TIxExternalClockConfig(TIM_TypeDef* TIMx,uint16_t TIM_TIxExternalCLKSource,uint16_t TIM_ICPolarity, uint16_t ICFilter);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p><img decoding=\"async\" alt=\"\" src=\"2026-09-06l42kre1fbpd.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u9009\u62e9ETR\u901a\u8fc7\u5916\u90e8\u65f6\u949f\u6a21\u5f0f1\u8f93\u5165\u7684\u65f6\u949f<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">void TIM_ETRClockMode1Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t    TIM_ExtTRGPolarity,uint16_t ExtTRGFilter);<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\u5176\u4e2d\u53c2\u6570ExtTRGPrescaler,\u5916\u90e8\u89e6\u53d1\u9884\u5206\u9891\u5668&#xff0c;\u53ef\u4ee5\u5bf9ETR\u7684\u5916\u90e8\u65f6\u949f\u518d\u63d0\u524d\u505a\u4e00\u4e2a\u5206\u9891<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\">\n<p style=\"margin-left:.0001pt;text-align:left\">\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06xi2c1fsui4d.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u9009\u62e9ETR\u901a\u8fc7\u5916\u90e8\u65f6\u949f\u6a21\u5f0f2\u8f93\u5165\u7684\u65f6\u949f<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ETRClockMode2Config(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, <\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u5355\u72ec\u914d\u7f6eETR\u5f15\u811a\u7684\u9884\u5206\u9891\u5668\u3001\u6781\u6027\u3001\u6ee4\u6ce2\u5668\u53c2\u6570<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity,<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">uint16_t ExtTRGFilter);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#7030a0\">\u521d\u59cb\u540e\u8fd8\u8981\u4fee\u6539\u53c2\u6570&#xff1a;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u5355\u72ec\u5199\u9884\u5206\u9891\u503c\u7684<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_PrescalerConfig(TIM_TypeDef* TIMx, uint16_t Prescaler, uint16_t TIM_PSCReloadMode);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u6539\u53d8\u8ba1\u6570\u5668\u7684\u8ba1\u6570\u6a21\u5f0f<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_CounterModeConfig(TIM_TypeDef* TIMx, uint16_t TIM_CounterMode);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u81ea\u52a8\u91cd\u88c5\u5668\u9884\u88c5\u529f\u80fd\u914d\u7f6e<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ARRPreloadConfig(TIM_TypeDef* TIMx, FunctionalState NewState);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u624b\u52a8\u7ed9\u8ba1\u6570\u5668\u4e00\u4e2a\u8ba1\u6570\u503c<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_SetCounter(TIM_TypeDef* TIMx, uint16_t Counter);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u624b\u52a8\u7ed9\u81ea\u52a8\u91cd\u88c5\u5668\u5199\u5165\u4e00\u4e2a\u503c<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_SetAutoreload(TIM_TypeDef* TIMx, uint16_t Autoreload);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u83b7\u53d6\u5f53\u524d\u8ba1\u6570\u5668\u7684\u503c&#xff08;\u770b\u5f53\u524d\u8ba1\u6570\u5668\u8bb0\u5230\u54ea\u91cc\u4e86&#xff09;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">uint16_t TIM_GetCounter(TIM_TypeDef* TIMx);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u83b7\u53d6\u5f53\u524d\u7684\u9884\u5206\u9891\u5668\u7684\u503c<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">uint16_t TIM_GetPrescaler(TIM_TypeDef* TIMx);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#00b050\">\/\/\u83b7\u53d6\u6807\u5fd7\u4f4d\u548c\u6e05\u9664\u6807\u5fd7\u4f4d<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">FlagStatus TIM_GetFlagStatus(TIM_TypeDef* TIMx, uint16_t TIM_FLAG);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ClearFlag(TIM_TypeDef* TIMx, uint16_t TIM_FLAG);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">ITStatus TIM_GetITStatus(TIM_TypeDef* TIMx, uint16_t TIM_IT);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">void TIM_ClearITPendingBit(TIM_TypeDef* TIMx, uint16_t TIM_IT);<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">Timer\u4ee3\u7801\u6a21\u5757\u5982\u4e0b&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">Timer<\/span><span style=\"color:#ff0000\">.c<\/span><span style=\"color:#ff0000\">&#xff08;\u5b9a\u65f6\u5668&#xff09;\u2193<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p>&#034;stm32f10x.h&#034;                  \/\/ Device header<\/p>\n<p>void Timer_Init(void)<br \/>\n{<br \/>\nRCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2,ENABLE);<\/p>\n<p>TIM_InternalClockConfig(TIM2);<\/p>\n<p>TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStructure;<br \/>\nTIM_TimeBaseInitStructure.TIM_ClockDivision &#061; TIM_CKD_DIV1;<br \/>\nTIM_TimeBaseInitStructure.TIM_CounterMode &#061; TIM_CounterMode_Up;<br \/>\nTIM_TimeBaseInitStructure.TIM_Period &#061; 10000 &#8211; 1;\/\/\u91cd\u88c5\u503c&#xff08;\u8bb0\u591a\u5c11\u6b21\u6570\u6ea2\u51fa\u4e00\u6b21&#xff09;<br \/>\nTIM_TimeBaseInitStructure.TIM_Prescaler &#061; 7200 &#8211; 1;\/\/\u9884\u5206\u9891\u503c&#xff08;\u5185\u90e8\u65f6\u949f\u7535\u5e73\u4e00\u4e0a\u4e00\u4e0b\u591a\u5c11\u6b21\u8ba1\u4e00\u4e2a\u6570&#xff09;<br \/>\nTIM_TimeBaseInitStructure.TIM_RepetitionCounter &#061; 0;<br \/>\nTIM_TimeBaseInit(TIM2,&amp;TIM_TimeBaseInitStructure);<\/p>\n<p>TIM_ClearFlag(TIM2,TIM_FLAG_Update);<br \/>\nTIM_ITConfig(TIM2,TIM_IT_Update,ENABLE);<\/p>\n<p>NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);<\/p>\n<p>NVIC_InitTypeDef NVIC_InitStructure;<br \/>\nNVIC_InitStructure.NVIC_IRQChannel &#061; TIM2_IRQn;<br \/>\nNVIC_InitStructure.NVIC_IRQChannelCmd &#061; ENABLE;<br \/>\nNVIC_InitStructure.NVIC_IRQChannelPreemptionPriority &#061; 2;<br \/>\nNVIC_InitStructure.NVIC_IRQChannelSubPriority &#061; 1;<br \/>\nNVIC_Init(&amp;NVIC_InitStructure);<\/p>\n<p>TIM_Cmd(TIM2,ENABLE);<\/p>\n<p>}<\/p>\n<p>\/*<br \/>\nvoid TIM2_IRQHandler(void)<br \/>\n{<br \/>\nif( TIM_GetITStatus(TIM2,TIM_IT_Update)&#061;&#061;SET )<br \/>\n{<\/p>\n<p>TIM_ClearITPendingBit(TIM2,TIM_IT_Update);<br \/>\n}<br \/>\n}<\/p>\n<p>*\/<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">\u5b9e\u4f8b\u4e006.1.1 \u5b9a\u65f6\u5668\u5b9a\u65f6\u4e2d\u65ad<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">main.c\u2193<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>#include &#034;stm32f10x.h&#034;                  \/\/ Device header<br \/>\n#include &#034;Delay.h&#034;<br \/>\n#include &#034;OLED.h&#034;<br \/>\n#include &#034;Timer.h&#034;<\/p>\n<p>uint16_t Num;<\/p>\n<p>int main(void)<br \/>\n{<br \/>\nOLED_Init();<br \/>\nTimer_Init();<\/p>\n<p>OLED_ShowString(1,1,&#034;Num:&#034;);<br \/>\nOLED_ShowString(2,1,&#034;CNT:&#034;);<\/p>\n<p>while(1)<br \/>\n{<br \/>\nOLED_ShowNum(1,5,Num,5);<br \/>\nOLED_ShowNum(2,5,TIM_GetCounter(TIM2),5);<\/p>\n<p>}<br \/>\n}<\/p>\n<p>void TIM2_IRQHandler(void)<br \/>\n{<br \/>\nif( TIM_GetITStatus(TIM2,TIM_IT_Update)&#061;&#061;SET )<br \/>\n{<br \/>\nNum &#043;&#043;;<br \/>\nTIM_ClearITPendingBit(TIM2,TIM_IT_Update);<br \/>\n}<br \/>\n}<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06txm4zsg2ufz.png\" \/><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\">13\u3001\u5b9e\u4f8b\u4e8c6.2.1 \u5b9a\u65f6\u5668\u5916\u90e8\u65f6\u949f<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\u6211\u4eec\u5220\u53bb\u4f7f\u7528\u5185\u90e8\u65f6\u949f\u7684\u4ee3\u7801&#xff1a;<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">TIM_InternalClockConfig(TIM2);<\/span><\/p>\n<p style=\"margin-left:0;text-align:left\">\u6539\u4e3a\u4f7f\u7528\u5916\u90e8\u65f6\u949f2&#xff0c;\u5176\u4e2d0x0F\u662f\u53c2\u6570 ExtTRGFilter \u6570\u5b57\u6ee4\u6ce2&#xff0c;\u53d6\u503c 0x00 ~ 0x0F&#xff0c;0x00&#xff1a;\u5173\u95ed\u6ee4\u6ce2&#xff0c;0x0F&#xff1a;\u6700\u5927\u6ee4\u6ce2&#xff0c;\u9700\u8981\u8fde\u7eed 8 \u4e2a\u91c7\u6837\u5468\u671f\u7535\u5e73\u4e0d\u53d8\u624d\u5224\u5b9a\u6709\u6548\u8fb9\u6cbf&#xff0c;\u6291\u5236\u6296\u52a8&#xff0c;\u76f8\u5e94\u7684&#xff0c;\u54cd\u5e94\u65f6\u95f4\u53d8\u6162<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE);<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">GPIO_InitTypeDef GPIO_InitStructure;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">GPIO_InitStructure.GPIO_Mode &#061; GPIO_Mode_IPU;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">GPIO_InitStructure.GPIO_Pin &#061; GPIO_Pin_0;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">GPIO_InitStructure.GPIO_Speed &#061; GPIO_Speed_50MHz;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">GPIO_Init(GPIOA,&amp;GPIO_InitStructure);<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#0000ff\">TIM_ETRClockMode2Config(TIM2,TIM_ExtTRGPSC_OFF,TIM_ExtTRGPolarity_NonInverted<\/span><span style=\"color:#ff0000\">,<span style=\"background-color:null\">0x0F<\/span><\/span><span style=\"color:#0000ff\">);<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">Timer<\/span><span style=\"color:#ff0000\">.c<\/span><span style=\"color:#ff0000\">&#xff08;\u5b9a\u65f6\u5668&#xff09;\u2193<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p>#include &#034;stm32f10x.h&#034;                  \/\/ Device header<\/p>\n<p>void Timer_Init(void)<br \/>\n{<br \/>\nRCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2,ENABLE);<br \/>\nRCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE);<\/p>\n<p>GPIO_InitTypeDef GPIO_InitStructure;<br \/>\nGPIO_InitStructure.GPIO_Mode &#061; GPIO_Mode_IPU;<br \/>\nGPIO_InitStructure.GPIO_Pin &#061; GPIO_Pin_0;<br \/>\nGPIO_InitStructure.GPIO_Speed &#061; GPIO_Speed_50MHz;<br \/>\nGPIO_Init(GPIOA,&amp;GPIO_InitStructure);<\/p>\n<p>TIM_ETRClockMode2Config(TIM2,TIM_ExtTRGPSC_OFF,TIM_ExtTRGPolarity_NonInverted,0x0F);<\/p>\n<p>TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStructure;<br \/>\nTIM_TimeBaseInitStructure.TIM_ClockDivision &#061; TIM_CKD_DIV1;<br \/>\nTIM_TimeBaseInitStructure.TIM_CounterMode &#061; TIM_CounterMode_Up;<br \/>\nTIM_TimeBaseInitStructure.TIM_Period &#061; 10 &#8211; 1;\/\/\u91cd\u88c5\u503c&#xff08;\u8bb0\u591a\u5c11\u6b21\u6570\u6ea2\u51fa\u4e00\u6b21&#xff09;<br \/>\nTIM_TimeBaseInitStructure.TIM_Prescaler &#061; 1 &#8211; 1;\/\/\u9884\u5206\u9891\u503c&#xff08;\u5185\u90e8\u65f6\u949f\u7535\u5e73\u4e00\u4e0a\u4e00\u4e0b\u591a\u5c11\u6b21\u8ba1\u4e00\u4e2a\u6570&#xff09;<br \/>\nTIM_TimeBaseInitStructure.TIM_RepetitionCounter &#061; 0;<br \/>\nTIM_TimeBaseInit(TIM2,&amp;TIM_TimeBaseInitStructure);<\/p>\n<p>TIM_ClearFlag(TIM2,TIM_FLAG_Update);<br \/>\nTIM_ITConfig(TIM2,TIM_IT_Update,ENABLE);<\/p>\n<p>NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);<\/p>\n<p>NVIC_InitTypeDef NVIC_InitStructure;<br \/>\nNVIC_InitStructure.NVIC_IRQChannel &#061; TIM2_IRQn;<br \/>\nNVIC_InitStructure.NVIC_IRQChannelCmd &#061; ENABLE;<br \/>\nNVIC_InitStructure.NVIC_IRQChannelPreemptionPriority &#061; 2;<br \/>\nNVIC_InitStructure.NVIC_IRQChannelSubPriority &#061; 1;<br \/>\nNVIC_Init(&amp;NVIC_InitStructure);<\/p>\n<p>TIM_Cmd(TIM2,ENABLE);<\/p>\n<p>}<\/p>\n<p>uint16_t Timer_GetCounter(void)<br \/>\n{<br \/>\nreturn TIM_GetCounter(TIM2);<br \/>\n}<\/p>\n<p>\/*<br \/>\nvoid TIM2_IRQHandler(void)<br \/>\n{<br \/>\nif( TIM_GetITStatus(TIM2,TIM_IT_Update)&#061;&#061;SET )<br \/>\n{<\/p>\n<p>TIM_ClearITPendingBit(TIM2,TIM_IT_Update);<br \/>\n}<br \/>\n}<\/p>\n<p>*\/<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\"><span style=\"color:#ff0000\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">main.c\u2193<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>#include &#034;stm32f10x.h&#034;                  \/\/ Device header<br \/>\n#include &#034;Delay.h&#034;<br \/>\n#include &#034;OLED.h&#034;<br \/>\n#include &#034;Timer.h&#034;<\/p>\n<p>uint16_t Num;<\/p>\n<p>int main(void)<br \/>\n{<br \/>\nOLED_Init();<br \/>\nTimer_Init();<\/p>\n<p>OLED_ShowString(1,1,&#034;Num:&#034;);<br \/>\nOLED_ShowString(2,1,&#034;CNT:&#034;);<\/p>\n<p>while(1)<br \/>\n{<br \/>\nOLED_ShowNum(1,5,Num,5);<br \/>\nOLED_ShowNum(2,5,Timer_GetCounter(),5);<\/p>\n<p>}<br \/>\n}<\/p>\n<p>void TIM2_IRQHandler(void)<br \/>\n{<br \/>\nif( TIM_GetITStatus(TIM2,TIM_IT_Update)&#061;&#061;SET )<br \/>\n{<br \/>\nNum &#043;&#043;;<br \/>\nTIM_ClearITPendingBit(TIM2,TIM_IT_Update);<br \/>\n}<br \/>\n}<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2026-09-06ftno3vfbgj3.png\" \/><\/p>\n<\/p>\n<h2 style=\"background-color:transparent\">\u4e8c\u3001\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u56f4\u7ed5 STM32 \u7684 TIM \u5b9a\u65f6\u5668\u5c55\u5f00&#xff0c;\u7cfb\u7edf\u68b3\u7406\u4e86\u5b9a\u65f6\u4e2d\u65ad\u7684\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\u3002\u9996\u5148\u4ecb\u7ecd\u4e86 TIM \u7684\u57fa\u672c\u6982\u5ff5\u4e0e\u4e09\u79cd\u5b9a\u65f6\u5668\u7c7b\u578b&#xff08;\u57fa\u672c\u3001\u901a\u7528\u3001\u9ad8\u7ea7&#xff09;&#xff0c;\u5e76\u91cd\u70b9\u8bb2\u89e3\u4e86\u65f6\u57fa\u5355\u5143\u4e2d\u9884\u5206\u9891\u5668\u3001\u8ba1\u6570\u5668\u4e0e\u81ea\u52a8\u91cd\u88c5\u5bc4\u5b58\u5668\u7684\u5de5\u4f5c\u539f\u7406\u3002\u968f\u540e\u901a\u8fc7\u9884\u5206\u9891\u5668\u65f6\u5e8f\u3001\u8ba1\u6570\u5668\u65f6\u5e8f\u4ee5\u53ca\u6709\u65e0\u9884\u88c5\u65f6\u5e8f\u7684\u5bf9\u6bd4&#xff0c;\u6df1\u5165\u8bf4\u660e\u4e86\u8ba1\u6570\u9891\u7387\u3001\u6ea2\u51fa\u9891\u7387\u7684\u8ba1\u7b97\u65b9\u6cd5&#xff0c;\u4ee5\u53ca\u7f13\u51b2\u5bc4\u5b58\u5668\u5728\u53c2\u6570\u66f4\u65b0\u4e2d\u7684\u5173\u952e\u4f5c\u7528\u3002<\/p>\n<p>\u5728\u65f6\u949f\u90e8\u5206&#xff0c;\u672c\u6587\u8be6\u7ec6\u89e3\u6790\u4e86 RCC \u65f6\u949f\u6811\u7684\u914d\u7f6e\u6d41\u7a0b&#xff0c;\u5305\u62ec\u5185\u90e8\u65f6\u949f\u542f\u52a8\u3001\u5916\u90e8\u6676\u632f\u500d\u9891\u5230 72MHz \u7684\u5207\u6362\u8fc7\u7a0b&#xff0c;\u4ee5\u53ca AHB\u3001APB1\u3001APB2 \u603b\u7ebf\u7684\u5206\u9891\u5173\u7cfb&#xff0c;\u5e2e\u52a9\u8bfb\u8005\u7406\u89e3\u5b9a\u65f6\u5668\u57fa\u51c6\u65f6\u949f\u7684\u6765\u6e90\u3002\u6700\u540e\u901a\u8fc7\u4e24\u4e2a\u5b9e\u6218\u5b9e\u4f8b\u2014\u2014\u5b9a\u65f6\u5668\u5b9a\u65f6\u4e2d\u65ad\u4e0e\u5b9a\u65f6\u5668\u5916\u90e8\u65f6\u949f&#xff0c;\u6f14\u793a\u4e86\u4ece\u5e93\u51fd\u6570\u521d\u59cb\u5316\u3001NVIC \u4e2d\u65ad\u914d\u7f6e\u5230\u4e3b\u7a0b\u5e8f\u8c03\u7528\u7684\u5b8c\u6574\u5f00\u53d1\u6d41\u7a0b&#xff0c;\u5e76\u7ed9\u51fa\u4e86\u53ef\u76f4\u63a5\u8fd0\u884c\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<p>\u638c\u63e1 TIM \u5b9a\u65f6\u4e2d\u65ad&#xff0c;\u662f\u5b66\u4e60 STM32 \u5916\u8bbe\u5f00\u53d1\u7684\u91cd\u8981\u57fa\u7840\u3002\u7406\u89e3\u65f6\u57fa\u5355\u5143\u7684\u8ba1\u6570\u903b\u8f91\u3001\u9884\u5206\u9891\u4e0e\u91cd\u88c5\u503c\u7684\u914d\u5408\u5173\u7cfb&#xff0c;\u4ee5\u53ca\u65f6\u949f\u6811\u7684\u65f6\u949f\u6765\u6e90&#xff0c;\u662f\u7075\u6d3b\u8fd0\u7528\u5b9a\u65f6\u5668\u7684\u5173\u952e\u3002\u5efa\u8bae\u8bfb\u8005\u5728\u7406\u89e3\u539f\u7406\u7684\u57fa\u7840\u4e0a&#xff0c;\u52a8\u624b\u5b8c\u6210\u4e24\u4e2a\u5b9e\u4f8b\u7684\u4ee3\u7801\u7f16\u5199\u4e0e\u8c03\u8bd5&#xff0c;\u5e76\u5c1d\u8bd5\u4fee\u6539\u9884\u5206\u9891\u503c\u548c\u91cd\u88c5\u503c&#xff0c;\u89c2\u5bdf\u5b9a\u65f6\u65f6\u95f4\u7684\u53d8\u5316&#xff0c;\u4ece\u800c\u52a0\u6df1\u5bf9\u5b9a\u65f6\u5668\u5de5\u4f5c\u673a\u5236\u7684\u7406\u89e3\u3002<\/p>\n<\/p>\n<p>\u90fd\u770b\u5230\u8fd9\u4e86\u70b9\u70b9\u8d5e\u5427&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e0a\u4e00\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u5b66\u4e60\u4e86 EXTI \u5916\u90e8\u4e2d\u65ad&#xff0c;\u638c\u63e1\u4e86\u5982\u4f55\u901a\u8fc7\u5916\u90e8\u5f15\u811a\u7684\u7535\u5e73\u53d8\u5316\u6765\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u4ece\u800c\u8ba9 CPU \u53ca\u65f6\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6\u3002\u7136\u800c\u5728\u5b9e\u9645\u7684\u5d4c\u5165\u5f0f\u5f00\u53d1\u4e2d&#xff0c;\u9664\u4e86\u9700\u8981\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6&#xff0c;\u6211\u4eec\u8fd8\u7ecf\u5e38\u9700\u8981\u7cbe\u786e\u5730\u63a7\u5236\u65f6\u95f4&#xff0c;\u6bd4\u5982\u5b9a\u65f6\u91c7\u96c6\u4f20\u611f\u5668\u6570\u636e\u3001\u5468\u671f\u6027\u5237\u65b0\u663e\u793a\u3001\u4ea7\u751f PWM \u6ce2\u5f62\u7b49\u3002\u5982\u679c\u5355\u7eaf\u4f9d\u9760\u4e3b\u5faa\u73af\u7684\u5ef6\u65f6\u51fd\u6570&#xff0c;\u4e0d\u4ec5\u4f1a\u963b\u585e CPU \u7684\u6267\u884c&#xff0c;\u800c\u4e14\u96be\u4ee5\u4fdd\u8bc1\u65f6\u95f4\u7684\u51c6\u786e\u6027\u3002\u8fd9\u65f6&#xff0c;S<\/p>\n","protected":false},"author":2,"featured_media":101426,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[217,270,371,269,305],"topic":[],"class_list":["post-101446","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-stm32","tag-270","tag-371","tag-269","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/101446.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u4e0a\u4e00\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u5b66\u4e60\u4e86 EXTI \u5916\u90e8\u4e2d\u65ad&#xff0c;\u638c\u63e1\u4e86\u5982\u4f55\u901a\u8fc7\u5916\u90e8\u5f15\u811a\u7684\u7535\u5e73\u53d8\u5316\u6765\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u4ece\u800c\u8ba9 CPU \u53ca\u65f6\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6\u3002\u7136\u800c\u5728\u5b9e\u9645\u7684\u5d4c\u5165\u5f0f\u5f00\u53d1\u4e2d&#xff0c;\u9664\u4e86\u9700\u8981\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6&#xff0c;\u6211\u4eec\u8fd8\u7ecf\u5e38\u9700\u8981\u7cbe\u786e\u5730\u63a7\u5236\u65f6\u95f4&#xff0c;\u6bd4\u5982\u5b9a\u65f6\u91c7\u96c6\u4f20\u611f\u5668\u6570\u636e\u3001\u5468\u671f\u6027\u5237\u65b0\u663e\u793a\u3001\u4ea7\u751f PWM \u6ce2\u5f62\u7b49\u3002\u5982\u679c\u5355\u7eaf\u4f9d\u9760\u4e3b\u5faa\u73af\u7684\u5ef6\u65f6\u51fd\u6570&#xff0c;\u4e0d\u4ec5\u4f1a\u963b\u585e CPU \u7684\u6267\u884c&#xff0c;\u800c\u4e14\u96be\u4ee5\u4fdd\u8bc1\u65f6\u95f4\u7684\u51c6\u786e\u6027\u3002\u8fd9\u65f6&#xff0c;S\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/101446.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-06T13:02:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130225-6a9d64613dc78.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101446.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/101446.html\",\"name\":\"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-06T13:02:30+00:00\",\"dateModified\":\"2026-09-06T13:02:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/101446.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/101446.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101446.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/101446.html","og_locale":"zh_CN","og_type":"article","og_title":"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u4e0a\u4e00\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u5b66\u4e60\u4e86 EXTI \u5916\u90e8\u4e2d\u65ad&#xff0c;\u638c\u63e1\u4e86\u5982\u4f55\u901a\u8fc7\u5916\u90e8\u5f15\u811a\u7684\u7535\u5e73\u53d8\u5316\u6765\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u4ece\u800c\u8ba9 CPU \u53ca\u65f6\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6\u3002\u7136\u800c\u5728\u5b9e\u9645\u7684\u5d4c\u5165\u5f0f\u5f00\u53d1\u4e2d&#xff0c;\u9664\u4e86\u9700\u8981\u54cd\u5e94\u5916\u90e8\u4e8b\u4ef6&#xff0c;\u6211\u4eec\u8fd8\u7ecf\u5e38\u9700\u8981\u7cbe\u786e\u5730\u63a7\u5236\u65f6\u95f4&#xff0c;\u6bd4\u5982\u5b9a\u65f6\u91c7\u96c6\u4f20\u611f\u5668\u6570\u636e\u3001\u5468\u671f\u6027\u5237\u65b0\u663e\u793a\u3001\u4ea7\u751f PWM \u6ce2\u5f62\u7b49\u3002\u5982\u679c\u5355\u7eaf\u4f9d\u9760\u4e3b\u5faa\u73af\u7684\u5ef6\u65f6\u51fd\u6570&#xff0c;\u4e0d\u4ec5\u4f1a\u963b\u585e CPU \u7684\u6267\u884c&#xff0c;\u800c\u4e14\u96be\u4ee5\u4fdd\u8bc1\u65f6\u95f4\u7684\u51c6\u786e\u6027\u3002\u8fd9\u65f6&#xff0c;S","og_url":"https:\/\/www.wsisp.com\/helps\/101446.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-06T13:02:30+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260906130225-6a9d64613dc78.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/101446.html","url":"https:\/\/www.wsisp.com\/helps\/101446.html","name":"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-06T13:02:30+00:00","dateModified":"2026-09-06T13:02:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/101446.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/101446.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/101446.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"TIM\u5b9a\u65f6\u4e2d\u65ad\uff08STM32\u6807\u51c6\u5e93\u5b66\u4e60\u7b14\u8bb0\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=101446"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101446\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/101426"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=101446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=101446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=101446"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=101446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}