Other Parts Discussed in Thread: BQSTUDIO, BQ34Z100-G1
Tool/software: Starterware
Hello, I'm Denis-Jeong.
I use Atmega128 and AVR Studio4.
I want to measure Voltage of Battery through BQ34Z110.
I consulted a website("e2e.ti.com/.../372162"). then I finished basic setting of BQ34Z110.
But I don't know method which measure voltage.
I send like data under 5step.
Step1.
I2C_Start----0x55(Device address)----0x08----I2C_End
I2C_Start----0x55(Device address)----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0x09----I2C_End
I2C_Start----0x55(Device address)----Receive_Data_Wait----I2C_End
Step2.
I2C_Start----0x55(Device address)----0x08----I2C_End
I2C_Start----0x55(Device address)----0x09----I2C_End
I2C_Start----0x55(Device address)----0x08----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0x09----Receive_Data_Wait----I2C_End
Step3.
I2C_Start----0x55(Device address)----0x08----I2C_End
I2C_Start----0x55(Device address)----0x09----I2C_End
I2C_Start----0x55(Device address)----0x08----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0x09----Receive_Data_Wait----I2C_End
Step4.
I2C_Start----0x55(Device address)----0xaa----0x08----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0xaa----0x09----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End
Step5.
I2C_Start----0x55(Device address)----0xaa----0x08----I2C_End
I2C_Start----0x55(Device address)----0xaa----0x09----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End
I2C_Start----0x55(Device address)----0xab----Receive_Data_Wait----I2C_End
but I didn't get normality voltage data.
I want to get Battery Voltage.
when I get Battery Voltage through I2C, What should I do?