Hi
1. Slave address is 90/91 right?
2. I would like to ask if I want to read the data of AIN0 and AIN2, how to switch reading? (The following 3 ways, the 2/3 byte is AIN0 (bits), the 4/5 byte is AIN1?? Right,
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Gareth,
1. If the ADDR pin is connected to GND, then yes, the address will be 0x90/91 depending on R/W operation.
2. I am not exactly sure what you are describing here but there is essentially an internal mux. You will set bits 14:12 of the configuration register based on which set of channels you wish to read. Then you can start a conversion. If you wish to cycle through and read multiple channels, you should use single-shot mode. In single-shot mode, you start a conversion by writing a '1' to bit 15 of the configuration register. Once the conversion is done, it will be stored in the conversion register and you can initiate another cycle by controlling bit 15 of the configuration register.
Alternatively, you can use continuous conversion mode but using this mode, I highly recommend using the Alert pin to monitor when a conversion is done. In this mode, the device will continuously convert and store conversion results. If you switch channels and read too early, you will read the conversion results of the previous channel.
I hope this helps to clear any questions. Feel free to elaborate more if your questions were not answered!
Regards,
Aaron Estrada