I am forcing all channels to Analog input and trying to start Fixed pattern generation, when I read the recent data registers back, I see all zeroz instead of the 0xA5A5 pattern as mentioned in the datasheet
Any suggestions on how to test this feature for this chipset
set_bit(i2c_control_if, i2c_address, 0x01, 0x01); // rst set
clear_bit(i2c_control_if, i2c_address, 0x01, 0x01); // rst clear
usleep(10000);
set_bit(i2c_control_if, i2c_address, 0x00, 0x01); // brown out bit clear by writing 1
set_bit(i2c_control_if, i2c_address, 0x01, 0x04); // force channels to be analog inputs
set_bit(i2c_control_if, i2c_address, 0x02, 0x80); // generate fixed pattern
Data 0x00: 0x80
Data 0x01: 0x04
Data 0x02: 0x80
0xA0 - 0xAF:
Data 0xA0: 0x00
Data 0xA1: 0x00
Data 0xA2: 0x00
Data 0xA3: 0x00
Data 0xA4: 0x00
Data 0xA5: 0x00
Data 0xA6: 0x00
Data 0xA7: 0x00
Data 0xA8: 0x00
Data 0xA9: 0x00
Data 0xAA: 0x00
Data 0xAB: 0x00
Data 0xAC: 0x00
Data 0xAD: 0x00
Data 0xAE: 0x00
Data 0xAF: 0x00