Part Number:ADS1258Other Parts Discussed in Thread: OPA320
VREFP +2.5V
VREFN -2.5V
VREF通道读出来码值是 3922667 换算成电压是 5V
但是测量通道接入 2.4V电压 读出来码值只有 3798335
按照公式算出来只有 1.2V (3798335 / 0x780000) * 2.5
Amy Luo:
您好,
ADS1258的1LSB = VREF/780000h,码值 3922667 换算成电压应该约是 1.24698V
您的电路是怎样的?各供电电压是多少?
,
wang ming:
电路如图 https://jpg.dog/i/bL631
参考电压供电 +2.5 和 -2.5
,
wang ming:
配置寄存器为
write_buffer[0] = CONFIG0_DEFAULT | CONFIG0_MUXMOD_MASK | CONFIG0_CHOP_MASK; // Fixed-Channel mode & Enable CHOP
write_buffer[1] = CONFIG1_DLY_8us | CONFIG1_SCBCS_OFF | CONFIG1_DRATE_1953SPS; // Slowest data rate
write_buffer[2] = new_chn;
write_buffer[3] = MUXDIF_DEFAULT; // Differential channels no effect
write_buffer[4] = MUXSG0_DEFAULT; // Single-ended channels no effect
write_buffer[5] = MUXSG1_DEFAULT; // Single-ended channels no effect
write_buffer[6] = SYSRED_DEFAULT; // System reading select registers no effect
,
Amy Luo:
您使用了单端转差分电路(两个OPA320组成的电路),单端输入2.4V时,这样ADC输入就变成了4.8V,已经超出了ADC的输入范围±1.06 VREF,即±2.65 V,您尝试输入小于1V的直流电压,看读取转换结果是否正确