你好,
我用的是TMP112D 传感器,我通过软件让芯片工作在连续比较模式下,我现在碰到的问题是:
112d一直处于报警状态,不论我怎么给芯片加热,alter 引脚一直输出高电平,我的高低温阈值设置如下:
i_temp=(uint16_t)(30.0/0.0625);
sendBuf[0]=(i_temp>>8)&0xff; //
sendBuf[1]=i_temp&0xff;
iic_write(0x02,sendBuf,2); // 低温
i_temp=(uint16_t)(48.0/0.0625);
sendBuf[0]=(i_temp>>8)&0xff; //
sendBuf[1]=i_temp&0xff;
iic_write(0x03,sendBuf,2); // 高温
sendBuf[0]=0x64; //开启温度检测
sendBuf[1]=0x00;
iic_write(0x01,sendBuf,2);
但温度检测是正常的,我通过 i2c读取1/2/3 号寄存器与我设置的是相同的,说明 i2c 驱动没问题。
下面是模块的原理图,请问我的问题改如何解决?



