Hi,
The following is the procedure to read CC conversion values in the oneshot mode, but the oneshot set does not seem to be executed.
Execute "Resistors. SysCtrl2. SysCtrl2Bit. CC_ONESHOT = 1;After the operation, SYS_CTRL2 is read and the value is 0x01.
That is, CC_ONESHOT bit wasn't set.
Question: Under what condition can this happen?
------------------------------------------------------------------------------------------------------------------------
I2C_Write(SYS_STAT,0x80); //clear CC_READY bit
Registers.SysCtrl2.SysCtrl2Bit.CC_ONESHOT=1; //set one shot
I2C_Write(SYS_CTRL2,Registers.SysCtrl2.SysCtrl2Byte); //ONESHOT mode
while ((I2C_Read(SYS_STAT)&0X80)==0X00) //wait CC_READY to be set
{ all_led_on();}
i=(I2C_Read(CC_HI_ADDRESS)<<8)+I2C_Read(CC_LO_ADDRESS);
Thank you!