本帖最后由 szdz88 于 2019-2-20 22:35 编辑
//注意PGA的Reference 选Vss
void Sampling_Vlaue;
PGA_SetGain(PGA_G48_0);// 放大48倍 0.04*48=1.92V
PGA_Start(3);
SAR8_SelectADCChannel(SAR8_ACB01); //SAR8的输入指向ACB01模块,因为PGA放置在ACB01模块
SAR8_SetRunMode(SAR8_FreeRun);
SAR8_Start();
while (0 == SAR8_fIsDataAvailable()); // wait for result
Sampling_Vlaue = SAR8_bGetData(); |