Hi Jordy,
I find the problem
Each time you configure the SQW rate you set also bit 7 (adding 0x80) who is disabling oscillator when on Vbat.
Actual Macro,
case 2:
{
//Comment:
//Enable Square Wave Output
//Frequency = 1Hz
FCD_005f1_I2C_Master1__TransmitByte(
0x80);
break;
}
case 3:
{
//Comment:
//Enable Square Wave Output
//Frequency = 1.024kHz
FCD_005f1_I2C_Master1__TransmitByte(
0x88);
break;
}
case 4:
{
//Comment:
//Enable Square Wave Output
//Frequency = 4.096kHz
FCD_005f1_I2C_Master1__TransmitByte(
0x90);
break;
}
case 5:
{
//Comment:
//Enable Square Wave Output
//Frequency = 8.192kHz
FCD_005f1_I2C_Master1__TransmitByte(
0x98);
break;
}
// default:
Can you mod the component

?
Regards,