This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LMP91000的内部零点与基准偏压

Other Parts Discussed in Thread: LMP91000

TI专家们好,

我们公司想使用LMP91000研发一款产品,在使用过程中,VOUT输出的电压值并不是50%的基准电压(内部参考电压3.3v),然后RE与WE之间的偏压也为0(设置偏压为10%),C1,C2未接电容,是这个对他有些影响吗?不太清楚原因是什么,希望得到您的帮助。代码如下:

#define TI_LMP91000_TIACN_REG_VALUE (0x03) /* default */
#define TI_LMP91000_REFCN_REG_VALUE (0x28) /* default */
#define TI_LMP91000_MODECN_REG_VALUE (0x07) /* default */

uint8_t read_val[2];
uint8_t status = TI_LMP91000_NOT_READY;

//WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer

//TI_LMP91000_LED_PxOUT |= TI_LMP91000_LED_PIN; // Set LED ON//自己根据实际情况更改,串口输入输出
//TI_LMP91000_LED_PxDIR |= TI_LMP91000_LED_PIN; // Set pin direction is output

I2CSetup(LMP91000_I2C_Address); // Initialize I2C module

//TI_LMP91000_MENB_PxOUT &= ~TI_LMP91000_MENB_PIN; // Enable \MENB Pin,同上
//TI_LMP91000_MENB_PxDIR |= TI_LMP91000_MENB_PIN; // Set pin direction is output

while (status == TI_LMP91000_NOT_READY)
status = LMP91000_I2CReadReg(TI_LMP91000_STATUS_REG); // Read device ready status

LMP91000_I2CWriteReg(TI_LMP91000_LOCK_REG, TI_LMP91000_WRITE_UNLOCK); // unlock the registers for write

LMP91000_I2CWriteReg(TI_LMP91000_TIACN_REG, TI_LMP91000_TIACN_REG_VALUE); // Modify TIA control register
LMP91000_I2CWriteReg(TI_LMP91000_REFCN_REG, TI_LMP91000_REFCN_REG_VALUE); // Modify REF control register

read_val[0] = LMP91000_I2CReadReg(TI_LMP91000_TIACN_REG); // Read to confirm register is modified
read_val[1] = LMP91000_I2CReadReg(TI_LMP91000_REFCN_REG); // Read to confirm register is modified

if ((read_val[0] != TI_LMP91000_TIACN_REG_VALUE) ||
(read_val[1] != TI_LMP91000_REFCN_REG_VALUE)) // test values took effect
while (1); // otherwise error


// lock the registers
LMP91000_I2CWriteReg(TI_LMP91000_MODECN_REG, TI_LMP91000_MODECN_REG_VALUE); // 3-lead amperometric cell
LMP91000_I2CWriteReg(TI_LMP91000_LOCK_REG, TI_LMP91000_WRITE_LOCK);

谢谢