{"id":59654,"date":"2023-11-04T08:40:58","date_gmt":"2023-11-04T00:40:58","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=59654"},"modified":"2023-11-04T08:40:58","modified_gmt":"2023-11-04T00:40:58","slug":"rhsyngldzd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/59654.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528NVIC\u7ba1\u7406DMA\u4e2d\u65ad"},"content":{"rendered":"

  DMA\uff08Direct Memory Access\uff09\u662f\u4e00\u79cd\u786c\u4ef6\u8bbe\u5907\uff0c\u53ef\u4ee5\u5728\u5185\u5b58\u4e2d\u76f4\u63a5\u4f20\u8f93\u6570\u636e\uff0c\u800c\u4e0d\u9700\u8981CPU\u7684\u53c2\u4e0e\u3002DMA\u4e2d\u65ad\u662f\u4e00\u79cd\u5341\u5206\u91cd\u8981\u7684\u4e2d\u65ad\u7c7b\u578b\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u7684\u7ba1\u7406DMA\u8bbe\u5907\uff0c\u4ee5\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528NVIC\uff08Nested Vectored Interrupt Controller\uff09\u6765\u7ba1\u7406DMA\u4e2d\u65ad\u3002<\/p>\n

\u4ec0\u4e48\u662fNVIC\uff1f<\/h2>\n

  NVIC\u662f\u4e00\u79cd\u786c\u4ef6\u4e2d\u65ad\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u5904\u7406\u591a\u79cd\u7c7b\u578b\u7684\u4e2d\u65ad\uff0c\u5305\u62ecDMA\u4e2d\u65ad\u3002\u5b83\u62e5\u6709\u4e00\u4e2a\u5185\u90e8\u4e2d\u65ad\u5411\u91cf\u8868\uff0c\u53ef\u4ee5\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u4e2d\u65ad\u6620\u5c04\u5230\u7279\u5b9a\u7684\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u4e0a\u3002<\/p>\n

NVIC\u5982\u4f55\u7ba1\u7406DMA\u4e2d\u65ad<\/h2>\n

  1.\u914d\u7f6eDMA\u4e2d\u65ad<\/h3>\n

  \u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6eDMA\u4e2d\u65ad\uff0c\u4ee5\u4fbfNVIC\u53ef\u4ee5\u68c0\u6d4b\u5230DMA\u4e2d\u65ad\u7684\u53d1\u751f\u3002\u914d\u7f6eDMA\u4e2d\u65ad\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4f46\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528DMA\u63a7\u5236\u5668\u7684\u914d\u7f6e\u5bc4\u5b58\u5668\u3002\u8fd9\u4e9b\u5bc4\u5b58\u5668\u53ef\u4ee5\u7528\u6765\u914d\u7f6eDMA\u4e2d\u65ad\u7684\u4f18\u5148\u7ea7\uff0c\u4ee5\u53ca\u5f53DMA\u4e2d\u65ad\u53d1\u751f\u65f6\u7684\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u3002<\/p>\n

  2.\u542f\u7528DMA\u4e2d\u65ad<\/h3>\n

  \u5728\u914d\u7f6e\u5b8cDMA\u4e2d\u65ad\u4e4b\u540e\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528NVIC\u7684\u63a7\u5236\u5bc4\u5b58\u5668\u6765\u542f\u7528DMA\u4e2d\u65ad\u3002\u8fd9\u4e9b\u63a7\u5236\u5bc4\u5b58\u5668\u53ef\u4ee5\u7528\u6765\u63a7\u5236NVIC\u662f\u5426\u54cd\u5e94DMA\u4e2d\u65ad\uff0c\u4ee5\u53caDMA\u4e2d\u65ad\u7684\u4f18\u5148\u7ea7\u3002<\/p>\n

  3.\u5904\u7406DMA\u4e2d\u65ad<\/h3>\n

  \u5f53DMA\u4e2d\u65ad\u53d1\u751f\u65f6\uff0cNVIC\u4f1a\u8c03\u7528\u6211\u4eec\u4e4b\u524d\u914d\u7f6e\u7684\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u6765\u5904\u7406\u8be5\u4e2d\u65ad\u3002\u8be5\u5904\u7406\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u68c0\u6d4bDMA\u4e2d\u65ad\u7684\u6e90\uff0c\u4ee5\u53ca\u6267\u884c\u5fc5\u8981\u7684\u64cd\u4f5c\uff0c\u4ee5\u5904\u7406DMA\u4e2d\u65ad\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  NVIC\u662f\u4e00\u79cd\u786c\u4ef6\u4e2d\u65ad\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u7ba1\u7406\u591a\u79cd\u7c7b\u578b\u7684\u4e2d\u65ad\uff0c\u5305\u62ecDMA\u4e2d\u65ad\u3002<\/strong>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528NVIC\u7684\u914d\u7f6e\u5bc4\u5b58\u5668\u6765\u914d\u7f6eDMA\u4e2d\u65ad\uff0c\u4f7f\u7528NVIC\u7684\u63a7\u5236\u5bc4\u5b58\u5668\u6765\u542f\u7528DMA\u4e2d\u65ad\uff0c\u5e76\u4f7f\u7528NVIC\u7684\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u6765\u5904\u7406DMA\u4e2d\u65ad\u3002\u4f7f\u7528NVIC\u6765\u7ba1\u7406DMA\u4e2d\u65ad\u53ef\u4ee5\u66f4\u597d\u7684\u63d0\u9ad8DMA\u8bbe\u5907\u7684\u6027\u80fd\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

DMA\uff08DirectMemoryAccess\uff09\u662f\u4e00\u79cd\u786c\u4ef6\u8bbe\u5907\uff0c\u53ef\u4ee5\u5728\u5185\u5b58\u4e2d\u76f4\u63a5\u4f20\u8f93\u6570\u636e\uff0c\u800c\u4e0d\u9700\u8981CPU\u7684\u53c2\u4e0e\u3002DMA\u4e2d\u65ad\u662f\u4e00\u79cd\u5341\u5206\u91cd\u8981\u7684\u4e2d\u65ad\u7c7b\u578b\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u7684<\/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":[305],"class_list":["post-59654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/59654","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=59654"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/59654\/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=59654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=59654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=59654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}