//初始化
Ch423_Output.v = 0;
MDrv_IIC_CH423_WriteByte(CH423_SYS_CMD, BIT_IO_OE)
MDrv_IIC_CH423_WriteByte(CH423_OC_L_CMD, Ch423_Output.v)
我连续写0C的低8位(OC0~7)和高8位(OC8~15),在我写高8位的时候总是会把0C7的电平反过来,OC8~15是正常的,这怎么解决?
如下:
MDrv_IIC_CH423_WriteByte(CH423_OC_L_CMD, (Ch423_Output.v & 0x00FF));
MDrv_IIC_CH423_WriteByte(CH423_OC_H_CMD, (Ch423_Output.v >> 8));
热门产品 :
CH182: 以太网PHY收发器芯片