{"id":692,"date":"2024-07-23T10:04:08","date_gmt":"2024-07-23T02:04:08","guid":{"rendered":"https:\/\/aoofoo.com\/?p=692"},"modified":"2024-07-25T12:14:30","modified_gmt":"2024-07-25T04:14:30","slug":"2-20-adc%e6%a8%a1%e6%95%b0%e8%bd%ac%e6%8d%a2%e5%99%a8","status":"publish","type":"post","link":"https:\/\/aoofoo.com\/index.php\/2024\/07\/23\/2-20-adc%e6%a8%a1%e6%95%b0%e8%bd%ac%e6%8d%a2%e5%99%a8\/","title":{"rendered":"2.20 ADC\u6a21\u6570\u8f6c\u6362\u5668"},"content":{"rendered":"<h2>STM32 ADC\u7b80\u4ecb<\/h2>\n<p>\u5bf9\u4e8eGPIO\u6765\u8bf4\uff0c\u4ed6\u53ea\u80fd\u8bfb\u53d6\u5f15\u811a\u7684\u9ad8\u4f4e\u7535\u5e73\uff0c\u8981\u4e48\u662f\u9ad8\u7535\u5e73\uff0c\u8981\u4e48\u662f\u4f4e\u7535\u5e73\uff0c\u53ea\u6709\u4e24\u4e2a\u503c\u3002\u800c\u4f7f\u7528\u4e86ADC\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5bf9\u8fd9\u4e2a\u9ad8\u7535\u5e73\u548c\u4f4e\u7535\u5e73\u4e4b\u95f4\u7684\u4efb\u610f\u7535\u538b\u8fdb\u884c\u91cf\u5316\uff0c\u6700\u7ec8\u7528\u4e00\u4e2a\u53d8\u91cf\u6765\u8868\u793a\uff0c\u8bfb\u53d6\u8fd9\u4e2a\u53d8\u91cf\uff0c\u5c31\u53ef\u4ee5\u77e5\u9053\u5f15\u811a\u7684\u5177\u4f53\u7535\u538b\u662f\u591a\u5c11\u4e86\u3002<\/p>\n<p>\u6240\u4ee5ADC\u5b9e\u9645\u4e0a\u5c31\u662f\u4e00\u4e2a\u7535\u538b\u8868\uff0c\u628a\u5f15\u811a\u7684\u7535\u538b\u503c\u6d4b\u51fa\u6765\uff0c\u653e\u5728\u4e00\u4e2a\u53d8\u91cf\u91cc\uff0c\u8fd9\u5c31\u662fADC\u7684\u4f5c\u7528\u3002<\/p>\n<p>ADC\uff08Analog-Digital Converter\uff09\u6a21\u62df-\u6570\u5b57\u8f6c\u6362\u5668\uff0c\u7b80\u79f0\u6a21\u6570\u8f6c\u6362\u5668\u6216\u8005\u53ebAD\u8f6c\u6362\u5668\u3002<\/p>\n<p>ADC\u53ef\u4ee5\u5c06\u5f15\u811a\u4e0a\u8fde\u7eed\u53d8\u5316\u7684\u6a21\u62df\u7535\u538b\u8f6c\u6362\u4e3a\u5185\u5b58\u4e2d\u5b58\u50a8\u7684\u6570\u5b57\u53d8\u91cf\uff0c\u5efa\u7acb\u6a21\u62df\u7535\u8def\u5230\u6570\u5b57\u7535\u8def\u7684\u6865\u6881\u3002ADC\u8bfb\u53d6\u5f15\u811a\u4e0a\u7684\u6a21\u62df\u7535\u538b\uff0c\u8f6c\u6362\u4e3a\u4e00\u4e2a\u6570\u636e\uff0c\u5b58\u5728\u5bc4\u5b58\u5668\u91cc\uff0c\u6211\u4eec\u518d\u628a\u8fd9\u4e2a\u6570\u636e\u8bfb\u53d6\u5230\u53d8\u91cf\u91cc\u6765\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u663e\u793a\u3001\u5224\u65ad\u3001\u8bb0\u5f55\u7b49\u7b49\u64cd\u4f5c\u4e86\u3002<\/p>\n<p>\u60f3\u4e00\u4e0b\uff0cADC\u662f\u6a21\u62df\u5230\u6570\u5b57\u7684\u6865\u6881\uff0c\u90a3\u4e48\u53cd\u8fc7\u6765\uff0c\u80af\u5b9a\u5c31\u6709\u6570\u5b57\u5230\u6a21\u62df\u7684\u6865\u6881\uff0c\u90a3\u5c31\u662fDAC\uff0c\u6570\u5b57\u6a21\u62df\u8f6c\u6362\u5668\uff0c\u4f7f\u7528DAC\u53ef\u4ee5\u5c06\u6570\u5b57\u53d8\u91cf\u8f6c\u5316\u4e3a\u6a21\u62df\u7535\u538b\u3002<\/p>\n<p>\u4e0d\u8fc7\u4e0a\u4e00\u8282\uff0c\u6211\u4eec\u8fd8\u5b66\u5230\u4e86\u4e00\u4e2a\u6570\u5b57\u5230\u6a21\u62df\u7684\u6865\u6881\uff0c\u662f\u4ec0\u4e48\uff1f\u662fPWM\u3002\u4e0a\u4e00\u8282\u6211\u4eec\u4f7f\u7528PWM\u6765\u63a7\u5236LED\u7684\u4eae\u5ea6\uff0c\u7535\u673a\u7684\u901f\u5ea6\uff0c\u8fd9\u5c31\u662fDAC\u7684\u529f\u80fd\uff0c\u540c\u65f6PWM\u53ea\u6709\u5b8c\u5168\u5bfc\u901a\u548c\u5b8c\u5168\u65ad\u5f00\u4e24\u79cd\u72b6\u6001\uff0c\u5728\u8fd9\u4e24\u79cd\u72b6\u6001\u4e0a\u90fd\u6ca1\u6709\u529f\u7387\u635f\u8017\uff0c\u6240\u4ee5\u5728\u76f4\u6d41\u7535\u673a\u8c03\u901f\u8fd9\u79cd\u5927\u529f\u7387\u7684\u5e94\u7528\u573a\u666f\u4f7f\u7528PWM\u6765\u7b49\u6548\u6a21\u62df\u91cf\uff0c\u662f\u6bd4DAC\u4f1a\u66f4\u597d\u7684\u9009\u62e9\uff0c\u5e76\u4e14PWM\u7535\u8def\u66f4\u52a0\u7b80\u5355\uff0c\u66f4\u52a0\u5e38\u7528\uff0c\u6240\u4ee5\u53ef\u4ee5\u770b\u51faPWM\u8fd8\u662f\u6324\u5360\u4e86DAC\u7684\u5f88\u591a\u5e94\u7528\u7a7a\u95f4\uff0c\u76ee\u524dDAC\u7684\u5e94\u7528\u4e3b\u8981\u662f\u5728\u6ce2\u5f62\u751f\u6210\u8fd9\u4e9b\u9886\u57df\uff0c\u6bd4\u5982\u4fe1\u53f7\u53d1\u751f\u5668\u3001\u97f3\u9891\u89e3\u7801\u82af\u7247\u7b49\uff0c\u8fd9\u4e9b\u9886\u57dfPWM\u8fd8\u662f\u4e0d\u597d\u66ff\u4ee3\u7684\u3002DAC\u5927\u5bb6\u81ea\u884c\u4e86\u89e3\uff0c\u6211\u4eec\u5957\u4ef6\u5185\u7684STM32\u82af\u7247\u4e5f\u6ca1\u6709DAC\u7684\u5916\u8bbe\u3002<\/p>\n<p>STM32\u7684ADC\u662f12\u4f4d\u9010\u6b21\u903c\u8fd1\u578bADC\uff0c1us\u8f6c\u6362\u65f6\u95f4\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u9010\u6b21\u903c\u8fd1\u578b<\/span>\u8fd9\u662f\u8fd9\u4e2a<span style=\"color: #ff6600;\">ADC\u7684\u5de5\u4f5c\u6a21\u5f0f<\/span>\u3002<\/p>\n<p><span style=\"color: #ff6600;\">ADC\u7684\u4e24\u4e2a\u5173\u952e\u53c2\u6570<\/span>\uff0c\u4e00\u4e2a\u662f<span style=\"color: #ff6600;\">\u5206\u8fa8\u7387<\/span>\uff0c\u4e00\u822c\u7528\u591a\u5c11\u4f4d\u6765\u8868\u793a\uff0c12\u4f4dAD\u503c\uff0c\u4ed6\u7684\u8868\u793a\u8303\u56f4\u5c31\u662f0~2^12-1\uff0c\u5c31\u662f\u91cf\u5316\u7ed3\u679c\u7684\u8303\u56f4\u662f0~4095\uff0c\u4f4d\u6570\u8d8a\u9ad8\uff0c\u91cf\u5316\u7ed3\u679c\u8d8a\u7cbe\u7ec6\uff0c\u5bf9\u5e94\u7684\u5206\u8fa8\u7387\u5c31\u8d8a\u9ad8\u3002\u53e6\u4e00\u4e2a\u662f<span style=\"color: #ff6600;\">\u8f6c\u6362\u65f6\u95f4<\/span>\uff0c\u5c31\u662f\u8f6c\u6362\u9891\u7387\uff0cAD\u8f6c\u6362\u662f\u9700\u8981\u82b1\u4e00\u5c0f\u6bb5\u65f6\u95f4\u7684\uff0c\u8fd9\u91cc1us\u5c31\u8868\u793a\u4eceAD\u8f6c\u6362\u5f00\u59cb\uff0c\u5230\u4ea7\u751f\u7ed3\u679c\uff0c\u9700\u8981\u82b1\u8d391us\u7684\u65f6\u95f4\uff0c\u5bf9\u5e94AD\u8f6c\u6362\u7684\u9891\u7387\u5c31\u662f1MHz\uff0c\u8fd9\u4e2a\u5c31\u662fSTM32 ADC\u7684\u6700\u5feb\u8f6c\u6362\u9891\u7387\u3002\u5982\u679c\u4f60\u9700\u8981\u8f6c\u6362\u4e00\u4e2a\u9891\u7387\u975e\u5e38\u9ad8\u7684\u4fe1\u53f7\uff0c\u90a3\u5c31\u8981\u8003\u8651\u4e00\u4e0b\u8fd9\u4e2a\u8f6c\u6362\u9891\u7387\u662f\u4e0d\u662f\u591f\u7528\u4e86\u3002<\/p>\n<p><span style=\"color: #ff6600;\">ADC\u8f93\u5165\u7535\u538b\u8303\u56f4\uff1a0~3.3V\uff0c\u8f6c\u6362\u7ed3\u679c\u8303\u56f4\uff1a0~4095\u3002<\/span>\u8fd9\u4e2aADC\u7684\u8f93\u5165\u7535\u538b\uff0c\u4e00\u822c\u8981\u6c42\u90fd\u662f\u8981\u5728\u82af\u7247\u4f9b\u7535\u7684\u8d1f\u6781\u548c\u6b63\u6781\u4e4b\u95f4\u53d8\u5316\u7684\u3002\u6700\u4f4e\u7535\u538b\u5c31\u662f\u8d1f\u67810V\uff0c\u6700\u9ad8\u7535\u538b\u662f\u6b63\u67813.3V\uff0c\u7ecf\u8fc7ADC\u8f6c\u6362\u4e4b\u540e\uff0c\u6700\u5c0f\u503c\u5c31\u662f0\uff0c\u6700\u5927\u503c\u662f4095\u30020V\u5bf9\u5e940\uff0c3.3V\u5bf9\u5e944095\uff0c\u4e2d\u95f4\u90fd\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\u7ebf\u6027\u5173\u7cfb\u3002\u8fd9\u4e2a\u8ba1\u7b97\u8d77\u6765\u5c31\u975e\u5e38\u7b80\u5355\u4e86\uff0c\u76f4\u63a5\u4e58\u9664\u4e00\u4e2a\u7cfb\u6570\u5c31\u884c\u4e86\u3002<\/p>\n<p><span style=\"color: #ff6600;\">ADC\u670918\u4e2a\u8f93\u5165\u901a\u9053\uff0c\u53ef\u6d4b\u91cf16\u4e2a\u5916\u90e8\u548c2\u4e2a\u5185\u90e8\u4fe1\u53f7\u6e90\u3002<\/span>\u5916\u90e8\u4fe1\u53f7\u6e90\u5c31\u662f16\u4e2aGPIO\u53e3\uff0c\u5728\u5f15\u811a\u4e0a\u76f4\u63a5\u63a5\u6a21\u62df\u4fe1\u53f7\u5c31\u884c\u4e86\uff0c\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u7684\u7535\u8def\uff0c\u5f15\u811a\u5c31\u76f4\u63a5\u80fd\u6d4b\u7535\u538b\uff0c\u8fd9\u4e2a\u8fd8\u662f\u975e\u5e38\u65b9\u4fbf\u7684\u30022\u4e2a\u5185\u90e8\u4fe1\u53f7\u6e90\u662f\u5185\u90e8\u6e29\u5ea6\u4f20\u611f\u5668\u548c\u5185\u90e8\u53c2\u8003\u7535\u538b\uff0c\u6e29\u5ea6\u4f20\u611f\u5668\u53ef\u4ee5\u6d4b\u91cfCPU\u7684\u6e29\u5ea6\uff0c\u6bd4\u5982\u4f60\u7535\u8111\u53ef\u4ee5\u663e\u793a\u4e00\u4e2aCPU\u6e29\u5ea6\uff0c\u5c31\u53ef\u4ee5\u7528ADC\u8bfb\u53d6\u8fd9\u4e2a\u6e29\u5ea6\u4f20\u611f\u5668\u6765\u6d4b\u91cf\uff0c\u5185\u90e8\u53c2\u8003\u7535\u538b\u662f\u4e00\u4e2a1.2V\u5de6\u53f3\u7684\u57fa\u51c6\u7535\u538b\uff0c\u8fd9\u4e2a\u57fa\u51c6\u7535\u538b\u662f\u4e0d\u968f\u5916\u90e8\u4f9b\u7535\u7535\u538b\u53d8\u5316\u800c\u53d8\u5316\u7684\uff0c\u6240\u4ee5\u5982\u679c\u4f60\u82af\u7247\u7684\u4f9b\u7535\u4e0d\u662f\u6807\u51c6\u76843.3V\uff0c\u90a3\u6d4b\u91cf\u5916\u90e8\u5f15\u811a\u7684\u7535\u538b\u53ef\u80fd\u5c31\u4e0d\u5bf9\uff0c\u8fd9\u65f6\u5c31\u53ef\u4ee5\u8bfb\u53d6\u8fd9\u4e2a\u57fa\u51c6\u7535\u538b\u8fdb\u884c\u6821\u51c6\uff0c\u8fd9\u6837\u5c31\u80fd\u5f97\u5230\u6b63\u786e\u7684\u7535\u538b\u503c\u4e86\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u89c4\u5219\u7ec4\u548c\u6ce8\u5165\u7ec4\u4e24\u4e2a\u8f6c\u6362\u5355\u5143\u3002<\/span>\u8fd9\u4e2a\u5c31\u662fSTM32 ADC\u7684\u589e\u5f3a\u529f\u80fd\u4e86\uff0c\u666e\u901a\u7684AD\u8f6c\u6362\u6d41\u7a0b\u662f\uff0c\u542f\u52a8\u4e00\u6b21\u8f6c\u6362\u3001\u8bfb\u4e00\u6b21\u503c\uff0c\u7136\u540e\u518d\u542f\u52a8\u3001\u518d\u8bfb\u503c\uff0c\u8fd9\u6837\u7684\u6d41\u7a0b\u3002\u4f46\u662fSTM32\u7684ADC\u5c31\u6bd4\u8f83\u9ad8\u7ea7\uff0c\u53ef\u4ee5\u5217\u4e00\u4e2a\u7ec4\uff0c\u4e00\u6b21\u6027\u542f\u52a8\u4e00\u4e2a\u7ec4\uff0c\u8fde\u7eed\u8f6c\u6362\u591a\u4e2a\u503c\u3002\u5e76\u4e14\u6709\u4e24\u4e2a\u7ec4\uff0c\u4e00\u4e2a\u662f\u7528\u4e8e\u5e38\u89c4\u4f7f\u7528\u7684\u89c4\u5219\u7ec4\uff0c\u4e00\u4e2a\u662f\u7528\u4e8e\u7a81\u53d1\u4e8b\u4ef6\u7684\u6ce8\u5165\u7ec4\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u6a21\u62df\u770b\u95e8\u72d7\u81ea\u52a8\u76d1\u6d4b\u8f93\u5165\u7535\u538b\u8303\u56f4\u3002<\/span>\u8fd9\u4e2aADC\u4e00\u822c\u53ef\u4ee5\u7528\u4e8e\u6d4b\u91cf\u5149\u7ebf\u5f3a\u5ea6\u3001\u6e29\u5ea6\u8fd9\u4e9b\u503c\u3002\u5e76\u4e14\u7ecf\u5e38\u4f1a\u6709\u4e2a\u9700\u6c42\uff0c\u5c31\u662f\u5982\u679c\u5149\u7ebf\u9ad8\u4e8e\u67d0\u4e2a\u9608\u503c\u6216\u8005\u4f4e\u4e8e\u67d0\u4e2a\u9608\u503c\uff0c\u6267\u884c\u4e00\u4e9b\u64cd\u4f5c\uff0c\u8fd9\u4e2a\u9ad8\u4e8e\u67d0\u4e2a\u9608\u503c\u3001\u4f4e\u4e8e\u67d0\u4e2a\u9608\u503c\u7684\u5224\u65ad\uff0c\u5c31\u53ef\u4ee5\u7528\u6a21\u62df\u770b\u95e8\u72d7\u6765\u81ea\u52a8\u6267\u884c\u3002\u6a21\u62df\u770b\u95e8\u72d7\u53ef\u4ee5\u76d1\u6d4b\u6307\u5b9a\u7684\u67d0\u4e9b\u901a\u9053\uff0c\u5f53AD\u503c\u9ad8\u4e8e\u5b83\u8bbe\u5b9a\u7684\u4e0a\u9608\u503c\u6216\u8005\u4f4e\u4e8e\u4e0b\u9608\u503c\u65f6\uff0c\u5b83\u5c31\u4f1a\u7533\u8bf7\u4e2d\u65ad\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728\u4e2d\u65ad\u51fd\u6570\u91cc\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002\u8fd9\u6837\u4f60\u5c31\u4e0d\u7528\u4e0d\u65ad\u5730\u624b\u52a8\u8bfb\u503c\uff0c\u518d\u7528if\u8fdb\u884c\u5224\u65ad\u4e86\u3002<\/p>\n<p>STM32F103C8T6\u5355\u7247\u673a\u7684ADC\u8d44\u6e90\u6709ADC1\u3001ADC2\uff0c\u5171\u4e24\u4e2aADC\u5916\u8bbe\u300210\u4e2a\u5916\u90e8\u8f93\u5165\u901a\u9053\uff0c\u4e5f\u5c31\u662f\u5b83\u6700\u591a\u53ea\u80fd\u6d4b\u91cf10\u4e2a\u5916\u90e8\u5f15\u811a\u7684\u6a21\u62df\u4fe1\u53f7\u3002\u6211\u4eec\u4e4b\u524d\u8bf4\u768416\u4e2a\u5916\u90e8\u4fe1\u53f7\u6e90\uff0c\u8fd9\u662f\u8fd9\u4e2a\u7cfb\u5217\u6700\u591a\u670916\u4e2a\u5916\u90e8\u4fe1\u53f7\u6e90\uff0c\u4f46\u662f\u6211\u4eec\u8fd9\u82af\u7247\u5f15\u811a\u6bd4\u8f83\u5c11\uff0c\u6709\u5f88\u591a\u5f15\u811a\u6ca1\u6709\u5f15\u51fa\u6765\uff0c\u6240\u4ee5\u5c31\u53ea\u670910\u4e2a\u5916\u90e8\u4fe1\u53f7\u6e90\u3002\u5982\u679c\u4f60\u60f3\u8981\u66f4\u591a\u7684\u5916\u90e8\u901a\u9053\uff0c\u53ef\u4ee5\u9009\u62e9\u5f15\u811a\u66f4\u591a\u7684\u4fe1\u53f7\u3002<\/p>\n<h2>\u9010\u6b21\u903c\u8fd1\u578bADC<\/h2>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u4e86\u89e3\u4e00\u4e0b\u8fd9\u4e2a\u9010\u6b21\u903c\u8fd1\u578bADC\u5230\u5e95\u662f\u600e\u4e48\u6d4b\u7535\u538b\u7684\u3002<\/p>\n<h3>\u9010\u6b21\u903c\u8fd1\u578bADC\u7ed3\u6784<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-695 size-full\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-155-e1721703353332.png\" alt=\"\" width=\"632\" height=\"401\" srcset=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-155-e1721703353332.png 632w, https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-155-e1721703353332-300x190.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/p>\n<p>\u4e86\u89e3\u9010\u6b21\u903c\u8fd1\u578bADC\u5185\u90e8\u7ed3\u6784\uff0c\u5bf9\u5b66\u4e60STM32\u7684ADC\u6709\u5f88\u5927\u5e2e\u52a9\uff0c\u56e0\u4e3aSTM32\u7684ADC\u539f\u7406\u548c\u8fd9\u4e2a\u662f\u4e00\u6837\u7684\u3002\u4f46\u662fSTM32\u53ea\u753b\u4e86\u4e00\u4e2a\u6846\u8868\u793aADC\uff0c\u5e76\u6ca1\u6709\u63cf\u8ff0\u5185\u90e8\u7ed3\u6784\u3002<\/p>\n<p>\u8fd9\u4e2a\u56fe\u662fADC0809\u7684\u5185\u90e8\u7ed3\u6784\u56fe\uff0c\u5b83\u662f\u4e00\u4e2a\u72ec\u7acb\u76848\u4f4d\u9010\u6b21\u903c\u8fd1\u578bADC\u82af\u7247\uff0c\u5728\u4ee5\u524d\u5355\u7247\u673a\u6027\u80fd\u8fd8\u4e0d\u662f\u5f88\u5f3a\uff0c\u6240\u4ee5\u9700\u8981\u5916\u6302\u4e00\u4e2aADC\u82af\u7247\u624d\u80fd\u8fdb\u884cAD\u8f6c\u6362\uff0c\u8fd9\u4e2aADC0809\u5c31\u662f\u4e00\u6b3e\u6bd4\u8f83\u7ecf\u5178\u7684ADC\u82af\u7247\u3002\u90a3\u73b0\u5728\u5355\u7247\u673a\u7684\u6027\u80fd\u548c\u96c6\u6210\u5ea6\u90fd\u6709\u5f88\u5927\u7684\u63d0\u5347\uff0c\u5f88\u591a\u5355\u7247\u673a\u5185\u90e8\u5c31\u5df2\u7ecf\u96c6\u6210\u4e86ADC\u5916\u8bbe\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u5916\u6302\u82af\u7247\u4e86\uff0c\u5f15\u811a\u53ef\u4ee5\u76f4\u63a5\u6d4b\u7535\u538b\uff0c\u4f7f\u7528\u8fd8\u662f\u975e\u5e38\u65b9\u4fbf\u7684\u3002<\/p>\n<h3>\u8f93\u5165\u901a\u9053\u9009\u62e9\u90e8\u5206<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-697\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-156.png\" alt=\"\" width=\"81\" height=\"72\" \/>IN0~7\u662f8\u8def\u8f93\u5165\u901a\u9053\uff0c\u901a\u8fc7\u901a\u9053\u9009\u62e9\u5f00\u5173\uff0c\u9009\u4e2d\u4e00\u8def\uff0c\u8f93\u5165\u5230\u8fd9\u91cc\u8fdb\u884c\u8f6c\u6362<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-698\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-157.png\" alt=\"\" width=\"99\" height=\"60\" \/>\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-699\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-158.png\" alt=\"\" width=\"114\" height=\"66\" \/>\u8fd9\u91cc\u662f\u5730\u5740\u9501\u5b58\u548c\u8bd1\u7801\uff0c\u5c31\u662f\u4f60\u60f3\u9009\u4e2d\u54ea\u4e00\u8def\uff0c\u5c31\u628a\u901a\u9053\u53f7\u653e\u5728\u8fd9ADDA\u3001B\u3001D\u8fd9\u4e09\u4e2a\u811a\u4e0a\u3002\u7136\u540e\u7ed9\u4e2a\u9501\u5b58\u4fe1\u53f7\uff0c<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-700\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-159.png\" alt=\"\" width=\"74\" height=\"59\" \/>\u4e0a\u9762\u8fd9\u91cc\u5bf9\u5e94\u7684\u901a\u8def\u5f00\u5173\u5c31\u81ea\u52a8\u62e8\u597d\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-701\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-160.png\" alt=\"\" width=\"155\" height=\"220\" \/>\u8fd9\u90e8\u5206\u5c31\u76f8\u5f53\u4e8e\u4e00\u4e2a\u53ef\u4ee5\u901a\u8fc7\u6a21\u62df\u4fe1\u53f7\u7684\u6570\u636e\u9009\u62e9\u5668\uff0c\u56e0\u4e3aADC\u8f6c\u6362\u662f\u4e00\u4e2a\u5f88\u5feb\u7684\u8fc7\u7a0b\uff0c\u4f60\u7ed9\u4e2a\u5f00\u59cb\u4fe1\u53f7\uff0c\u8fc7\u4e2a\u51e0us\u5c31\u8f6c\u6362\u5b8c\u6210\u4e86\uff0c\u6240\u4ee5\u8bf4\u5982\u679c\u4f60\u60f3\u8981\u8f6c\u6362\u591a\u8def\u4fe1\u53f7\uff0c\u90a3\u4e0d\u5fc5\u8bbe\u8ba1\u591a\u4e2aAD\u8f6c\u6362\u5668\uff0c\u53ea\u9700\u89811\u4e2aAD\u8f6c\u6362\u5668\uff0c\u7136\u540e\u52a0\u4e00\u4e2a\u591a\u8def\u9009\u62e9\u5f00\u5173\uff0c\u60f3\u8f6c\u6362\u54ea\u4e00\u8def\uff0c\u5c31\u5148\u62e8\u4e00\u4e0b\u5f00\u5173\uff0c\u9009\u4e2d\u5bf9\u5e94\u901a\u9053\uff0c\u7136\u540e\u518d\u5f00\u59cb\u8f6c\u6362\u5c31\u884c\u4e86\u3002\u8fd9\u5c31\u662f\u8fd9\u4e2a\u8f93\u5165\u901a\u9053\u9009\u62e9\u7684\u90e8\u5206\uff0c\u8fd9\u4e2aADC0809\u53ea\u67098\u4e2a\u8f93\u5165\u901a\u9053\u3002<\/p>\n<p>\u6211\u4eecSTM32\u5185\u90e8\u7684ADC\u662f\u670918\u4e2a\u8f93\u5165\u901a\u9053\u7684\uff0c\u6240\u4ee5\u5bf9\u5e94\u7684\u901a\u9053\u9009\u62e9\u5f00\u5173\u8fd9\u91cc\u5c31\u662f\u4e00\u4e2a18\u8def\u8f93\u5165\u7684\u591a\u8def\u5f00\u5173\u3002<\/p>\n<h3>\u9010\u6b21\u903c\u8fd1\u578b\u539f\u7406<\/h3>\n<p>\u600e\u4e48\u624d\u80fd\u77e5\u9053\u8fd9\u4e2a\u7535\u538b\u5bf9\u5e94\u7684\u7f16\u7801\u6570\u636e\u662f\u591a\u5c11\u5462\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-703\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-162.png\" alt=\"\" width=\"394\" height=\"245\" \/>\u8fd9\u5c31\u9700\u8981\u6211\u4eec\u7528\u9010\u6b21\u903c\u8fd1\u7684\u65b9\u6cd5\u6765\u4e00\u4e00\u6bd4\u8f83\u4e86\uff0c\u9996\u5148\u8fd9\u662f\u4e00\u4e2a\u7535\u538b\u6bd4\u8f83\u5668\uff0c\u5b83\u53ef\u4ee5\u5224\u65ad\u4e24\u4e2a\u8f93\u5165\u4fe1\u53f7\u7535\u538b\u7684\u5927\u5c0f\u5173\u7cfb\u3002\u8f93\u51fa\u4e00\u4e2a\u9ad8\u4f4e\u7535\u5e73\u6307\u793a\u8c01\u5927\u8c01\u5c0f\uff0c\u5b83\u7684\u4e24\u4e2a\u8f93\u5165\u7aef\uff0c\u4e00\u4e2a\u662f\u5f85\u6d4b\u7535\u538b\uff0c\u53e6\u4e00\u4e2a\u662f\u8fd9\u91ccDAC\u7684\u7535\u538b\u8f93\u51fa\u7aef\uff0cDAC\u662f\u6570\u6a21\u8f6c\u6362\u5668\uff0c\u6211\u4eec\u4e4b\u524d\u8bf4\u8fc7\u4e86\uff0c\u7ed9DAC\u4e00\u4e2a\u6570\u636e\uff0c\u4ed6\u5c31\u53ef\u4ee5\u8f93\u51fa\u6570\u636e\u5bf9\u5e94\u7684\u7535\u538b\u3002DAC\u5185\u90e8\u662f\u4f7f\u7528\u52a0\u6743\u7535\u963b\u7f51\u7edc\u6765\u5b9e\u73b0\u7684\u8f6c\u6362\uff0c<span style=\"color: #ff0000;\">\u5177\u4f53\u53ef\u4ee5\u770b51\u5355\u7247\u673a\u6559\u7a0b\u91cc\u7684AD\/DA\u90a3\u4e00\u8282<\/span>\u3002<\/p>\n<p>\u90a3\u73b0\u5728\uff0c\u6211\u4eec\u6709\u4e86\u4e00\u4e2a\u5916\u90e8\u901a\u9053\u8f93\u5165\u7684\uff0c\u672a\u77e5\u7f16\u7801\u7684\u7535\u538b\uff0c\u548c\u4e00\u4e2aDAC\u8f93\u51fa\u7684\uff0c\u5df2\u77e5\u7f16\u7801\u7684\u7535\u538b\u3002\u4ed6\u4fe9\u540c\u65f6\u8f93\u5165\u5230\u7535\u538b\u6bd4\u8f83\u5668\uff0c\u8fdb\u884c\u5927\u5c0f\u5224\u65ad\u3002\u5982\u679cDAC\u8f93\u51fa\u7684\u7535\u538b\u6bd4\u8f83\u5927\uff0c\u6211\u5c31\u8c03\u5c0fDAC\u6570\u636e\uff0c\u5982\u679cDAC\u8f93\u51fa\u7684\u7535\u538b\u6bd4\u8f83\u5c0f\uff0c\u6211\u5c31\u589e\u5927DAC\u6570\u636e\uff0c\u76f4\u5230DAC\u8f93\u51fa\u7684\u7535\u538b\u548c\u5916\u90e8\u901a\u9053\u8f93\u5165\u7684\u7535\u538b\u8fd1\u4f3c\u76f8\u7b49\uff0c\u8fd9\u6837DAC\u8f93\u5165\u7684\u6570\u636e\u5c31\u662f\u5916\u90e8\u7535\u538b\u7684\u7f16\u7801\u6570\u636e\u4e86\uff0c\u8fd9\u5c31\u662fDAC\u7684\u5b9e\u73b0\u539f\u7406\u5728\uff0c\u8fd9\u4e2a\u7535\u538b\u8c03\u8282\u7684\u8fc7\u7a0b\u5c31\u662f\u8fd9\u4e2a<span style=\"color: #ff6600;\">\u9010\u6b21\u903c\u8fd1\u5bc4\u5b58\u5668SAR<\/span>\u6765\u5b8c\u6210\u7684\uff0c\u4e3a\u4e86\u6700\u5feb\u627e\u5230\u672a\u77e5\u7535\u538b\u7684\u7f16\u7801\uff0c\u901a\u5e38\u6211\u4eec\u4f1a\u4f7f\u7528\u4e8c\u5206\u6cd5\u8fdb\u884c\u5bfb\u627e\uff0c\u6bd4\u5982\u8fd9\u91cc\u662f8\u4f4d\u7684ADC\uff0c\u90a3\u7f16\u7801\u5c31\u662f0~255\uff0c\u7b2c\u4e00\u6b21\u6bd4\u8f83\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5c31\u7ed9DAC\u8f93\u5165255\u7684\u4e00\u534a128\u8fdb\u884c\u6bd4\u8f83\uff0c\u7136\u540e\u770b\u770b\u8c01\u5927\u8c01\u5c0f\uff0c\u5982\u679cDAC\u7535\u538b\u5927\u4e86\uff0c\u90a3\u7b2c\u4e8c\u6b21\u6bd4\u8f83\u7684\u65f6\u5019\uff0c\u518d\u7ed9128\u7684\u4e00\u534a64\uff0c\u5982\u679c\u8fd8\u5927\uff0c\u7b2c\u4e09\u6b21\u6bd4\u8f83\u7684\u65f6\u5019\u5c31\u7ed932\uff0c\u5982\u679c\u8fd9\u6b21DAC\u7535\u538b\u5c0f\u4e86\uff0c\u90a3\u7b2c\u56db\u6b21\u5c31\u7ed932\u523064\u4e2d\u95f4\u7684\u503c\uff0c\u7136\u540e\u7ee7\u7eed\u3002\u8fd9\u6837\u4f9d\u6b21\u8fdb\u884c\u4e0b\u53bb\uff0c\u5c31\u80fd\u6700\u5feb\u7684\u627e\u5230\u672a\u77e5\u7535\u538b\u7684\u7f16\u7801\uff0c\u5e76\u4e14\u8fd9\u4e2a\u8fc7\u7a0b\u5982\u679c\u4f60\u60f3\u7528\u4e8c\u8fdb\u5236\u6765\u8868\u793a\u7684\u8bdd\uff0c\u4f60\u4f1a\u53d1\u73b0\uff0c128\u300164\u300132\u8fd9\u4e9b\u6570\u636e\uff0c\u6b63\u597d\u662f\u4e8c\u8fdb\u5236\u6bcf\u4e00\u4f4d\u7684\u4f4d\u6743\uff0c\u8fd9\u4e2a\u5224\u65ad\u8fc7\u7a0b\u5c31\u76f8\u5f53\u4e8e\u662f\uff0c\u5bf9\u4e8c\u8fdb\u5236\u4ece\u9ad8\u4f4d\u5230\u4f4e\u4f4d\u4f9d\u6b21\u5224\u65ad\u662f1\u8fd8\u662f0\u7684\u8fc7\u7a0b\uff0c\u8fd9\u5c31\u662f\u9010\u6b21\u903c\u8fd1\u578b\u540d\u5b57\u7684\u6765\u6e90\u3002<\/p>\n<h3>\u8f93\u51fa\u901a\u9053\u90e8\u5206<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-704\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-163.png\" alt=\"\" width=\"431\" height=\"264\" \/><\/p>\n<p>\u90a3\u5bf9\u4e8e8\u4f4d\u7684ADC\uff0c\u4ece\u9ad8\u4f4d\u5230\u4f4e\u4f4d\u4f9d\u6b21\u5224\u65ad8\u6b21\u5c31\u80fd\u627e\u5230\u672a\u77e5\u7535\u538b\u7684\u7f16\u7801\u4e86\uff0c\u5bf9\u4e8e12\u4f4d\u7684ADC\uff0c\u5c31\u9700\u8981\u4f9d\u6b21\u5224\u65ad12\u6b21\u3002AD\u8f6c\u6362\u7ed3\u675f\u540e\uff0cDAC\u7684\u8f93\u5165\u6570\u636e\uff0c\u5c31\u662f\u672a\u77e5\u7535\u538b\u7684\u7f16\u7801\u3002\u901a\u8fc7\u8fd9\u91cc\u8f93\u51fa\uff0c8\u4f4d\u5c31\u67098\u6839\u7ebf\uff0c12\u4f4d\u5c31\u670912\u6839\u7ebf\u3002<\/p>\n<h3>\u82af\u7247\u63a5\u7ebf<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-705\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-164.png\" alt=\"\" width=\"373\" height=\"235\" \/><\/p>\n<p>\u6700\u540e\u4e0a\u9762\u8fd9\u91cc\uff0cEOC\u662fEnd Of Convert\uff0c\u8f6c\u6362\u7ed3\u675f\u4fe1\u53f7\u3002Start\u662f\u5f00\u59cb\u8f6c\u6362\uff0c\u7ed9\u4e00\u4e2a\u8f93\u5165\u8109\u51b2\uff0c\u5f00\u59cb\u8f6c\u6362\u3002CLOCK\u662fADC\u65f6\u949f\uff0c\u56e0\u4e3aADC\u5185\u90e8\u662f\u4e00\u6b65\u4e00\u6b65\u8fdb\u884c\u5224\u65ad\u7684\uff0c\u6240\u4ee5\u9700\u8981\u65f6\u949f\u6765\u63a8\u52a8\u8fd9\u4e2a\u8fc7\u7a0b\u3002\u4e0b\u9762VREF+\u548cVREF-\u662fDAC\u7684\u53c2\u8003\u7535\u538b\u3002\u6bd4\u5982\u4f60\u7ed9\u4e2a\u6570\u636e255\uff0c\u5bf9\u5e94\u662f5V\u8fd8\u662f3.3V\u5462\uff1f\u5c31\u7531\u8fd9\u4e2a\u53c2\u8003\u7535\u538b\u51b3\u5b9a\uff0c\u8fd9\u4e2aDAC\u7684\u53c2\u8003\u7535\u538b\uff0c\u4e5f\u51b3\u5b9a\u4e86ADC\u7684\u8f93\u5165\u8303\u56f4\uff0c\u6240\u4ee5\u5b83\u4e5f\u662fADC\u53c2\u8003\u7535\u538b\u3002\u4e00\u822c\u60c5\u51b5\u4e0bADC\u8f93\u5165\u7535\u538b\u7684\u8303\u56f4\u548cADC\u7684\u4f9b\u7535\u662f\u4e00\u6837\u7684\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u628aVCC\u63a5\u5728VREF+\uff0cGND\u63a5\u5728VREF-\u5373\u53ef\u3002<\/p>\n<p>\u597d\uff0c\u5230\u8fd9\u91cc\uff0c\u76f8\u4fe1\u4f60\u5bf9\u9010\u6b21\u903c\u8fd1\u578bADC\u5df2\u7ecf\u4e86\u89e3\u7684\u5dee\u4e0d\u591a\u4e86\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u6765\u770b\u770bSTM32\u7684\u9010\u6b21\u903c\u8fd1\u578bADC\u3002\u770b\u770bSTM32\u7684ADC\u548c\u8fd9\u4e2a\u76f8\u6bd4\uff0c\u6709\u4ec0\u4e48\u66f4\u9ad8\u7ea7\u7684\u53d8\u5316\u3002<\/p>\n<h2>STM32 ADC\u6846\u56fe<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-707\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-165.png\" alt=\"\" width=\"677\" height=\"914\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-709\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-166.png\" alt=\"\" width=\"261\" height=\"160\" \/>ADC\u7684\u8f93\u5165\u901a\u9053\uff0c\u5305\u62ec16\u4e2aGPIO\u53e3\uff0cIN0~IN15\u3002\u8fd8\u6709\u4e24\u4e2a\u5185\u90e8\u901a\u9053\uff0c\u4e00\u4e2a\u5185\u90e8\u6e29\u5ea6\u4f20\u611f\u5668\uff0c\u53e6\u4e00\u4e2a\u662fVREFINT(V Reference Internal)\uff0c\u5185\u90e8\u53c2\u8003\u7535\u538b\u3002\u603b\u5171\u662f18\u4e2a\u8f93\u5165\u901a\u9053\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-710\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-167.png\" alt=\"\" width=\"259\" height=\"176\" \/>\u7136\u540e\u5230\u8fbe\u8fd9\u91cc\uff0c\u8fd9\u662f\u4e00\u4e2a\u6a21\u62df\u591a\u8def\u5f00\u5173\uff0c\u53ef\u4ee5\u6307\u5b9a\u6211\u4eec\u60f3\u8981\u9009\u62e9\u7684\u901a\u9053\u3002\u53f3\u8fb9\u662f\u591a\u8def\u5f00\u5173\u7684\u8f93\u51fa\uff0c\u8fdb\u5165\u5230\u6a21\u6570\u8f6c\u6362\u5668\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-711\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-168.png\" alt=\"\" width=\"234\" height=\"90\" \/>\u8fd9\u91cc\u6a21\u6570\u8f6c\u6362\u5668\u5c31\u662f\u6267\u884c\u7684\u6211\u4eec\u521a\u624d\u8bb2\u8fc7\u7684\u9010\u6b21\u6bd4\u8f83\u7684\u8fc7\u7a0b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-712\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-169.png\" alt=\"\" width=\"238\" height=\"96\" \/>\u8f6c\u6362\u7ed3\u679c\u4f1a\u76f4\u63a5\u653e\u5728\u6570\u636e\u5bc4\u5b58\u5668\u91cc\u3002\u6211\u4eec\u8bfb\u53d6\u5bc4\u5b58\u5668\u5c31\u80fd\u77e5\u9053ADC\u8f6c\u6362\u7684\u7ed3\u679c\u4e86\u3002<\/p>\n<h3>\u89c4\u5219\u7ec4\u548c\u6ce8\u5165\u7ec4<\/h3>\n<p>\u5bf9\u4e8e\u666e\u901a\u7684ADC\uff0c\u591a\u8def\u5f00\u5173\u4e00\u822c\u90fd\u662f\u53ea\u9009\u4e2d\u4e00\u4e2a\u7684\uff0c\u5c31\u662f\u9009\u4e2d\u67d0\u4e2a\u901a\u9053\u3001\u5f00\u59cb\u8f6c\u6362\u3001\u7b49\u5f85\u8f6c\u6362\u5b8c\u6210\u3001\u53d6\u51fa\u7ed3\u679c\u3002<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-713\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-170.png\" alt=\"\" width=\"298\" height=\"110\" \/>\u4f46\u662fSTM32\u7684ADC\u6bd4\u8f83\u9ad8\u7ea7\uff0c\u4ed6\u53ef\u4ee5\u540c\u65f6\u9009\u4e2d\u591a\u4e2a\u800c\u4e14\u5728\u8f6c\u6362\u7684\u65f6\u5019\uff0c\u8fd8\u5206\u6210\u4e86\u4e24\u7ec4\uff0c\u89c4\u5219\u901a\u9053\u7ec4\u548c\u6ce8\u5165\u901a\u9053\u7ec4\u3002<\/p>\n<p>\u5176\u4e2d\u89c4\u5219\u7ec4\u4e00\u6b21\u6027\u6700\u591a\u53ef\u4ee5\u9009\u4e2d16\u4e2a\u901a\u9053\uff0c\u6ce8\u5165\u7ec4\u6700\u591a\u53ef\u4ee5\u9009\u4e2d4\u4e2a\u901a\u9053\u3002\u8fd9\u6709\u4ec0\u4e48\u7528\u5462\uff1f<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u8fd9\u5c31\u50cf\u662f\u4f60\u53bb\u9910\u5385\u70b9\u9910\uff0c\u666e\u901a\u7684ADC\u662f\uff0c\u4f60\u6307\u5b9a\u4e00\u4e2a\u83dc\uff0c\u8001\u677f\u7ed9\u4f60\u505a\uff0c\u7136\u540e\u505a\u597d\u4e86\u9001\u7ed9\u4f60\uff0c\u8fd9\u91cc\u5c31\u662f\u4f60\u6307\u5b9a\u4e00\u4e2a\u83dc\u5355\uff0c\u8fd9\u4e2a\u83dc\u5355\u6700\u591a\u53ef\u4ee5\u586b16\u4e2a\u83dc\uff0c\u7136\u540e\u4f60\u76f4\u63a5\u9012\u4e2a\u83dc\u5355\u7ed9\u8001\u677f\uff0c\u8001\u677f\u5c31\u6309\u7167\u83dc\u5355\u7684\u987a\u5e8f\u4f9d\u6b21\u505a\u597d\uff0c\u4e00\u6b21\u6027\u7ed9\u4f60\u7aef\u4e0a\u6765\uff0c\u8fd9\u6837\u7684\u8bdd\u5c31\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6548\u7387\u3002\u5f53\u7136\uff0c\u4f60\u7684\u83dc\u5355\u4e5f\u53ef\u4ee5\u53ea\u5199\u4e00\u4e2a\u83dc\uff0c\u8fd9\u6837\u8fd9\u4e2a\u83dc\u5355\u5c31\u7b80\u5316\u6210\u4e86\u666e\u901a\u6a21\u5f0f\u3002\u5bf9\u4e8e\u8fd9\u4e2a\u83dc\u5355\uff0c\u4e5f\u6709\u4e24\u79cd\uff0c<span style=\"color: #ff6600;\">\u4e00\u79cd\u662f\u89c4\u5219\u7ec4<\/span>\uff0c\u53ef\u4ee5\u540c\u65f6\u4e0a16\u4e2a\u83dc\uff0c\u4f46\u662f\u4ed6\u6709\u4e2a\u5c34\u5c2c\u7684\u5730\u65b9\uff0c<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-714\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-171.png\" alt=\"\" width=\"178\" height=\"42\" \/>\u5c31\u662f\u89c4\u5219\u7ec4\u53ea\u6709\u4e00\u4e2a\u5bc4\u5b58\u5668\uff0c\u5c31\u662f\u8fd9\u4e2a\u684c\u5b50\u6bd4\u8f83\u5c0f\uff0c\u6700\u591a\u53ea\u80fd\u653e\u4e00\u4e2a\u83dc\uff0c\u5982\u679c\u653e\u4e0a16\u4e2a\u83dc\uff0c\u90a3\u4e0d\u597d\u610f\u601d\uff0c\u524d15\u4e2a\u83dc\u90fd\u4f1a\u88ab\u6324\u6389\uff0c\u4f60\u53ea\u80fd\u5f97\u5230\u7b2c16\u4e2a\u83dc\u3002\u6240\u4ee5\u5bf9\u4e8e\u89c4\u5219\u7ec4\u6765\u8bf4\uff0c\u5982\u679c\u4f7f\u7528\u8fd9\u4e2a\u83dc\u5355\u7684\u8bdd\uff0c\u6700\u597d\u914d\u5408DMA\u6765\u5b9e\u73b0\u3002 DMA\u662f\u4e00\u4e2a\u6570\u636e\u8f6c\u8fd0\u5c0f\u5e2e\u624b\uff0c\u5b83\u53ef\u4ee5\u5728\u6bcf\u4e0a\u4e00\u4e2a\u83dc\u4e4b\u540e\uff0c\u628a\u8fd9\u4e2a\u83dc\u632a\u5230\u5176\u4ed6\u5730\u65b9\u53bb\uff0c\u9632\u6b62\u88ab\u8986\u76d6\uff0c\u8fd9\u4e2aDMA\u6211\u4eec\u4e0b\u4e00\u8282\u5c31\u4f1a\u8bb2\uff0c\u8fd9\u91cc\u5148\u5927\u6982\u4e86\u89e3\u4e00\u4e0b\u3002\u90a3\u73b0\u5728\u6211\u4eec\u5c31\u77e5\u9053\u4e86\uff0c\u8fd9\u4e2a\u89c4\u5219\u7ec4\u867d\u7136\u53ef\u4ee5\u540c\u65f6\u8f6c\u636216\u4e2a\u901a\u9053\uff0c\u4f46\u662f\u6570\u636e\u5bc4\u5b58\u5668\u53ea\u80fd\u5b58\u4e00\u4e2a\u7ed3\u679c\uff0c\u5982\u679c\u4e0d\u60f3\u4e4b\u524d\u7684\u7ed3\u679c\u88ab\u8986\u76d6\uff0c\u90a3\u5728\u8f6c\u6362\u5b8c\u6210\u4e4b\u540e\uff0c\u5c31\u8981\u5c3d\u5feb\u628a\u7ed3\u679c\u62ff\u8d70\u3002<span style=\"color: #ff6600;\">\u53e6\u4e00\u79cd\u662f\u6ce8\u5165\u7ec4<\/span>\uff0c\u8fd9\u4e2a\u7ec4\u5c31\u6bd4\u8f83\u9ad8\u7ea7\u4e86\uff0c\u5b83\u76f8\u5f53\u4e8e\u9910\u5385\u7684VIP\u5ea7\u4f4d\uff0c\u5728\u8fd9\u4e2a\u5ea7\u4f4d\u4e0a\uff0c\u4e00\u6b21\u6027\u6700\u591a\u53ef\u4ee5\u70b94\u4e2a\u83dc\uff0c<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-715\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-172.png\" alt=\"\" width=\"179\" height=\"47\" \/>\u5e76\u4e14\u8fd9\u91cc\u6570\u636e\u5bc4\u5b58\u5668\u67094\u4e2a\uff0c\u662f\u53ef\u4ee5\u540c\u65f6\u4e0a4\u4e2a\u83dc\u7684\uff0c\u5bf9\u4e8e\u6ce8\u5165\u7ec4\u800c\u8a00\uff0c\u5c31\u4e0d\u7528\u62c5\u5fc3\u6570\u636e\u8986\u76d6\u7684\u95ee\u9898\u4e86\u3002\u8fd9\u5c31\u662f\u89c4\u5219\u7ec4\u548c\u6ce8\u5165\u7ec4\u7684\u4ecb\u7ecd\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4f7f\u7528\u89c4\u5219\u7ec4\u5c31\u5b8c\u5168\u8db3\u591f\u7528\u4e86\uff0c\u5982\u679c\u8981\u4f7f\u7528\u89c4\u5219\u7ec4\u83dc\u5355\uff0c\u90a3\u5c31\u518d\u914d\u5408DMA\u8f6c\u8fd0\u6570\u636e\uff0c\u8fd9\u6837\u5c31\u4e0d\u7528\u62c5\u5fc3\u6570\u636e\u8986\u76d6\u7684\u95ee\u9898\u4e86\u3002\u6240\u4ee5\u63a5\u4e0b\u6765\u53ea\u8bb2\u89c4\u5219\u7ec4\u7684\u64cd\u4f5c\uff0c\u6ce8\u5165\u7ec4\u6d89\u53ca\u7684\u4e0d\u591a\uff0c\u5927\u5bb6\u53ef\u4ee5\u770b\u624b\u518c\u81ea\u884c\u4e86\u89e3\u3002<\/p>\n<h3>\u5b9a\u65f6\u5668\u89e6\u53d1\u7684\u4f5c\u7528<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-719\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-174.png\" alt=\"\" width=\"520\" height=\"349\" \/><\/p>\n<p>\u5de6\u4e0b\u89d2\u8fd9\u91cc\u662f\u89e6\u53d1\u8f6c\u6362\u90e8\u5206\uff0c\u4e5f\u5c31\u662f\u4e0a\u9762AD0809\u63d0\u5230\u7684START\u4fe1\u53f7\uff0c\u5f00\u59cb\u8f6c\u6362\u3002<\/p>\n<p>\u5bf9\u4e8eSTM32\u7684ADC\uff0c\u89e6\u53d1ADC\u5f00\u59cb\u8f6c\u6362\u7684\u4fe1\u53f7\u6709\u4e24\u79cd\uff1a<\/p>\n<p>1.\u8f6f\u4ef6\u89e6\u53d1\uff0c\u5c31\u662f\u4f60\u5728\u7a0b\u5e8f\u4e2d\u624b\u52a8\u8c03\u7528\u4e00\u6761\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8\u8f6c\u6362\u4e86\u3002<\/p>\n<p>2.\u786c\u4ef6\u89e6\u53d1\uff0c\u5c31\u662f\u8fd9\u91cc\u7684\u8fd9\u4e9b\u89e6\u53d1\u6e90\uff0c\u4e0a\u9762\u7684\u662f\u6ce8\u5165\u7ec4\u89e6\u53d1\u6e90\uff0c\u4e0b\u9762\u662f\u89c4\u5219\u7ec4\u7684\u89e6\u53d1\u6e90\u3002\u8fd9\u4e9b\u89e6\u53d1\u6e90\u4e3b\u8981\u6765\u6e90\u4e8e\u5b9a\u65f6\u5668\uff0c\u6709\u5b9a\u65f6\u5668\u7684\u5404\u4e2a\u901a\u9053\uff0c\u8fd8\u6709TRGO\u5b9a\u65f6\u4e3b\u6a21\u5f0f\u7684\u8f93\u51fa\u3002\u8fd9\u4e2a\u4e4b\u524d\u8bb2\u5b9a\u65f6\u5668\u7684\u4e5f\u4ecb\u7ecd\u8fc7\uff0c\u5b9a\u65f6\u5668\u53ef\u4ee5\u901a\u5411ADC\u3001DAC\u8fd9\u4e9b\u5916\u8bbe\uff0c\u7528\u4e8e\u89e6\u53d1\u8f6c\u6362\u3002\u90a3\u56e0\u4e3aADC\u7ecf\u5e38\u9700\u8981\u8fc7\u4e00\u4e2a\u56fa\u5b9a\u65f6\u95f4\u6bb5\u8f6c\u6362\u4e00\u6b21\uff0c\u6bd4\u5982\u6bcf\u96941ms\u8f6c\u6362\u4e00\u6b21\uff0c\u6b63\u5e38\u7684\u601d\u8def\u5c31\u662f\uff0c\u7528\u5b9a\u65f6\u5668\uff0c\u6bcf\u96941ms\u7533\u8bf7\u4e00\u6b21\u4e2d\u65ad\uff0c\u5728\u4e2d\u65ad\u91cc\u624b\u52a8\u5f00\u59cb\u4e00\u6b21\u8f6c\u6362\uff0c\u8fd9\u6837\u4e5f\u662f\u53ef\u4ee5\u7684\uff0c\u4f46\u662f\u9891\u7e41\u8fdb\u4e2d\u65ad\u5bf9\u6211\u4eec\u7684\u7a0b\u5e8f\u662f\u6709\u4e00\u5b9a\u5f71\u54cd\u7684\uff0c\u6bd4\u5982\u4f60\u6709\u5f88\u591a\u4e2d\u65ad\u9700\u8981\u9891\u7e41\u8fdb\u5165\uff0c\u90a3\u80af\u5b9a\u4f1a\u5f71\u54cd\u4e3b\u7a0b\u5e8f\u7684\u6267\u884c\u3002\u5e76\u4e14\u4e0d\u540c\u4e2d\u65ad\u4e4b\u95f4\u7684\u4f18\u5148\u7ea7\u4e0d\u540c\uff0c\u5982\u679c\u89e6\u53d1ADC\u7684\u4e2d\u65ad\u4e0d\u80fd\u53ca\u65f6\u54cd\u5e94\uff0c\u90a3\u6211\u4eecADC\u7684\u8f6c\u6362\u9891\u7387\u5c31\u80af\u5b9a\u4f1a\u4ea7\u751f\u5f71\u54cd\u4e86\u3002\u6240\u4ee5\u5bf9\u4e8e\u8fd9\u79cd\u9700\u8981\u9891\u7e41\u8fdb\u4e2d\u65ad\uff0c\u5e76\u4e14\u5728\u4e2d\u65ad\u91cc\u53ea\u5b8c\u6210\u4e86\u7b80\u5355\u5de5\u4f5c\u7684\u60c5\u51b5\uff0c\u4e00\u822c\u90fd\u4f1a\u6709\u786c\u4ef6\u7684\u652f\u6301\u3002<\/p>\n<p>\u6bd4\u5982\u8fd9\u91cc\uff0c\u5c31\u53ef\u4ee5\u7ed9TIM3\u5b9a\u4e00\u4e2a1ms\u7684\u65f6\u95f4\uff0c\u5e76\u4e14\u628aTIM3\u7684\u66f4\u65b0\u4e8b\u4ef6\u9009\u62e9\u4e3aTRGO\u8f93\u51fa\uff0c\u7136\u540e\u5728ADC\u8fd9\u91cc\uff0c\u9009\u62e9\u5f00\u59cb\u89e6\u53d1\u4fe1\u53f7\u4e3aTIM3\u7684TRGO\uff0c\u8fd9\u6837TIM3\u7684\u66f4\u65b0\u4e8b\u4ef6\u5c31\u80fd\u901a\u8fc7\u786c\u4ef6\u81ea\u52a8\u89e6\u53d1ADC\u8f6c\u6362\u4e86\uff0c\u6574\u4e2a\u8fc7\u7a0b\u4e0d\u9700\u8981\u8fdb\u4e2d\u65ad\uff0c\u8282\u7701\u4e86\u4e2d\u65ad\u8d44\u6e90\u3002\u8fd9\u5c31\u662f\u5b9a\u65f6\u5668\u89e6\u53d1\u7684\u4f5c\u7528\uff0c\u5f53\u7136\u8fd9\u91cc\u8fd8\u53ef\u4ee5\u9009\u62e9\u5916\u90e8\u4e2d\u65ad\u5f15\u811a\u6765\u89e6\u53d1\u8f6c\u6362\uff0c\u90fd\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u914d\u7f6e\uff0c\u8fd9\u5c31\u662f\u89e6\u53d1\u8f6c\u6362\u7684\u90e8\u5206\u3002<\/p>\n<h3>\u53c2\u8003\u7535\u538b\u4e0e\u4f9b\u7535<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-721\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-175.png\" alt=\"\" width=\"114\" height=\"107\" \/> VREF+\u548cVREF-\u662fADC\u7684\u53c2\u8003\u7535\u538b\uff0c\u51b3\u5b9a\u4e86ADC\u8f93\u5165\u7535\u538b\u7684\u8303\u56f4\u3002\u4e0b\u9762\u4e24\u4e2a\u662fADC\u7684\u4f9b\u7535\u5f15\u811a\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0cVREF+\u548cVREF-\u5206\u522b\u8981\u63a5VDDA\u548cVSSA\u3002\u5728\u6211\u4eec\u8fd9\u4e2a\u82af\u7247\u4e0a\u6ca1\u6709VREF+\u548cVREF-\u7684\u5f15\u811a\uff0c\u4ed6\u5728\u5185\u90e8\u5c31\u5df2\u7ecf\u548cVDDA\u548cVSSA\u63a5\u5728\u4e00\u8d77\u4e86\u3002VDDA\u548cVSSA\u5728\u5f15\u811a\u5b9a\u4e49\u91cc\u4e5f\u53ef\u4ee5\u770b\u5230\uff0cVDDA\u548cVSSA\u662f\u5185\u90e8\u6a21\u62df\u90e8\u5206\u7684\u7535\u6e90\uff0c\u6bd4\u5982ADC\u3001RC\u632f\u8361\u5668\u3001\u9501\u76f8\u73af\u7b49\u3002\u5728\u8fd9\u91ccVDDA\u63a53.3V\uff0cVSSA\u63a5GND\uff0c\u6240\u4ee5ADC\u7684\u8f93\u5165\u7535\u538b\u8303\u56f4\u5c31\u662f0~3.3V\u3002<\/p>\n<h3>ADC\u7684\u65f6\u949f<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-723\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-177.png\" alt=\"\" width=\"279\" height=\"222\" \/><\/p>\n<p>ADCCLK\u662fADC\u7684\u65f6\u949f\uff0c\u662f\u7528\u4e8e\u9a71\u52a8\u5185\u90e8\u9010\u6b21\u6bd4\u8f83\u7684\u65f6\u949f\uff0c\u8fd9\u4e2a\u65f6\u949f\u6765\u81ea\u4e8eADC\u9884\u5206\u9891\u5668\uff0c\u8fd9\u4e2aADC\u9884\u5206\u9891\u5668\u662f\u6765\u6e90\u4e8eRCC\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u5728\u65f6\u949f\u6811\u4e2d\u627e\u5230<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-722\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-176.png\" alt=\"\" width=\"320\" height=\"205\" \/>\uff0cADCCLK\u6700\u5927\u662f14MHz\uff0c\u6240\u4ee5\u8fd9\u4e2a\u9884\u5206\u9891\u5668\u5c31\u6709\u70b9\u5c34\u5c2c\uff0c\u5b83\u53ef\u4ee5\u9009\u62e92\u30014\u30016\u30018\u5206\u9891\uff0c\u5982\u679c\u9009\u62e92\u5206\u9891\uff0c72M\/2 = 36M\uff0c\u5c31\u8d85\u51fa\u5141\u8bb8\u8303\u56f4\u4e86\u3002\u540c\u68374\u5206\u9891\u4e5f\u8d85\u4e86\uff0c\u6240\u4ee5\u5bf9\u4e8eADC\u9884\u5206\u9891\u5668\uff0c\u53ea\u80fd\u9009\u62e96\u5206\u9891\u548c8\u5206\u9891\uff0c\u7ed3\u679c\u5206\u522b\u662f12M\u548c9M\u3002<\/p>\n<h3>DMA\u8bf7\u6c42<\/h3>\n<p>DMA\u8bf7\u6c42\u5c31\u662f\u7528\u4e8e\u89e6\u53d1DMA\u8fdb\u884c\u6570\u636e\u8f6c\u8fd0\u7684\uff0c\u8fd9\u4e2a\u6211\u4eec\u4e0b\u8282\u518d\u8bb2\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-724\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-178.png\" alt=\"\" width=\"272\" height=\"169\" \/><\/p>\n<h3>ADC\u4e2d\u65ad<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-725\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-179.png\" alt=\"\" width=\"497\" height=\"195\" \/><\/p>\n<p>\u6a21\u62df\u770b\u95e8\u72d7\u53ef\u4ee5\u5b58\u4e00\u4e2a\u9608\u503c\u9ad8\u9650\u548c\u9608\u503c\u5e95\u9650\uff0c\u5982\u679c\u542f\u52a8\u4e86\u6a21\u62df\u770b\u95e8\u72d7\uff0c\u5e76\u6307\u5b9a\u4e86\u770b\u95e8\u7684\u901a\u9053\uff0c\u90a3\u8fd9\u4e2a\u770b\u95e8\u72d7\u5c31\u4f1a\u5173\u6ce8\u5b83\u7684\u770b\u95e8\u901a\u9053\uff0c\u4e00\u65e6\u8d85\u8fc7\u8fd9\u4e2a\u9608\u503c\u8303\u56f4\u4e86\uff0c\u5c31\u4f1a\u5728\u4e0a\u9762\uff0c\u7533\u8bf7\u4e00\u4e2a\u6a21\u62df\u770b\u95e8\u72d7\u7684\u4e2d\u65ad\uff0c\u6700\u540e\u901a\u5411NVIC\u3002<\/p>\n<p>\u5bf9\u4e8e\u89c4\u5219\u7ec4\u548c\u6ce8\u5165\u7ec4\u800c\u8a00\uff0c\u5b83\u4eec\u8f6c\u6362\u5b8c\u4e4b\u540e\uff0c\u4e5f\u4f1a\u6709\u4e2aEOC\u8f6c\u6362\u5b8c\u6210\u7684\u4fe1\u53f7\uff0c\u5728\u8fd9\u91ccEOC\u662f\u89c4\u5219\u7ec4\u5b8c\u6210\u4fe1\u53f7\uff0cJEOC\u662f\u6ce8\u5165\u7ec4\u5b8c\u6210\u7684\u4fe1\u53f7\u3002\u8fd9\u4e24\u4e2a\u4fe1\u53f7\u4f1a\u5728\u72b6\u6001\u5bc4\u5b58\u5668\u7f6e\u4e00\u4e2a\u6807\u5fd7\u4f4d\uff0c\u6211\u4eec\u8bfb\u53d6\u8fd9\u4e2a\u6807\u5fd7\u4f4d\uff0c\u5c31\u80fd\u77e5\u9053\u662f\u4e0d\u662f\u8f6c\u6362\u7ed3\u675f\u4e86\uff0c\u540c\u65f6\u8fd9\u4e24\u4e2a\u6807\u5fd7\u4f4d\u4e5f\u53ef\u4ee5\u53bb\u5230NVIC\u7533\u8bf7\u4e2d\u65ad\uff0c\u5982\u679c\u5f00\u542f\u4e86NVIC\u5bf9\u5e94\u7684\u901a\u9053\uff0c\u5b83\u4eec\u5c31\u4f1a\u89e6\u53d1\u4e2d\u65ad\u3002<\/p>\n<h2>ADC\u57fa\u672c\u7ed3\u6784\u56fe<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-727\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-180.png\" alt=\"\" width=\"869\" height=\"402\" \/><\/p>\n<p>\u6700\u5de6\u8fb9\u662f16\u5404\u901a\u9053\u5916\u52a0\u4e24\u4e2a\u5185\u90e8\u901a\u9053\u3002<\/p>\n<p>\u7136\u540e\u8fdb\u5165AD\u8f6c\u6362\u5668\uff0cAD\u8f6c\u6362\u5668\u91cc\u6709\u4e24\u4e2a\u7ec4\uff0c\u4e00\u4e2a\u662f\u89c4\u5219\u7ec4\uff0c\u4e00\u4e2a\u662f\u6ce8\u5165\u7ec4\uff0c\u89c4\u5219\u7ec4\u6700\u591a\u53ef\u4ee5\u9009\u4e2d16\u4e2a\u901a\u9053\uff0c\u6ce8\u5165\u7ec4\u6700\u591a\u53ef\u4ee5\u9009\u4e2d4\u4e2a\u901a\u9053\u3002<\/p>\n<p>\u7136\u540e\u8f6c\u5316\u7684\u7ed3\u679c\u53ef\u4ee5\u5b58\u653e\u5728AD\u6570\u636e\u5bc4\u5b58\u5668\u91cc\u9762\uff0c\u5176\u4e2d\u89c4\u5219\u7ec4\u53ea\u67091\u4e2a\u6570\u636e\u5bc4\u5b58\u5668\uff0c\u6ce8\u5165\u7ec4\u67094\u4e2a\u3002<\/p>\n<p>\u4e0b\u9762\u8fd9\u91cc\u6709\u89e6\u53d1\u63a7\u5236\uff0c\u63d0\u4f9b\u4e86\u5f00\u59cb\u8f6c\u6362\u8fd9\u4e2aSTRAT\u4fe1\u53f7\u3002\u89e6\u53d1\u63a7\u5236\u53ef\u4ee5\u9009\u62e9\u8f6f\u4ef6\u89e6\u53d1\u548c\u786c\u4ef6\u51fa\u53d1\uff0c\u786c\u4ef6\u51fa\u53d1\u4e3b\u8981\u6765\u81ea\u4e8e\u5b9a\u65f6\u5668\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u9009\u62e9\u5916\u90e8\u4e2d\u65ad\u7684\u5f15\u811a\u3002<\/p>\n<p>\u53f3\u8fb9\u8fd9\u91cc\u662f\u6765\u81ea\u4e8eRCC\u7684ADC\u65f6\u949fCLOCK\uff0cADC\u9010\u6b21\u6bd4\u8f83\u7684\u8fc7\u7a0b\u5c31\u662f\u7531\u8fd9\u4e2a\u65f6\u949f\u63a8\u52a8\u7684\u3002<\/p>\n<p>\u4e0a\u9762\u53ef\u4ee5\u5e03\u7f6e\u4e00\u4e2a\u6a21\u62df\u770b\u95e8\u72d7\u7528\u4e8e\u68c0\u6d4b\u8f6c\u6362\u7ed3\u679c\u7684\u8303\u56f4\uff0c\u5982\u679c\u8d85\u8fc7\u8bbe\u5b9a\u7684\u9608\u503c\uff0c\u5c31\u4f1a\u901a\u8fc7\u4e2d\u65ad\u8f93\u51fa\u63a7\u5236\uff0c\u5411NVIV\u7533\u8bf7\u4e2d\u65ad\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u89c4\u5219\u7ec4\u548c\u6ce8\u5165\u7ec4\u8f6c\u6362\u5b8c\u6210\u540e\uff0c\u4e5f\u4f1a\u6709\u4e2aEOC\u4fe1\u53f7\u7f6e\u4e00\u4e2a\u6807\u5fd7\u4f4d\uff0c\u4e5f\u53ef\u4ee5\u901a\u5411NVIC\u3002<\/p>\n<p>\u53f3\u4e0b\u89d2\u8fd9\u91cc\u6709\u4e2a\u5f00\u5173\u63a7\u5236\uff0c\u5728\u5e93\u51fd\u6570\u4e2d\u5c31\u662fADC_Cmd\u51fd\u6570\uff0c\u7528\u4e8e\u7ed9ADC\u4e0a\u7535\u7684\u3002<\/p>\n<p>\u8fd9\u4e9b\uff0c\u5c31\u662fSTM32 ADC\u7684\u5185\u90e8\u7ed3\u6784\u4e86\u3002<\/p>\n<h3>\u8f93\u5165\u901a\u9053<\/h3>\n<p>\u521a\u624d\u6211\u4eec\u8bf4\u4e86\uff0c<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-728\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-181.png\" alt=\"\" width=\"123\" height=\"82\" \/>\u8fd9\u91cc\u670916\u4e2a\u5916\u90e8\u901a\u9053\uff0c\u90a3\u8fd916\u4e2a\u901a\u9053\u5bf9\u5e94\u90fd\u662f\u54ea\u4e9bGPIO\u53e3\u5462\uff1f\u53ef\u4ee5\u770b\u4e0b\u8868\uff1a<\/p>\n<div class=\"sc-collapse\"><div class=\"sc-collapse__header\"><svg class=\"sc-collapse__arrow\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6 9 12 15 18 9\"\/><\/svg>ADC\u901a\u9053\u548c\u5f15\u811a\u590d\u7528\u7684\u5173\u7cfb<\/div><div class=\"sc-collapse__body\"><div class=\"sc-collapse__content\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-729\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-182.png\" alt=\"\" width=\"774\" height=\"754\" \/><\/p>\n<p>\u8fd9\u91cc\u53ea\u6709ADC1\u6709\u901a\u905316\u548c17\uff0cADC2\u548cADC3\u662f\u6ca1\u6709\u7684\u3002ADC1\u548cADC2\u7684\u5f15\u811a\u662f\u5b8c\u5168\u76f8\u540c\u7684\uff0cADC3\u4e2d\u95f4\u4f1a\u6709\u4e9b\u53d8\u5316\uff0c\u4e0d\u8fc7\u6211\u4eec\u8fd9\u4e2a\u82af\u7247\u6ca1\u6709ADC3\uff0c\u4e0d\u7528\u7ba1\u7684\u3002\u7531\u4e8e\u6211\u4eec\u8fd9\u4e2a\u82af\u7247\u4e5f\u6ca1\u6709PC0~PC5\uff0c\u6240\u4ee5\u5bf9\u5e94\u901a\u905310~15\u4e5f\u662f\u6ca1\u6709\u7684\u3002<\/p>\n<p><\/div><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-731\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-183.png\" alt=\"\" width=\"522\" height=\"140\" \/><\/p>\n<p>ADC12_IN0\u7684\u610f\u601d\u662f\uff0cADC1\u548cADC2\u7684IN0\u90fd\u662f\u5728PA0\u4e0a\uff0c\u540c\u7406\uff0c\u5176\u4ed6\u7684\u4e5f\u662f\u3002\u65e2\u7136\u90fd\u76f8\u540c\uff0c\u90a3\u8981ADC2\u6709\u5565\u7528\u5462\uff1f\u8fd9\u4e2a\u5c31\u8981\u518d\u8bf4\u4e00\u4e2aADC\u7684\u9ad8\u7ea7\u529f\u80fd\u4e86\uff0c\u5c31\u662f\u53ccADC\u6a21\u5f0f\uff0c\u8fd9\u4e2a\u6a21\u5f0f\u6bd4\u8f83\u590d\u6742\uff0c\u8fd9\u91cc\u53ea\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u4e0d\u9700\u8981\u638c\u63e1\uff0c\u53ccADC\u6a21\u5f0f\u5c31\u662fADC1\u548cADC2\u4e00\u8d77\u5de5\u4f5c\uff0c\u4ed6\u4fe9\u53ef\u4ee5\u914d\u5408\u7ec4\u6210\u540c\u6b65\u6a21\u5f0f\u3001\u4ea4\u53c9\u6a21\u5f0f\u7b49\u7b49\u6a21\u5f0f\uff0c\u6bd4\u5982\u4ea4\u53c9\u6a21\u5f0f\uff0cADC1\u548cADC2\u4ea4\u53c9\u5730\u5bf9\u4e00\u4e2a\u901a\u9053\u8fdb\u884c\u91c7\u6837\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u9ad8\u91c7\u6837\u7387\uff0c\u5c31\u50cf\u4f60\u6253\u62f3\u4e00\u6837\uff0c\u5de6\u624b\u4e00\u62f3\u53f3\u624b\u4e00\u62f3\u5feb\u901f\u4ea4\u53c9\u5730\u6253\u62f3\u3002\u90a3\u6253\u51fb\u7684\u9891\u7387\u80af\u5b9a\u5c31\u6bd4\u4e00\u4e2a\u62f3\u5934\u6253\u7684\u5feb\u5bf9\u5427\u3002\u5f53\u7136\u8fd8\u6709\u5176\u4ed6\u7684\u6a21\u5f0f\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u8be6\u7ec6\u8bf4\u4e86\u3002\u8fd9\u5c31\u662fADC1\u548cADC2\u914d\u5408\u4f7f\u7528\u7684\u53ccADC\u6a21\u5f0f\u3002\u5f53\u7136ADC1\u548cADC2\u4e5f\u662f\u53ef\u4ee5\u5206\u5f00\u4f7f\u7528\u7684\uff0c\u53ef\u4ee5\u5206\u522b\u5bf9\u4e0d\u540c\u5f15\u811a\u8fdb\u884c\u91c7\u6837\uff0c\u8fd9\u6837\u4e5f\u662f\u53ef\u4ee5\u7684\u3002<\/p>\n<h2>\u89c4\u5219\u7ec4\u76844\u79cd\u8f6c\u6362\u6a21\u5f0f<\/h2>\n<p>\u90a3\u5728\u6211\u4eecADC\u521d\u59cb\u5316\u7684\u7ed3\u6784\u4f53\u91cc\uff0c\u4f1a\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u4e00\u4e2a\u662f\u9009\u62e9\u5355\u6b21\u8f6c\u6362\u8fd8\u662f\u8fde\u7eed\u8f6c\u6362\uff1b\u53e6\u4e00\u4e2a\u662f\u9009\u62e9\u626b\u63cf\u6a21\u5f0f\u8fd8\u662f\u975e\u626b\u63cf\u6a21\u5f0f\u3002\u8fd9\u4e24\u4e2a\u53c2\u6570\u7ec4\u5408\u8d77\u6765\u5c31\u67094\u4e2d\u8f6c\u6362\u65b9\u5f0f\uff1a<\/p>\n<p>\u5355\u6b21\u8f6c\u6362\uff0c\u975e\u626b\u63cf\u6a21\u5f0f\u3002<\/p>\n<p>\u8fde\u7eed\u8f6c\u6362\uff0c\u975e\u626b\u63cf\u6a21\u5f0f\u3002<\/p>\n<p>\u5355\u6b21\u8f6c\u6362\uff0c\u626b\u63cf\u6a21\u5f0f\u3002<\/p>\n<p>\u8fde\u7eed\u8f6c\u6362\uff0c\u626b\u63cf\u6a21\u5f0f\u3002<\/p>\n<h3>\u5355\u975e<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-732\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-184.png\" alt=\"\" width=\"855\" height=\"630\" \/><\/p>\n<p>\u5728\u975e\u626b\u63cf\u6a21\u5f0f\u4e0b\uff0c\u8fd9\u4e2a\u83dc\u5355\u5c31\u53ea\u6709\u7b2c\u4e00\u4e2a\u5e8f\u52171\u7684\u4f4d\u7f6e\u6709\u6548\u3002\u8fd9\u65f6\uff0c\u83dc\u5355\u540c\u65f6\u9009\u4e2d\u4e00\u7ec4\u7684\u65b9\u5f0f\u5c31\u9000\u5316\u4e3a\u7b80\u5355\u7684\u9009\u4e2d\u4e00\u4e2a\u65b9\u5f0f\u4e86\u3002<\/p>\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5e8f\u52171\u7684\u4f4d\u7f6e\u6307\u5b9a\u6211\u4eec\u60f3\u8f6c\u6362\u7684\u901a\u9053\uff0c\u6bd4\u5982\u901a\u90532\u3002\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u89e6\u53d1\u8f6c\u6362\uff0cADC\u5c31\u4f1a\u5bf9\u8fd9\u4e2a\u901a\u90532\u8fdb\u884c\u6a21\u6570\u8f6c\u6362\uff0c\u8fc7\u4e00\u5c0f\u6bb5\u65f6\u95f4\u540e\uff0c\u8f6c\u6362\u5b8c\u6210\uff0c\u8f6c\u6362\u7ed3\u679c\u653e\u5728\u6570\u636e\u5bc4\u5b58\u5668\u91cc\uff0c\u540c\u65f6\u7ed9EOC\u6807\u5fd7\u4f4d\u7f6e1\u3002\u6574\u4e2a\u8f6c\u6362\u8fc7\u7a0b\u5c31\u7ed3\u675f\u4e86\u3002\u6211\u4eec\u5224\u65ad\u8fd9\u4e2aEOC\u6807\u5fd7\u4f4d\uff0c\u5982\u679c\u8f6c\u5316\u5b8c\u4e86\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u6570\u636e\u5bc4\u5b58\u5668\u91cc\u8bfb\u53d6\u7ed3\u679c\u4e86\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u8981\u518d\u542f\u52a8\u4e00\u6b21\u8f6c\u6362\uff0c\u90a3\u5c31\u9700\u8981\u518d\u89e6\u53d1\u4e00\u6b21\u3002\u5982\u679c\u60f3\u6362\u4e00\u4e2a\u901a\u9053\u8f6c\u6362\uff0c\u90a3\u5c31\u5728\u8f6c\u6362\u4e4b\u524d\uff0c\u628a\u7b2c\u4e00\u4e2a\u4f4d\u7f6e\u7684\u901a\u90532\u6362\u6210\u5176\u4ed6\u901a\u9053\u3002<\/p>\n<h3>\u8fde\u975e<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-733\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-185.png\" alt=\"\" width=\"838\" height=\"520\" \/><\/p>\n<p>\u8fde\u7eed\u8f6c\u6362\uff0c\u975e\u626b\u63cf\u6a21\u5f0f\u3002\u4ed6\u8fd8\u662f\u975e\u626b\u63cf\u6a21\u5f0f\uff0c\u6240\u4ee5\u83dc\u5355\u5217\u8868\u5c31\u53ea\u80fd\u7528\u7b2c\u4e00\u4e2a\u3002<\/p>\n<p>\u7136\u540e\u4ed6\u4e0e\u5355\u6b21\u8f6c\u6362\u4e0d\u540c\u7684\u662f\uff0c\u4ed6\u5728\u4e00\u6b21\u8f6c\u6362\u7ed3\u675f\u540e\u4e0d\u4f1a\u505c\u6b62\uff0c\u800c\u662f\u7acb\u523b\u5f00\u542f\u4e0b\u4e00\u8f6e\u7684\u8f6c\u6362\uff0c\u7136\u540e\u4e00\u76f4\u6301\u7eed\u4e0b\u53bb\u3002<\/p>\n<p>\u8fd9\u6837\u5c31\u53ea\u9700\u8981\u6700\u5f00\u59cb\u89e6\u53d1\u4e00\u6b21\uff0c\u4e4b\u540e\u5c31\u53ef\u4ee5\u4e00\u76f4\u8f6c\u6362\u4e86\u3002\u8fd9\u4e2a\u6a21\u5f0f\u7684\u597d\u5904\u5c31\u662f\uff0c\u5f00\u59cb\u8f6c\u6362\u4e4b\u540e\u4e0d\u9700\u8981\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u56e0\u4e3a\u4ed6\u4e00\u76f4\u90fd\u5728\u8f6c\u6362\uff0c\u6240\u4ee5\u4f60\u5c31\u4e0d\u9700\u8981\u624b\u52a8\u5f00\u59cb\u8f6c\u6362\u4e86\uff0c\u4e5f\u4e0d\u7528\u5224\u65ad\u662f\u5426\u7ed3\u675f\uff0c\u60f3\u8981\u8bfbAD\u503c\u7684\u65f6\u5019\uff0c\u76f4\u63a5\u4ece\u6570\u636e\u5bc4\u5b58\u5668\u53d6\u5c31\u662f\u4e86\u3002<\/p>\n<h3>\u5355\u626b<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-734\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-186.png\" alt=\"\" width=\"825\" height=\"507\" \/><\/p>\n<p>\u5355\u6b21\u8f6c\u6362\uff0c\u626b\u63cf\u6a21\u5f0f\u3002<\/p>\n<p>\u8fd9\u4e2a\u6a21\u5f0f\u4e5f\u662f\u5355\u8bcd\u8f6c\u6362\uff0c\u6240\u4ee5\u6bcf\u89e6\u53d1\u4e00\u6b21\u8f6c\u6362\u7ed3\u675f\u540e\uff0c\u5c31\u4f1a\u505c\u4e0b\u6765\u3002\u4e0b\u6b21\u8f6c\u6362\u5c31\u5f97\u518d\u89e6\u53d1\u624d\u80fd\u5f00\u59cb\u3002<\/p>\n<p>\u7136\u540e\u4ed6\u662f\u626b\u63cf\u6a21\u5f0f\uff0c\u8fd9\u5c31\u4f1a\u7528\u5230\u8fd9\u4e2a\u83dc\u5355\u5217\u8868\u4e86\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e2a\u83dc\u5355\u91cc\u70b9\u83dc\uff0c\u6bd4\u5982\u7b2c\u4e00\u4e2a\u83dc\u662f\u901a\u90532\uff0c\u7b2c\u4e8c\u83dc\u662f\u901a\u90535\u7b49\u7b49\u3002\u8fd9\u91cc\u6bcf\u4e2a\u4f4d\u7f6e\u662f\u901a\u9053\u51e0\u53ef\u4ee5\u4efb\u610f\u6307\u5b9a\uff0c\u5e76\u4e14\u4e5f\u662f\u53ef\u4ee5\u91cd\u590d\u7684\u3002<\/p>\n<p>\u7136\u540e\u521d\u59cb\u5316\u7ed3\u6784\u4f53\u91cc\u8fd8\u4f1a\u6709\u4e2a\u53c2\u6570\uff0c\u5c31\u662f\u901a\u9053\u6570\u76ee\uff0c\u56e0\u4e3a\u8fd916\u4e2a\u4f4d\u7f6e\u4f60\u53ef\u4ee5\u4e0d\u7528\u5b8c\uff0c\u53ea\u7528\u524d\u51e0\u4e2a\uff0c\u90a3\u4f60\u5c31\u9700\u8981\u518d\u7ed9\u4e00\u4e2a\u901a\u9053\u6570\u76ee\u7684\u53c2\u6570\uff0c\u544a\u8bc9\u4ed6\u6709\u51e0\u4e2a\u901a\u9053\u3002\u6bd4\u5982\u8fd9\u91cc\u6307\u5b9a\u901a\u9053\u6570\u76ee\u4e3a7\uff0c\u90a3\u5b83\u5c31\u53ea\u770b\u524d7\u4e2a\u4f4d\u7f6e\uff0c\u7136\u540e\u6bcf\u6b21\u89e6\u53d1\u4e4b\u540e\uff0c\u4ed6\u5c31\u4f1a\u4f9d\u6b21\u5bf9\u8fd9\u524d7\u4e2a\u4f4d\u7f6e\u8fdb\u884cAD\u8f6c\u6362\uff0c\u8f6c\u5316\u7ed3\u679c\u90fd\u653e\u5728\u6570\u636e\u5bc4\u5b58\u5668\u91cc\uff0c\u8fd9\u91cc\u4e3a\u4e86\u9632\u6b62\u6570\u636e\u88ab\u8986\u76d6\uff0c\u5c31\u9700\u8981\u7528DMA\u53ca\u65f6\u5c06\u6570\u636e\u632a\u8d70\uff0c\u90a37\u4e2a\u901a\u9053\u8f6c\u6362\u5b8c\u6210\u4e4b\u540e\uff0c\u4ea7\u751fEOC\u4fe1\u53f7\uff0c\u8f6c\u6362\u7ed3\u675f\u3002<\/p>\n<h3>\u8fde\u626b<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-736\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-187.png\" alt=\"\" width=\"986\" height=\"606\" \/><\/p>\n<p>\u8fd9\u4e2a\u5957\u8def\u548c\u4e4b\u524d\u7684\u662f\u4e00\u6837\u7684\uff0c\u4e00\u6b21\u8f6c\u5316\u5b8c\u6210\u540e\uff0c\u7acb\u523b\u5f00\u59cb\u4e0b\u4e00\u6b21\u8f6c\u6362\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5728\u626b\u63cf\u6a21\u5f0f\u4e0b\uff0c\u8fd8\u6709\u4e00\u79cd\u6a21\u5f0f\uff0c\u53eb\u95f4\u65ad\u6a21\u5f0f\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u5728\u626b\u63cf\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u9694\u51e0\u6b21\u8f6c\u6362\uff0c\u5c31\u6682\u505c\u4e00\u6b21\uff0c\u9700\u8981\u518d\u6b21\u89e6\u53d1\uff0c\u624d\u80fd\u7ee7\u7eed\u3002\u8fd9\u4e2a\u6a21\u5f0f\u6ca1\u6709\u5355\u72ec\u5217\u51fa\u6765\uff0c\u8981\u4e0d\u7136\u6a21\u5f0f\u592a\u591a\u4e86\u3002\u5927\u5bb6\u4e86\u89e3\u4e00\u4e0b\u5c31\u53ef\u4ee5\u4e86\uff0c\u6682\u65f6\u4e0d\u9700\u8981\u638c\u63e1\u3002<\/p>\n<h2>\u89e6\u53d1\u63a7\u5236<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-737\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-188.png\" alt=\"\" width=\"930\" height=\"350\" \/><\/p>\n<p>\u8fd9\u4e2a\u8868\u5c31\u662f\u89c4\u5219\u7ec4\u7684\u89e6\u53d1\u6e90\uff0c\u4e5f\u5c31\u662f\u524d\u9762ADC\u6846\u56fe\u7684\u8fd9\u91cc<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-738\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-189.png\" alt=\"\" width=\"151\" height=\"100\" \/>\uff0c\u5728\u8fd9\u4e2a\u8868\u91cc\uff0c\u6709\u6765\u81ea\u5b9a\u65f6\u5668\u7684\u4fe1\u53f7\uff0c\u8fd8\u6709\u6765\u81ea\u5f15\u811a\/\u5b9a\u65f6\u5668\u7684\u4fe1\u53f7\uff0c\u8fd9\u4e2a\u5177\u4f53\u662f\u5f15\u811a\u8fd8\u662f\u5b9a\u65f6\u5668\uff0c\u9700\u8981\u7528AFIO\u91cd\u6620\u5c04\u6765\u786e\u5b9a\u3002\u6700\u540e\u662f\u8f6f\u4ef6\u63a7\u5236\u4e3a\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u4e4b\u524d\u8bf4\u7684\u8f6f\u4ef6\u89e6\u53d1\u3002\u8fd9\u4e9b\u89e6\u53d1\u4fe1\u53f7\u600e\u4e48\u9009\u62e9\uff1f<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-739\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-190.png\" alt=\"\" width=\"100\" height=\"178\" \/>\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u53f3\u8fb9\u8fd9\u4e2a\u5bc4\u5b58\u5668\u6765\u5b8c\u6210\uff0c\u5f53\u7136\u4f7f\u7528\u5e93\u51fd\u6570\u7684\u8bdd\uff0c\u76f4\u63a5\u7ed9\u4e2a\u53c2\u6570\u5c31\u884c\u4e86\u3002<\/p>\n<h2>\u6570\u636e\u5bf9\u9f50<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-740\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-191.png\" alt=\"\" width=\"942\" height=\"383\" \/><\/p>\n<p>\u6211\u4eec\u8fd9\u4e2aADC\u662f12\u4f4d\u7684\uff0c\u5b83\u7684\u8f6c\u6362\u7ed3\u679c\u5c31\u662f\u4e00\u4e2a12\u4f4d\u7684\u6570\u636e\uff0c\u4f46\u662f\u8fd9\u4e2a\u6570\u636e\u5bc4\u5b58\u5668\u662f16\u4f4d\u7684\uff0c\u6240\u4ee5\u5c31\u5b58\u5728\u4e00\u4e2a\u6570\u636e\u5bf9\u9f50\u7684\u95ee\u9898\u3002<\/p>\n<p>\u7b2c\u4e00\u79cd\u662f\u6570\u636e\u53f3\u5bf9\u9f50\uff0c\u5c31\u662f12\u4f4d\u7684\u6570\u636e\u5411\u53f3\u9760\uff0c\u9ad8\u4f4d\u591a\u51fa\u6765\u7684\u51e0\u4f4d\u5c31\u88650\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd\u662f\u6570\u636e\u5de6\u5bf9\u9f50\uff0c\u5c31\u662f12\u4f4d\u7684\u6570\u636e\u5411\u5de6\u9760\uff0c\u4f4e\u4f4d\u591a\u51fa\u6765\u7684\u51e0\u4f4d\u5c31\u88650\u3002<\/p>\n<p>\u5728\u8fd9\u91cc\u6211\u4eec\u4e00\u822c\u90fd\u4f7f\u7528\u7b2c\u4e00\u79cd\u53f3\u5bf9\u9f50\uff0c\u8fd9\u6837\u8bfb\u53d6\u8fd9\u4e2a16\u4f4d\u5bc4\u5b58\u5668\uff0c\u76f4\u63a5\u5c31\u662f\u8f6c\u6362\u7ed3\u679c\u3002<\/p>\n<p>\u90a3\u8981\u8fd9\u4e2a\u5de6\u5bf9\u9f50\u6709\u5565\u7528\u5462\uff1f<\/p>\n<p>\u8fd9\u4e2a\u7528\u9014\u5c31\u662f\uff0c\u5982\u679c\u4f60\u4e0d\u60f3\u8981\u90a3\u4e48\u9ad8\u7684\u5206\u8fa8\u7387\uff0c\u4f60\u89c9\u5f970~4095\u6570\u592a\u5927\u4e86\uff0c\u6211\u5c31\u505a\u4e2a\u7b80\u5355\u7684\u5224\u65ad\uff0c\u4e0d\u9700\u8981\u90a3\u4e48\u9ad8\u7684\u5206\u8fa8\u7387\u3002\u90a3\u4f60\u5c31\u53ef\u4ee5\u9009\u62e9\u5de6\u5bf9\u9f50\uff0c\u7136\u540e\u518d\u628a\u8fd9\u4e2a\u6570\u636e\u7684\u9ad88\u4f4d\u53d6\u51fa\u6765\uff0c\u8fd9\u6837\u5c31\u820d\u5f03\u6389\u4e86\u540e\u97624\u4f4d\u7684\u7cbe\u5ea6\uff0c\u8fd9\u4e2a12\u4f4d\u7684ADC\u5c31\u9000\u5316\u4e3a\u4e868\u4f4dADC\u4e86\u3002<\/p>\n<h2>\u8f6c\u6362\u65f6\u95f4<\/h2>\n<p>\u8f6c\u6362\u65f6\u95f4\u8fd9\u4e2a\u53c2\u6570\uff0c\u6211\u4eec\u4e00\u822c\u4e0d\u592a\u654f\u611f\uff0c\u56e0\u4e3aAD\u8f6c\u5316\u90fd\u5f88\u5feb\uff0c\u5982\u679c\u4e0d\u9700\u8981\u975e\u5e38\u9ad8\u901f\u7684\u8f6c\u6362\u9891\u7387\uff0c\u90a3\u8f6c\u6362\u65f6\u95f4\u5c31\u53ef\u4ee5\u5ffd\u7565\u4e86\u3002<\/p>\n<p>AD\u8f6c\u6362\u662f\u9700\u8981\u4e00\u5c0f\u6bb5\u65f6\u95f4\u7684\uff0cAD\u8f6c\u5316\u4f60\u7684\u65f6\u5019\u6709\u54ea\u4e9b\u6b65\u9aa4\u9700\u8981\u82b1\u65f6\u95f4\u5462\uff1f<\/p>\n<p>AD\u8f6c\u6362\u7684\u6b65\u9aa4\uff1a1.\u91c7\u6837 2. \u4fdd\u6301 3. \u91cf\u5316 4. \u7f16\u7801 \u5176\u4e2d\u91c7\u6837\u4fdd\u6301\u53ef\u4ee5\u653e\u5728\u4e00\u8d77\uff0c\u91cf\u5316\u7f16\u7801\u53ef\u4ee5\u653e\u5728\u4e00\u8d77\uff0c\u603b\u5171\u662f\u4e24\u5927\u6b65\u3002<\/p>\n<p>\u91cf\u5316\u7f16\u7801\u597d\u7406\u89e3\uff0c\u5c31\u662f\u6211\u4eec\u4e4b\u524d\u8bb2\u8fc7\u7684ADC\u9010\u6b21\u6bd4\u8f83\u7684\u8fc7\u7a0b\uff0c\u8fd9\u4e2a\u662f\u9700\u8981\u82b1\u4e00\u6bb5\u65f6\u95f4\u7684\uff0c\u4e00\u822c\u4f4d\u6570\u8d8a\u591a\uff0c\u82b1\u7684\u65f6\u95f4\u8d8a\u957f\u3002<\/p>\n<p>\u90a3\u91c7\u6837\u4fdd\u6301\u662f\u5e72\u4ec0\u4e48\u7684\u5462\uff1f\u4e3a\u4ec0\u4e48\u9700\u8981\u91c7\u6837\u4fdd\u6301\u5462\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-741\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/7f6e0fda28a2fa2edbf34e2531c0c7f.png\" alt=\"\" width=\"220\" height=\"171\" \/><\/p>\n<p>\u8fd9\u662f\u56e0\u4e3a\uff0c\u6211\u4eec\u7684AD\u8f6c\u6362\uff0c\u5c31\u662f\u540e\u9762\u7684\u91cf\u5316\u7f16\u7801\uff0c\u662f\u9700\u8981\u4e00\u5c0f\u6bb5\u65f6\u95f4\u7684\uff0c\u5982\u679c\u5728\u8fd9\u4e00\u5c0f\u6bb5\u65f6\u95f4\u91cc\uff0c\u8f93\u5165\u7684\u7535\u538b\u8fd8\u5728\u4e0d\u65ad\u53d8\u5316\uff0c\u90a3\u5c31\u6ca1\u6cd5\u5b9a\u4f4d\u8f93\u5165\u7535\u538b\u5230\u5e95\u662f\u591a\u5c11\u4e86\uff0c\u6240\u4ee5\u5728\u91cf\u5316\u7f16\u7801\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u4e00\u4e2a\u91c7\u6837\u5f00\u5173\uff0c\u5148\u6253\u5f00\u91c7\u6837\u5f00\u5173\uff0c\u6536\u96c6\u4e00\u4e0b\u5916\u90e8\u7684\u7535\u538b\uff0c\u6bd4\u5982\u53ef\u4ee5\u7528\u4e00\u4e2a\u5c0f\u5bb9\u91cf\u7684\u7535\u5bb9\u5b58\u50a8\u4e00\u4e0b\u7535\u538b\uff0c\u5b58\u50a8\u597d\u4e86\u4e4b\u540e\uff0c\u65ad\u5f00\u91c7\u6837\u5f00\u5173\uff0c\u5728\u8fdb\u884c\u540e\u9762\u7684AD\u8f6c\u6362\u3002\u8fd9\u6837\u5728\u91cf\u5316\u7f16\u7801\u671f\u95f4\uff0c\u7535\u538b\u59cb\u7ec8\u4fdd\u6301\u4e0d\u53d8\uff0c\u8fd9\u6837\u624d\u80fd\u7cbe\u786e\u7684\u5b9a\u4f4d\u672a\u77e5\u7535\u538b\u7684\u5927\u5c0f\u3002\u8fd9\u5c31\u662f\u91c7\u6837\u4fdd\u6301\u7535\u8def\u3002<\/p>\n<p>\u90a3\u91c7\u6837\u4fdd\u6301\u7684\u8fc7\u7a0b\uff0c\u9700\u8981\u95ed\u5408\u91c7\u6837\u5f00\u5173\uff0c\u8fc7\u4e00\u6bb5\u65f6\u95f4\u518d\u65ad\u5f00\uff0c\u8fd9\u91cc\u5c31\u4f1a\u4ea7\u751f\u4e00\u4e2a\u91c7\u6837\u65f6\u95f4\uff0c\u6240\u4ee5\uff1a<\/p>\n<p>STM32 ADC\u7684\u603b\u8f6c\u6362\u65f6\u95f4\u4e3a\uff1a TCONV = \u91c7\u6837\u65f6\u95f4 + 12.5\u4e2aADC\u5468\u671f<\/p>\n<p>\u91c7\u6837\u65f6\u95f4\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u8fdb\u884c\u914d\u7f6e\uff0c\u91c7\u6837\u65f6\u95f4\u8d8a\u5927\uff0c\u8d8a\u80fd\u907f\u514d\u4e00\u4e9b\u6bdb\u523a\u4fe1\u53f7\u7684\u5e72\u6270\u3002<\/p>\n<p>12.5\u4e2aADC\u5468\u671f\u662f\u91cf\u5316\u7f16\u7801\u82b1\u8d39\u7684\u65f6\u95f4\uff0c\u56e0\u4e3a\u662f12\u4f4d\u7684ADC\uff0c\u6240\u4ee5\u9700\u8981\u8bdd\u8d3912\u4e2a\u5468\u671f\uff0c\u8fd9\u91cc\u591a\u4e86\u534a\u4e2a\u5468\u671f\uff0c\u53ef\u80fd\u662f\u505a\u4e86\u4e00\u4e9b\u5176\u4ed6\u4e1c\u897f\u82b1\u7684\u65f6\u95f4\u3002<\/p>\n<p>ADC\u5468\u671f\u5c31\u662f\u4eceRCC\u5206\u9891\u8fc7\u6765\u7684ADCCLK\uff0c\u8fd9\u4e2aADCCLK\u6700\u5927\u662f14MHz\uff0c\u6240\u4ee5\u4e0b\u9762\u8fd9\u4e2a\u662f\u6700\u5feb\u8f6c\u6362\u65f6\u95f4\u7684\u4f8b\u5b50\uff1a<\/p>\n<p>\u4f8b\u5982\uff1a\u5f53ADCCLK=14MHz\uff0c\u91c7\u6837\u65f6\u95f4\u4e3a1.5\u4e2aADC\u5468\u671f TCONV = 1.5 + 12.5 = 14\u4e2aADC\u5468\u671f = 1\u03bcs<\/p>\n<p>\u8fd9\u5c31\u662f\u6700\u5feb1us\u7684\u65f6\u95f4\u7684\u6765\u6e90\uff0c\u5982\u679c\u4f60\u91c7\u6837\u5468\u671f\u518d\u957f\u4e00\u4e9b\uff0c\u5b83\u5c31\u8fbe\u4e0d\u52301us\u4e86\u3002\u53e6\u5916\uff0c\u4f60\u4e5f\u53ef\u4ee5\u628aADCCLK\u7684\u65f6\u949f\u8bbe\u7f6e\u7684\u8d85\u8fc714MHz\uff0c\u8fd9\u6837\u7684\u8bddADC\u5c31\u662f\u5728\u8d85\u9891\u4e86\uff0c\u90a3\u8f6c\u6362\u65f6\u95f4\u53ef\u4ee5\u6bd41us\u8fd8\u77ed\uff0c\u4e0d\u8fc7\u8fd9\u6837\u7a33\u5b9a\u6027\u5c31\u6ca1\u6cd5\u4fdd\u8bc1\u4e86\u3002<\/p>\n<h2>\u6821\u51c6<\/h2>\n<p>ADC\u6709\u4e00\u4e2a\u5185\u7f6e\u81ea\u6821\u51c6\u6a21\u5f0f\u3002\u6821\u51c6\u53ef\u5927\u5e45\u51cf\u5c0f\u56e0\u5185\u90e8\u7535\u5bb9\u5668\u7ec4\u7684\u53d8\u5316\u800c\u9020\u6210\u7684\u51c6\u7cbe\u5ea6\u8bef\u5dee\u3002\u6821\u51c6\u671f\u95f4\uff0c\u5728\u6bcf\u4e2a\u7535\u5bb9\u5668\u4e0a\u90fd\u4f1a\u8ba1\u7b97\u51fa\u4e00\u4e2a\u8bef\u5dee\u4fee\u6b63\u7801(\u6570\u5b57\u503c)\uff0c\u8fd9\u4e2a\u7801\u7528\u4e8e\u6d88\u9664\u5728\u968f\u540e\u7684\u8f6c\u6362\u4e2d\u6bcf\u4e2a\u7535\u5bb9\u5668\u4e0a\u4ea7\u751f\u7684\u8bef\u5dee\uff0c\u5efa\u8bae\u5728\u6bcf\u6b21\u4e0a\u7535\u540e\u6267\u884c\u4e00\u6b21\u6821\u51c6\u3002<\/p>\n<p>\u542f\u52a8\u6821\u51c6\u524d\uff0c ADC\u5fc5\u987b\u5904\u4e8e\u5173\u7535\u72b6\u6001\u8d85\u8fc7\u81f3\u5c11\u4e24\u4e2aADC\u65f6\u949f\u5468\u671f\u3002<\/p>\n<p>\u8fd9\u6bb5\u8bdd\u770b\u4e0a\u53bb\u5f88\u590d\u6742\uff0c\u4f46\u5b9e\u9645\u4e0a\u6211\u4eec\u4e0d\u9700\u8981\u7406\u89e3\uff0c\u8fd9\u4e2a\u6821\u51c6\u8fc7\u7a0b\u662f\u56fa\u5b9a\u7684\uff0c\u6211\u4eec\u53ea\u9700\u8981\u5728ADC\u521d\u59cb\u5316\u7684\u6700\u540e\uff0c\u52a0\u51e0\u6761\u4ee3\u7801\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u81f3\u4e8e\u600e\u4e48\u8ba1\u7b97\u7684\uff0c\u600e\u4e48\u6821\u51c6\u7684\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u7ba1\u3002<\/p>\n<h2>\u786c\u4ef6\u7535\u8def<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-742\" src=\"https:\/\/aoofoo.com\/wp-content\/uploads\/2024\/07\/1-192.png\" alt=\"\" width=\"792\" height=\"322\" \/><\/p>\n<p>\u5bf9\u4e8eADC\u7684\u5916\u56f4\u7535\u8def\uff0c\u6211\u4eec\u5e94\u8be5\u600e\u4e48\u8bbe\u8ba1\u5462\uff1f<br \/>\n\u8fd9\u91cc\u6211\u7ed9\u51fa\u6765\u4e863\u4e2a\u7535\u8def\u56fe\uff1a<\/p>\n<p>\u7b2c\u4e00\u4e2a\uff0c\u662f\u7535\u4f4d\u5668\u4ea7\u751f\u4e86\u4e00\u4e2a\u53ef\u8c03\u7684\u7535\u538b\uff0c\u8fd9\u91cc\u7535\u4f4d\u5668\u7684\u4e24\u4e2a\u56fa\u5b9a\u7aef\uff0c\u4e00\u7aef\u63a53.3V\uff0c\u53e6\u4e00\u7aef\u63a5GND\u3002\u8fd9\u6837\u4e2d\u95f4\u7684\u6ed1\u52a8\u7aef\u5c31\u53ef\u4ee5\u8f93\u51fa\u4e00\u4e2a0~3.3V\u53ef\u8c03\u7684\u7535\u538b\u8f93\u51fa\u4e86\u3002\u6211\u4eec\u8fd9\u91cc\u53ef\u4ee5\u63a5ADC\u7684\u8f93\u5165\u901a\u9053\uff0c\u6bd4\u5982PA0\u53e3\u3002\u5f53\u6ed1\u52a8\u7aef\u5f80\u4e0a\u6ed1\u65f6\uff0c\u7535\u538b\u589e\u5927\uff0c\u53cd\u4e4b\u51cf\u5c0f\u3002\u53e6\u5916\u6ce8\u610f\u4e00\u4e0b\u8fd9\u4e2a\u7535\u963b\u7684\u7ec4\u7ec7\u4e0d\u8981\u7ed9\u592a\u5c0f\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u7535\u963b\u4e24\u7aef\u4e5f\u662f\u76f4\u63a5\u8de8\u754c\u5728\u7535\u6e90\u6b63\u8d1f\u6781\u7684\uff0c\u5982\u679c\u963b\u503c\u592a\u5c0f\uff0c\u90a3\u8fd9\u4e2a\u7535\u963b\u5c31\u4f1a\u6bd4\u8f83\u8d39\u7535\uff0c\u518d\u5c0f\u5c31\u6709\u53ef\u80fd\u53d1\u70ed\u5192\u70df\u4e86\u3002\u4e00\u822c\u81f3\u5c11\u8981\u63a5K\u03a9\u7ea7\u7684\u7535\u963b\u3002<\/p>\n<p>\u7b2c\u4e8c\u4e2a\uff0c\u662f\u4f20\u611f\u5668\u8f93\u51fa\u7535\u538b\u7684\u7535\u8def\uff0c\u4e00\u822c\u6765\u8bf4\u50cf\u5149\u654f\u7535\u963b\u3001\u70ed\u654f\u7535\u963b\u3001\u7ea2\u5916\u63a5\u6536\u7ba1\u3001\u9ea6\u514b\u98ce\u7b49\u7b49\uff0c\u90fd\u53ef\u4ee5\u7b49\u6548\u4e3a\u4e00\u4e2a\u53ef\u53d8\u7535\u963b\uff0c\u90a3\u7535\u963b\u503c\u6ca1\u6cd5\u76f4\u63a5\u6d4b\u91cf\uff0c\u6240\u4ee5\u8fd9\u91cc\u5c31\u53ef\u4ee5\u901a\u8fc7\u548c\u4e00\u4e2a\u56fa\u5b9a\u7684\u7535\u963b\u4e32\u8054\u5206\u538b\uff0c\u6765\u5f97\u5230\u4e00\u4e2a\u53cd\u5e94\u7535\u963b\u503c\u7535\u538b\u7684\u7535\u8def\u3002\u90a3\u8fd9\u91cc\uff0c\u4f20\u611f\u5668\u963b\u503c\u53d8\u5c0f\u65f6\uff0c\u4e0b\u62c9\u4f5c\u7528\u53d8\u5f3a\uff0c\u8f93\u51fa\u7aef\u7535\u538b\u5c31\u4e0b\u964d\uff1b\u4f20\u611f\u5668\u963b\u503c\u53d8\u5927\u65f6\uff0c\u4e0b\u62c9\u4f5c\u7528\u53d8\u5f31\uff0c\u8f93\u51fa\u7aef\u53d7\u4e0a\u62c9\u7535\u963b\u7684\u4f5c\u7528\uff0c\u7535\u538b\u5c31\u4f1a\u5347\u9ad8\u3002\u8fd9\u4e2a\u56fa\u5b9a\u7535\u963b\u4e00\u822c\u53ef\u4ee5\u9009\u62e9\u548c\u4f20\u611f\u5668\u963b\u503c\u76f8\u8fd1\u7684\u7535\u963b\uff0c\u8fd9\u6837\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u4f4d\u4e8e\u4e2d\u95f4\u7535\u538b\u533a\u57df\u6bd4\u8f83\u597d\u7684\u8f93\u51fa\uff0c\u5f53\u7136\u8fd9\u91cc\u4f20\u611f\u5668\u548c\u56fa\u5b9a\u7535\u963b\u7684\u4f4d\u7f6e\u4e5f\u53ef\u4ee5\u53cd\u8fc7\u6765\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u8f93\u51fa\u7535\u538b\u7684\u6781\u6027\u5c31\u4f1a\u53cd\u8fc7\u6765\u3002\u8fd9\u5c31\u662f\u5206\u538b\u65b9\u6cd5\u8f93\u51fa\u4f20\u611f\u5668\u963b\u503c\u7684\u7535\u8def\u3002<\/p>\n<p>\u7b2c\u4e09\u4e2a\uff0c\u662f\u7b80\u5355\u7684\u7535\u538b\u8f6c\u6362\u7535\u8def\uff0c\u6bd4\u5982\u4f60\u60f3\u8981\u6d4b\u4e00\u4e2a0~5V\u7684VIN\u7535\u538b\uff0c\u4f46\u662fADC\u53ea\u80fd\u63a5\u65360~3.3V\u7684\u7535\u538b\uff0c\u90a3\u5c31\u53ef\u4ee5\u642d\u5efa\u4e00\u4e2a\u8fd9\u6837\u7684\u7b80\u6613\u8f6c\u6362\u7535\u8def\u3002\u5728\u8fd9\u91cc\u8fd8\u662f\u4f7f\u7528\u7535\u963b\u8fdb\u884c\u5206\u538b\uff0c\u4e0a\u9762\u963b\u503c17K\uff0c\u4e0b\u9762\u963b\u503c33K\uff0c\u52a0\u4e00\u8d7750K\uff0c\u6240\u4ee5\u6839\u636e\u5206\u538b\u516c\u5f0f\uff0c\u4e2d\u95f4\u7535\u538b\u5c31\u662fVIN\/50K * 33K \u5f97\u5230\u7684\u7535\u538b\u8303\u56f4\u5c31\u662f0~3.3V\uff0c\u5c31\u53ef\u4ee5\u8fdb\u5165ADC\u8f6c\u6362\u4e86\u3002\u5982\u679c\u4f60\u662f5~10V\u53ef\u4ee5\u91c7\u7528\u8fd9\u4e2a\u7535\u8def\uff0c\u4f46\u662f\u5982\u679c\u4f60\u7684\u7535\u538b\u518d\u9ad8\u4e00\u4e9b\uff0c\u5c31\u4e0d\u5efa\u8bae\u4f7f\u7528\u8fd9\u4e2a\u7535\u8def\u4e86\uff0c\u90a3\u53ef\u80fd\u4f1a\u6bd4\u8f83\u5371\u9669\uff0c\u9ad8\u7535\u538b\u91c7\u96c6\u6700\u597d\u4f7f\u7528\u4e00\u4e9b\u4e13\u7528\u7684\u91c7\u96c6\u82af\u7247\uff0c\u6bd4\u5982\u9694\u79bb\u653e\u5927\u5668\u7b49\u7b49\uff0c\u505a\u597d\u9ad8\u4f4e\u7535\u538b\u7684\u9694\u79bb\uff0c\u4fdd\u8bc1\u7535\u8def\u7684\u5b89\u5168\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>STM32 ADC\u7b80\u4ecb \u5bf9\u4e8eGPIO\u6765\u8bf4\uff0c\u4ed6\u53ea\u80fd\u8bfb\u53d6\u5f15\u811a\u7684\u9ad8\u4f4e\u7535\u5e73\uff0c\u8981\u4e48\u662f\u9ad8\u7535\u5e73\uff0c\u8981\u4e48\u662f\u4f4e\u7535\u5e73\uff0c\u53ea\u6709\u4e24\u4e2a\u503c\u3002\u800c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-692","post","type-post","status-publish","format-standard","hentry","category-stm32"],"_links":{"self":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts\/692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/comments?post=692"}],"version-history":[{"count":14,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":747,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/posts\/692\/revisions\/747"}],"wp:attachment":[{"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/media?parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/categories?post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aoofoo.com\/index.php\/wp-json\/wp\/v2\/tags?post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}