{"id":59499,"date":"2023-11-01T21:42:48","date_gmt":"2023-11-01T13:42:48","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=59499"},"modified":"2023-11-01T21:42:48","modified_gmt":"2023-11-01T13:42:48","slug":"ujsyzgxdsjcsfs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/59499.html","title":{"rendered":"UART DMA\u63a5\u6536\uff1a\u4e00\u79cd\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f"},"content":{"rendered":"
UART DMA\u63a5\u6536\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u83b7\u5f97\u66f4\u5feb\u7684\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u3002\u5b83\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff0c\u5c06\u8bbe\u5907\u7684\u6570\u636e\u7f13\u5b58\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u4f7f\u7528DMA\uff08Direct Memory Access\uff09\u6280\u672f\u5c06\u6570\u636e\u4ece\u5185\u5b58\u4e2d\u76f4\u63a5\u53d1\u9001\u5230UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u63a5\u53e3\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\uff08ISR\uff09\u6765\u5904\u7406\u6bcf\u4e00\u4e2a\u5b57\u8282\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u901f\u5ea6\uff0c\u540c\u65f6\u964d\u4f4eCPU\u7684\u8d1f\u62c5\u3002<\/p>\n
UART DMA\u63a5\u6536\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u901f\u5ea6\uff0c\u6bd4\u4f7f\u7528ISR\u5904\u7406\u6bcf\u4e2a\u5b57\u8282\u8981\u5feb\u5f97\u591a\u3002\u56e0\u4e3a\u5b83\u53ef\u4ee5\u76f4\u63a5\u4ece\u5185\u5b58\u4e2d\u53d1\u9001\u6570\u636e\uff0c\u800c\u4e0d\u5fc5\u7b49\u5f85\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u7684\u5904\u7406\uff0c\u6240\u4ee5\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u53ef\u4ee5\u63d0\u9ad8\u51e0\u500d\u3002<\/p>\n
UART DMA\u63a5\u6536\u53ef\u4ee5\u51cf\u8f7bCPU\u7684\u8d1f\u62c5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u76f4\u63a5\u4ece\u5185\u5b58\u4e2d\u53d1\u9001\u6570\u636e\uff0c\u800c\u4e0d\u9700\u8981CPU\u7684\u53c2\u4e0e\uff0c\u6240\u4ee5\u53ef\u4ee5\u8ba9CPU\u4e13\u6ce8\u4e8e\u5176\u4ed6\u4efb\u52a1\u3002<\/p>\n
\u7531\u4e8eUART DMA\u63a5\u6536\u53ef\u4ee5\u6781\u5927\u5730\u51cf\u5c11\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u7684\u5904\u7406\u65f6\u95f4\uff0c\u6240\u4ee5\u53ef\u4ee5\u663e\u8457\u964d\u4f4e\u6570\u636e\u4f20\u8f93\u7684\u5ef6\u8fdf\u3002<\/p>\n
UART DMA\u63a5\u6536\u7684\u8bbe\u7f6e\u8981\u6bd4\u4f7f\u7528ISR\u5904\u7406\u6bcf\u4e2a\u5b57\u8282\u7684\u65b9\u5f0f\u8981\u590d\u6742\u5f97\u591a\uff0c\u9700\u8981\u66f4\u591a\u7684\u65f6\u95f4\u548c\u7cbe\u529b\u6765\u8bbe\u7f6e\u3002<\/p>\n
UART DMA\u63a5\u6536\u9700\u8981\u66f4\u591a\u7684\u786c\u4ef6\uff0c\u6bd4\u5982DMA\u63a7\u5236\u5668\u548c\u5185\u5b58\u7f13\u5b58\uff0c\u56e0\u6b64\u6210\u672c\u4f1a\u66f4\u9ad8\u3002<\/p>\n
UART DMA\u63a5\u6536\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u901f\u5ea6\uff0c\u540c\u65f6\u51cf\u8f7bCPU\u7684\u8d1f\u62c5\uff0c\u5e76\u80fd\u591f\u663e\u8457\u964d\u4f4e\u6570\u636e\u4f20\u8f93\u7684\u5ef6\u8fdf\u3002<\/strong>\u7136\u800c\uff0c\u5b83\u7684\u8bbe\u7f6e\u8981\u6bd4\u4f7f\u7528ISR\u5904\u7406\u6bcf\u4e2a\u5b57\u8282\u7684\u65b9\u5f0f\u8981\u590d\u6742\u5f97\u591a\uff0c\u5e76\u4e14\u9700\u8981\u66f4\u591a\u7684\u786c\u4ef6\uff0c\u56e0\u6b64\u6210\u672c\u4f1a\u66f4\u9ad8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" UARTDMA\u63a5\u6536\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u83b7\u5f97\u66f4\u5feb\u7684\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u3002\u5b83\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff0c\u5c06\u8bbe\u5907\u7684\u6570\u636e\u7f13\u5b58\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u4f7f\u7528DMA\uff08DirectMemoryAc<\/p>\n","protected":false},"author":1,"featured_media":1839,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[145],"class_list":["post-59499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/59499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=59499"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/59499\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/1839"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=59499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=59499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=59499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}