{"id":32742,"date":"2023-09-18T15:45:38","date_gmt":"2023-09-18T07:45:38","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=32742"},"modified":"2023-09-18T15:45:38","modified_gmt":"2023-09-18T07:45:38","slug":"ckdjsbdzsj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/32742.html","title":{"rendered":"\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e"},"content":{"rendered":"

  \u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u662f\u4e00\u79cd\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u6709\u6548\u5730\u63a5\u6536\u548c\u5904\u7406\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\uff0c\u63d0\u9ad8\u6570\u636e\u63a5\u6536\u548c\u5904\u7406\u7684\u6548\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u51cf\u5c11\u7cfb\u7edf\u7684\u8d1f\u8f7d\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u539f\u7406\uff0c\u4f18\u52bf\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u3002<\/p>\n

\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u539f\u7406<\/h2>\n

  \u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u662f\u4e00\u79cd\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u6709\u6548\u5730\u63a5\u6536\u548c\u5904\u7406\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\uff0c\u63d0\u9ad8\u6570\u636e\u63a5\u6536\u548c\u5904\u7406\u7684\u6548\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u51cf\u5c11\u7cfb\u7edf\u7684\u8d1f\u8f7d\u3002<\/p>\n

  DMA\u662f\u4e00\u79cd\u8fde\u7eed\u5b58\u50a8\u5668\u8bbf\u95ee\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u5728\u4e0d\u9700\u8981CPU\u53c2\u4e0e\u7684\u60c5\u51b5\u4e0b\uff0c\u76f4\u63a5\u4ece\u4e3b\u5b58\u50a8\u5668\u8bfb\u53d6\u6570\u636e\uff0c\u5e76\u5c06\u5176\u53d1\u9001\u5230\u7279\u5b9a\u7684\u8bbe\u5907\uff0c\u5982\u5916\u90e8\u5b58\u50a8\u5668\uff0c\u5916\u90e8\u8bbe\u5907\uff0c\u6216\u8005\u4e32\u53e3\u8bbe\u5907\u3002\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11CPU\u7684\u8d1f\u8f7d\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n

  \u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u539f\u7406\u662f\uff0c\u4f7f\u7528DMA\u6280\u672f\uff0c\u53ef\u4ee5\u5c06\u4e32\u53e3\u8bbe\u5907\u63a5\u6536\u5230\u7684\u6570\u636e\u76f4\u63a5\u5b58\u50a8\u5230\u4e3b\u5b58\u50a8\u5668\uff0c\u800c\u4e0d\u9700\u8981CPU\u53c2\u4e0e\u3002\u8fd9\u6837\uff0c\u5728\u63a5\u6536\u6570\u636e\u65f6\uff0cCPU\u5c31\u4e0d\u9700\u8981\u4e00\u76f4\u7b49\u5f85\u63a5\u6536\u5b8c\u6210\uff0c\u800c\u662f\u53ef\u4ee5\u5904\u7406\u5176\u4ed6\u4efb\u52a1\u3002\u8fd9\u6837\uff0cCPU\u5c31\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u5904\u7406\u6570\u636e\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n

\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u4f18\u52bf<\/h2>\n

  \u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u4f18\u52bf\u5728\u4e8e\uff0c\u5b83\u53ef\u4ee5\u6709\u6548\u5730\u8282\u7701CPU\u7684\u65f6\u95f4\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002\u5b83\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u63a5\u6536\u548c\u5904\u7406\u6570\u636e\uff0c\u4ece\u800c\u51cf\u5c11\u7cfb\u7edf\u7684\u8d1f\u8f7d\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u53ef\u4ee5\u652f\u6301\u4e0d\u5b9a\u957f\u7684\u6570\u636e\uff0c\u8fd9\u6837\uff0c\u7528\u6237\u5c31\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u5904\u7406\u4e0d\u540c\u957f\u5ea6\u7684\u6570\u636e\u3002<\/p>\n

  \u6b64\u5916\uff0c\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u8fd8\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u6570\u636e\u683c\u5f0f\uff0c\u6bd4\u5982UART\uff0cSPI\uff0cI2C\u7b49\u3002\u8fd9\u6837\uff0c\u7528\u6237\u5c31\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e<\/h2>\n

\u914d\u7f6eDMA\u63a7\u5236\u5668<\/h3>\n

  \u9996\u5148\uff0c\u7528\u6237\u9700\u8981\u914d\u7f6eDMA\u63a7\u5236\u5668\uff0c\u4ee5\u4fbf\u5b83\u53ef\u4ee5\u6b63\u786e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002\u914d\u7f6eDMA\u63a7\u5236\u5668\u7684\u65b9\u6cd5\u662f\uff0c\u9996\u5148\u9700\u8981\u786e\u5b9aDMA\u63a7\u5236\u5668\u7684\u8d77\u59cb\u5730\u5740\u548c\u7ec8\u6b62\u5730\u5740\u3002\u5176\u6b21\uff0c\u9700\u8981\u786e\u5b9aDMA\u63a7\u5236\u5668\u7684\u4f20\u8f93\u6a21\u5f0f\uff0c\u4ee5\u53ca\u4f20\u8f93\u7684\u6570\u636e\u7c7b\u578b\u548c\u957f\u5ea6\u3002\u6700\u540e\uff0c\u9700\u8981\u786e\u5b9aDMA\u63a7\u5236\u5668\u7684\u4f20\u8f93\u65b9\u5411\u3002<\/p>\n

\u914d\u7f6e\u4e32\u53e3\u8bbe\u5907<\/h3>\n

  \u5176\u6b21\uff0c\u7528\u6237\u9700\u8981\u914d\u7f6e\u4e32\u53e3\u8bbe\u5907\uff0c\u4ee5\u4fbf\u5b83\u53ef\u4ee5\u6b63\u786e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002\u914d\u7f6e\u4e32\u53e3\u8bbe\u5907\u7684\u65b9\u6cd5\u662f\uff0c\u9996\u5148\u9700\u8981\u786e\u5b9a\u4e32\u53e3\u8bbe\u5907\u7684\u6ce2\u7279\u7387\uff0c\u4ee5\u53ca\u6570\u636e\u683c\u5f0f\uff0c\u5982\u6570\u636e\u4f4d\uff0c\u505c\u6b62\u4f4d\uff0c\u6821\u9a8c\u4f4d\u7b49\u3002\u5176\u6b21\uff0c\u9700\u8981\u786e\u5b9a\u4e32\u53e3\u8bbe\u5907\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u4ee5\u53caDMA\u63a7\u5236\u5668\u7684\u5de5\u4f5c\u6a21\u5f0f\u3002\u6700\u540e\uff0c\u9700\u8981\u786e\u5b9a\u4e32\u53e3\u8bbe\u5907\u7684\u4e2d\u65ad\u65b9\u5f0f\uff0c\u4ee5\u53caDMA\u63a7\u5236\u5668\u7684\u4e2d\u65ad\u65b9\u5f0f\u3002<\/p>\n

\u542f\u52a8DMA\u4f20\u8f93<\/h3>\n

  \u6700\u540e\uff0c\u7528\u6237\u9700\u8981\u542f\u52a8DMA\u4f20\u8f93\uff0c\u4ee5\u4fbf\u6b63\u786e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002\u542f\u52a8DMA\u4f20\u8f93\u7684\u65b9\u6cd5\u662f\uff0c\u9996\u5148\u9700\u8981\u786e\u5b9aDMA\u63a7\u5236\u5668\u7684\u4f20\u8f93\u6a21\u5f0f\uff0c\u4ee5\u53ca\u4f20\u8f93\u7684\u6570\u636e\u7c7b\u578b\u548c\u957f\u5ea6\u3002\u5176\u6b21\uff0c\u9700\u8981\u542f\u52a8DMA\u63a7\u5236\u5668\uff0c\u4ee5\u53ca\u4e32\u53e3\u8bbe\u5907\u3002\u6700\u540e\uff0c\u9700\u8981\u542f\u52a8DMA\u63a7\u5236\u5668\u7684\u4e2d\u65ad\uff0c\u4ee5\u4fbf\u5728\u63a5\u6536\u6216\u53d1\u9001\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u53ca\u65f6\u5904\u7406\u4e2d\u65ad\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u539f\u7406\uff0c\u4f18\u52bf\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u3002<\/strong>\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u53ef\u4ee5\u6709\u6548\u5730\u8282\u7701CPU\u7684\u65f6\u95f4\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u4e0d\u5b9a\u957f\u7684\u6570\u636e\uff0c\u4ee5\u53ca\u591a\u79cd\u6570\u636e\u683c\u5f0f\u3002\u4f7f\u7528\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u7684\u6b65\u9aa4\u662f\uff1a\u914d\u7f6eDMA\u63a7\u5236\u5668\u548c\u4e32\u53e3\u8bbe\u5907\uff0c\u4ee5\u53ca\u542f\u52a8DMA\u4f20\u8f93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e32\u53e3DMA\u63a5\u6536\u4e0d\u5b9a\u957f\u6570\u636e\u662f\u4e00\u79cd\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u6709\u6548\u5730\u63a5\u6536\u548c\u5904\u7406\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\uff0c\u63d0\u9ad8\u6570\u636e\u63a5\u6536\u548c\u5904\u7406\u7684\u6548\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u51cf\u5c11\u7cfb\u7edf\u7684\u8d1f\u8f7d\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4e32\u53e3DMA\u63a5\u6536\u4e0d<\/p>\n","protected":false},"author":1,"featured_media":3671,"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":[69],"class_list":["post-32742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/32742","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=32742"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/32742\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=32742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=32742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=32742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}