|
發布時間: 2026-6-2 10:59
正文摘要:STC8G1K08A ADC 多通道 進行采樣時,獲取到得數據與實際不一致,單通道時是對的 #include "config.h" #include "STC8G_H_GPIO.h" #include "STC8G_H_Timer.h" #include "STC8G_H_ADC. ... |
| 樓主代碼是由AiCube生成,目前AiCube包含的MCU型號有限,雖然可以借用同系列型號MCU生成代碼,但同系列的MCU之間還是有所差別的。如果對庫函數底層代碼一無所知,怎么可能一蹴而就。 |
|
#include "config.h" #include "STC8G_H_GPIO.h" #include "STC8G_H_Timer.h" #include "STC8G_H_ADC.h" #include "STC8G_H_NVIC.h" #include "STC8G_H_Delay.h" #include "STC8G_H_UART.h" #include "STC8G_H_Switch.h" 會用庫,不簡單 |
|
怎么個不對法?問問題要說清楚,別人沒法猜的。 電源電壓多少V?輸入電壓多少V?對應ADC讀數多少? |