Part Number: ADS1015-Q1 Hello We try to configure the ADC in the following way : At init we enable alert/ready interrupt by setting Hi_thresh register MSB to 1 and Lo_thresh register MSB to 0. We write the config for HV_Pos and wait for alert/rdy interrupt In the alert/rdy interrupt we request the data by writing Convert Pointer(0x00) Wait for the write command to be done(wait until I2C send_end interrupt is triggered) and then read the data Store the read data and write the config for the next channel(HV_Neg) Is this flow correct? The problem that we encounter Is that after step 2 we do not receive the interrupt if we do not wait for the I2C driver to finish the transaction by checking continuously if the register IICBSY0 has changed. If we wait for that register to change after writing the config, the interrupt is triggered but then, the step 5 will not work because the SW will be stuck in the loop that checks if the IICBSY0 is changing (the register is checked within I2C receive_end interrupt). Do you have any ideas about this? Thanks Martin
↧