使用ad7760通过电平转换芯片
TXS0108E与mcu进行连接,初始化结束后读取超量程寄存器中的数值,结果如下:默认值应该为0xcccc,为什么会不稳定呢,读取函数为
unsigned short AD7760_Read1(unsigned short Reg)
{
unsigned short Reg_Data;
*(__IO uint16_t *) (Bank1_ADDRESSw)= Reg;
delay_ns(100);
Reg_Data = *(__IO uint16_t *) (Bank1_ADDRESSw);
delay_ns(100);
return Reg_Data;
}