We are trying to write a baremetal code for ad7879 touchscreen controller. In the datasheet (page no 26), its been said that
To change any parameter after conversion has begun, the part
must first be put into ADC Mode 00. Make the changes, and
then reprogram Control Register 1, ensuring that it is always
the last register programmed before conversions begin.
But while trying to change the value of the GPIO (Control Register 2 bits: 10 to 13), should this be followed and the ADC mode has to be changed?