Operating Modes of ADC and touch screen interfaces of S3C2410

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.