{"id":69327,"date":"2026-01-31T13:17:07","date_gmt":"2026-01-31T05:17:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/69327.html"},"modified":"2026-01-31T13:17:07","modified_gmt":"2026-01-31T05:17:07","slug":"%e8%93%9d%e6%a1%a5%e6%9d%af%e5%b5%8c%e5%85%a5%e5%bc%8f-%e8%84%89%e5%86%b2%e6%8d%95%e8%8e%b7%ef%bc%88%e9%a2%91%e7%8e%87%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/69327.html","title":{"rendered":"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\uff09"},"content":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u662f\u5728\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-LCD\u5b8c\u6574\u7684\u9879\u76ee\u4e0b\u8865\u5145\u5b8c\u6210\u7684\u3002\u5982\u679c\u9700\u8981\u4ee3\u7801&#xff0c;\u76f4\u63a5\u770b\u7b2c\u56db\u90e8\u5206\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002<\/p>\n<h3>\u4e00\u3001STM32CubMX\u914d\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051700-697d904c8f20c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051701-697d904d3b773.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051701-697d904de26d9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051702-697d904eae822.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e8c\u3001\u4ee3\u7801\u65b9\u9762<\/h3>\n<h4>2.1 main.c<\/h4>\n<h5>2.1.1 \u4fee\u6539\u4f4d\u7f6e<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051703-697d904f64ae2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>2.1.2 \u5bf9\u5e94\u4ee3\u7801<\/h5>\n<p>  <span class=\"token function\">HAL_TIM_IC_Start_DMA<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>htim3<span class=\"token punctuation\">,<\/span>TIM_CHANNEL_1<span class=\"token punctuation\">,<\/span>tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/R39-pwm\u8f93\u5165\u6355\u83b7&#xff08;\u9891\u7387&#xff09;<\/span><br \/>\n  <span class=\"token function\">HAL_TIM_IC_Start_DMA<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>htim8<span class=\"token punctuation\">,<\/span>TIM_CHANNEL_1<span class=\"token punctuation\">,<\/span>tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/R40-pwm\u8f93\u5165\u6355\u83b7&#xff08;\u9891\u7387&#xff09;<\/span><\/p>\n<h4>2.2 task.c<\/h4>\n<h5>2.2.1 \u4fee\u6539\u4f4d\u7f6e<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051704-697d90500e9b9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051704-697d9050b710d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>2.2.2 \u5bf9\u5e94\u4ee3\u7801<\/h5>\n<p><span class=\"token class-name\">uint32_t<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">uint32_t<\/span> tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">uint32_t<\/span> tim_ic_val<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">ic_proc<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint8_t<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">64<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#043;&#061;<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#043;&#061;<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">\/&#061;<\/span> <span class=\"token number\">64<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">\/&#061;<\/span> <span class=\"token number\">64<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    tim_ic_val<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1000000.0f<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">float<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    tim_ic_val<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1000000.0f<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">float<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>tim_ic_temp<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">lcd_proc<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">lcddisplay<\/span><span class=\"token punctuation\">(<\/span>Line1<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034; R39:%d R40:%d   &#034;<\/span><span class=\"token punctuation\">,<\/span> tim_ic_val<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> tim_ic_val<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/R39\u3001R40\u7684\u6355\u83b7\u9891\u7387\u503c\u663e\u793a<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token class-name\">task_t<\/span> <span class=\"token class-name\">scheduler_t<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span>lcd_proc<span class=\"token punctuation\">,<\/span><span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">{<\/span>ic_proc<span class=\"token punctuation\">,<\/span> <span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>2.3 task.h<\/h4>\n<h5>2.3.1 \u4fee\u6539\u4f4d\u7f6e<\/h5>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051705-697d9051823fe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>2.3.2 \u5bf9\u5e94\u4ee3\u7801<\/h5>\n<p><span class=\"token keyword\">extern<\/span> <span class=\"token class-name\">uint32_t<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h3>\u4e09\u3001\u5176\u4ed6<\/h3>\n<h4>3.1 \u5355\u8109\u51b2\u6355\u83b7\u4ee3\u7801(\u4e0b\u8f7d\u8d44\u6599\u542b\u4f8b\u7a0b)<\/h4>\n<p>STM32CubMX\u53ea\u7528\u914d\u7f6e\u9700\u8981\u4f7f\u7528\u7684(R39\/R40)&#xff0c;\u4ee3\u7801\u7684\u4f4d\u7f6e\u4e0e\u672c\u6587\u7b2c\u4e8c\u90e8\u5206\u5185\u5bb9\u76f8\u540c\u3002\u4f8b\u7a0b\u4e3aR40\u3002<\/p>\n<h5>main.c<\/h5>\n<p><span class=\"token comment\">\/*\u5982\u679c\u4f7f\u7528R39&#xff0c;\u53ea\u9700\u8981\u5c06\u8fd9\u4e2a\u51fd\u6570\u7684htim8\u6539\u4e3ahtim3\u5373\u53ef&#xff0c;task.c\u3001task.h\u4e0d\u7528\u4fee\u6539\u4efb\u4f55\u4e1c\u897f*\/<\/span><br \/>\n  <span class=\"token function\">HAL_TIM_IC_Start_DMA<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>htim8<span class=\"token punctuation\">,<\/span>TIM_CHANNEL_1<span class=\"token punctuation\">,<\/span>tim_ic_buffer<span class=\"token punctuation\">,<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/R40-PA15<\/span><\/p>\n<p><span class=\"token comment\">\/*R39\u4f7f\u7528\u4ee5\u4e0b\u51fd\u6570(STM32CubMX\u914d\u7f6e\u53c2\u8003\u672c\u6587\u7b2c\u4e00\u90e8\u5206&#xff0c;\u53ea\u914d\u7f6eR39\u76f8\u5173\u5373\u53ef)*\/<\/span><br \/>\n<span class=\"token comment\">\/\/HAL_TIM_IC_Start_DMA(&amp;htim3,TIM_CHANNEL_1,tim_ic_buffer[0],64); \/\/R39-PB4<\/span><\/p>\n<h5>task.c<\/h5>\n<p><span class=\"token class-name\">uint32_t<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">uint32_t<\/span> tim_ic_temp<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">uint32_t<\/span> tim_ic_val<span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">ic_proc<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    tim_ic_temp <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint8_t<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">64<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        tim_ic_temp <span class=\"token operator\">&#043;&#061;<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span>i<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    tim_ic_temp <span class=\"token operator\">\/&#061;<\/span> <span class=\"token number\">64<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    tim_ic_val <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1000000.0f<\/span> <span class=\"token operator\">\/<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">float<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">(<\/span>tim_ic_temp<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">lcd_proc<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">lcddisplay<\/span><span class=\"token punctuation\">(<\/span>Line1<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034; R40:%d   &#034;<\/span><span class=\"token punctuation\">,<\/span> tim_ic_val<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> \u503c\u663e\u793a<br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token class-name\">task_t<\/span> <span class=\"token class-name\">scheduler_t<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span>lcd_proc<span class=\"token punctuation\">,<\/span><span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">{<\/span>ic_proc<span class=\"token punctuation\">,<\/span> <span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h5>task.h<\/h5>\n<p><span class=\"token keyword\">extern<\/span> <span class=\"token class-name\">uint32_t<\/span> tim_ic_buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">64<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>3.2 \u5b8c\u6574\u4ee3\u7801\u4e0b\u8f7d<\/h4>\n<p>\u8d44\u6599\u4e0b\u8f7d&#xff1a;https:\/\/pan.quark.cn\/s\/08f8e6116512<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u662f\u5728\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-LCD\u5b8c\u6574\u7684\u9879\u76ee\u4e0b\u8865\u5145\u5b8c\u6210\u7684\u3002\u5982\u679c\u9700\u8981\u4ee3\u7801&#xff0c;\u76f4\u63a5\u770b\u7b2c\u56db\u90e8\u5206\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002<br \/>\n\u4e00\u3001STM32CubMX\u914d\u7f6e \u4e8c\u3001\u4ee3\u7801\u65b9\u9762<br \/>\n2.1 main.c<br \/>\n2.1.1 \u4fee\u6539\u4f4d\u7f6e 2.1.2 \u5bf9\u5e94\u4ee3\u7801 HAL_TIM_IC_Start_DMA(&amp;htim3,TIM_CHANNEL_1,tim_ic_buffer[0],64); \/\/R39-pwm\u8f93\u5165\u6355\u83b7&#xff08;\u9891\u7387&#xff09;HAL_TIM_IC_Start_DMA(&amp;htim8,TIM<\/p>\n","protected":false},"author":2,"featured_media":69319,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[822,217,270,269,729],"topic":[],"class_list":["post-69327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mcu","tag-stm32","tag-270","tag-269","tag-729"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\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\/69327.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u7bc7\u6587\u7ae0\u662f\u5728\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-LCD\u5b8c\u6574\u7684\u9879\u76ee\u4e0b\u8865\u5145\u5b8c\u6210\u7684\u3002\u5982\u679c\u9700\u8981\u4ee3\u7801&#xff0c;\u76f4\u63a5\u770b\u7b2c\u56db\u90e8\u5206\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002 \u4e00\u3001STM32CubMX\u914d\u7f6e \u4e8c\u3001\u4ee3\u7801\u65b9\u9762 2.1 main.c 2.1.1 \u4fee\u6539\u4f4d\u7f6e 2.1.2 \u5bf9\u5e94\u4ee3\u7801 HAL_TIM_IC_Start_DMA(&amp;htim3,TIM_CHANNEL_1,tim_ic_buffer[0],64); \/\/R39-pwm\u8f93\u5165\u6355\u83b7&#xff08;\u9891\u7387&#xff09;HAL_TIM_IC_Start_DMA(&amp;htim8,TIM\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/69327.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-31T05:17:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051700-697d904c8f20c.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/69327.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/69327.html\",\"name\":\"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-31T05:17:07+00:00\",\"dateModified\":\"2026-01-31T05:17:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/69327.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/69327.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/69327.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\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":"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\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\/69327.html","og_locale":"zh_CN","og_type":"article","og_title":"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u7bc7\u6587\u7ae0\u662f\u5728\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-LCD\u5b8c\u6574\u7684\u9879\u76ee\u4e0b\u8865\u5145\u5b8c\u6210\u7684\u3002\u5982\u679c\u9700\u8981\u4ee3\u7801&#xff0c;\u76f4\u63a5\u770b\u7b2c\u56db\u90e8\u5206\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002 \u4e00\u3001STM32CubMX\u914d\u7f6e \u4e8c\u3001\u4ee3\u7801\u65b9\u9762 2.1 main.c 2.1.1 \u4fee\u6539\u4f4d\u7f6e 2.1.2 \u5bf9\u5e94\u4ee3\u7801 HAL_TIM_IC_Start_DMA(&amp;htim3,TIM_CHANNEL_1,tim_ic_buffer[0],64); \/\/R39-pwm\u8f93\u5165\u6355\u83b7&#xff08;\u9891\u7387&#xff09;HAL_TIM_IC_Start_DMA(&amp;htim8,TIM","og_url":"https:\/\/www.wsisp.com\/helps\/69327.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-31T05:17:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260131051700-697d904c8f20c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/69327.html","url":"https:\/\/www.wsisp.com\/helps\/69327.html","name":"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-31T05:17:07+00:00","dateModified":"2026-01-31T05:17:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/69327.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/69327.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/69327.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u84dd\u6865\u676f\u5d4c\u5165\u5f0f-\u8109\u51b2\u6355\u83b7\uff08\u9891\u7387\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\/69327","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=69327"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/69327\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/69319"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=69327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=69327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=69327"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=69327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}