Hi All,
I have the input voltage 0 - 2V supply and shunt voltage 5m to be monitored by INA220 for MPPT application.
Several doubts as below:
1: I want to sample the power information every 2ms(trigger mode). The conversion time for 12 bit is about 500us. It will be completed for Voltage and current together within 1.2ms. But one issue is the about 30ms timeout between start and stop. Should I insert a stop sign after one complete sample period? Or I just need to add another start sign for the second trigger period.
2. For communication with Spartan 3 FPGA, SDA and SCL should set as 3.3 for high voltage, which means that the supply voltage I should use 3.3V. Am I right?
3. Do I have to connect the VBUS to the IN- ? Considering the shunt voltage drop can I connect VBUS to IN+?
The most important issue for me is that, whether I can update the power register every 2ms.
To achieve this, I want to make sure whether I need astop command before the next trigger cycle, which will introduce a 35ms timeout in the worst case.
The command flow I think is as below, Plz check for me:
1. START --- Slave address & WRITE & ACK--- Config. Register pointer & ACK --- MSByte Config data & ACK---- LSByte Config data & ACK --- stop ---- timeout for 30ms
2. First cycle ~~~~~START --- Slave address & READ & ACK--- Power Register pointer & ACK --- MSByte data & ACK ---- - LSByte data & ACK (no stop)
wait about 2ms
3.1 Second cycle ~~~~~Repeated START --- Slave address & WRITE & ACK--- Config. Register pointer & ACK --- MSByte Config data & ACK---- LSByte Config data & ACK (for trigger mode operation)
3.2 Second cycle ~~~~~Repeated START --- Slave address & Read & ACK--- Power Register pointer & ACK --- MSByte data & ACK ---- - LSByte Config data & ACK (no stop timeout)
wait about 2ms
4.1 Third cycle ~~~~~Repeated START --- Slave address & WRITE & ACK--- Config. Register pointer & ACK --- MSByte Config data & ACK---- LSByte Config data & ACK (for trigger mode operation)
4.2
Third cycle ~~~~~Repeated START --- Slave address & READ & ACK--- Power Register pointer & ACK --- MSByte data & ACK ---- - LSByte Config data & ACK
so on and so forth
Thank you for your time!