1. Normal converson Mode)
The Normal conversion mode (auto_pst = 0, xy_pst = 0) is used for general ADC conversion, such as measuring the battery voltage through ADC.
2. Independent x/y position conversion mode (separate x/y position Conversion Mode)
The independent X-axis/Y-axis coordinate conversion mode includes the x-axis mode and Y-axis mode. To obtain the X and Y coordinates, you must first coordinate the X axis (auto_pst = 0, xy_pst = 1). the X axis conversion data will be written to the xpdat of the adcdat register. After the conversion is complete, the touch screen controller may interrupt int_adc. Then, perform Coordinate Transformation of the Y axis (auto_pst = 0, xy_pst = 2), and write the conversion data of the Y axis to the ypdat of the adcdat1 register. Wait until the conversion is complete, the touch screen controller also causes int_adc interruption.
3. Automatic (continuous) x/y position conversion mode (Auto x/y position Conversion Mode)
The automatic (continuous) x/y position conversion mode (auto_pst = 1, xy_pst = 0) is run in touch screen control to automatically convert the X position and Y position. The touch screen controller writes x measurement data in the xpdat bit of adcdat0 and Y measurement data in the ypadat bit of adcdat1. After automatic (continuous) Position conversion, the touch screen controller generates int_adc interruption.
4. Wait for interrupt mode)
When the touch screen controller waits for the interrupt mode, it waits for the arrival of the touch screen contact signal. When the contact signal arrives, the Controller generates an int_tc interrupt signal. Then, the X position and Y position can be read by the appropriate conversion mode (independent x/y position conversion mode or automatic x/y position conversion mode.
5. standby mode)
When the stdbm position of the adccon register is 1, the standby mode is activated. In this mode, the/D conversion action is disabled. The xpdat bit of adcdat0 and the ypdat of adxdat1 retain the previously converted data.