Measure battery with XPT2046

Hi.

I try to measure a battery connected to battery IN from xpt2046.

In the datasheet only refiere to A2, A1 and A0 setting, but not specified any more, I don't understand how measure a battery with this chip, reading only the datasheet.

In all the libs that I see on internet are only for determine the touch position, but on this libs don't contain a temperature measure or battery measure procedure.

Can you help me to learn to measure the battery???

Thanks

Hi.

I tryed some codes with same results.

        uint16_t dataBattery[6];
 SPI.beginTransaction(SPI_SETTING);
 digitalWrite(csPin, LOW);
 SPI.transfer(0xA3);
 dataBattery[0] = SPI.transfer16(0x0);
 dataBattery[1] = SPI.transfer16(0x0);
 dataBattery[2] = SPI.transfer16(0xA2);
 dataBattery[3] = SPI.transfer16(0xA3);
 dataBattery[4] = SPI.transfer16(0xD0) >> 3;
 dataBattery[5] = SPI.transfer16(0) >> 3;
 digitalWrite(csPin, HIGH);
 SPI.endTransaction();

 return dataBattery[data];

the output are: 0, 65535, 65535, 65535, 65535, 65535

I don't know how obtain the correct value

The data sheet are here: XPT2046 datasheet

Thanks

can somebody help me? or can somebody guide to me on this?

Thanks

Hello, any reference with which to be able to advance ?, I am stagnant with this.

Thank you