Other Parts Discussed in Thread: BQ25713
Hi guys,
thanx in advance for assistance.
I need measuring an actual current flows through TPS65982.
I've programed an I2C read\write algorithm:
- 4CC ADCs command to Cmd1 (0x08) + 1 byte according ADC channel (0:4 bits) to Data1 (0x09) register
- Cmd1 (0x08) reading to be compared with following things: whether result is equal to "ADCs" the command is processing now, if "!CMD" so that I have an error and whether it's equal to "\0\0\0\0" the ADCs command has been processed
- reading the 2 bytes result from Data1 (0x09) register
- if bit 15 (ADCBusy) is one the step #3 is performing again
- if bit 15 is zero the ADC measurement result is getting masking to 0:9 bits
An important point: I didn't find any manual descripting ADCs read operation's channels enumeration list. I've used "TPS6598x Application Customization Tool" taking there a drop-down list of ADCs channels.
According the list's items order the channels enums are:
PP_EXT_CURRENT = 3
PP_HV_CURRENT = 5
PP_5V_CURRENT = 7
I've passed them in step #1.
Having no USB devices plugged into USB-C port I was getting results kind like these:
PP_EXT 0
PP_EXT 256
PP_EXT 512
PP_5V 512
PP_5V 256
PP_5V 0
PP_HV 0
PP_HV 512
PP_HV 256
I'm confused of these two fixed 512 and 256 values.
So my questions:
1) Did I use the ADCs channels' enums right? Whether I didn't please point me to a needed article of TI document?
(slvuan1a.pdf doesn't disclose this info)
2) Why the ADC results are those fixed ones (256 and 512)?