现在的位置: 首页 > 综合 > 正文

关于S5PV210 的ADC和触摸屏控制器

2013年10月07日 ⁄ 综合 ⁄ 共 1506字 ⁄ 字号 评论关闭

         The 10-bit or 12-bit CMOS Analog to Digital Converter (ADC) comprises of 10-channel analog inputs. It converts
the analog input signal into 10-bit or 12-bit binary digital codes at a maximum conversion rate of 1MSPS with
5MHz A/D converter clock. A/D converter operates with on-chip sample-and-hold function. ADC supports low
power mode.  
Touch Screen Interface can control input pads (XP, XM, YP, and YM) to obtain X/Y-position on the external touch
screen device. Touch Screen Interface contains three main blocks, namely, touch screen pads control logic, ADC
interface logic and interrupt generation logic. There are two set of touch screen interfaces, which share one ADC.

 

 

 

——晕,S5PV210 居然有两组触摸屏接口,并且是公用一个AD 控制器,那么这样按照道理S5PV210 也有两个LCD控制器才对,不然两个触摸屏控制器也没用啊。

嘿嘿,我只要一个触摸屏就可以了,那么另外一个触摸屏控制占用的AD 应该用作普通的AD没问题的,继续看。

 

7.4.4  TWO TOUCH SCREEN INTERFACES
There are two set of touch screen interfaces, namely, AIN[5] ~ AIN[2] for touch screen 0 and AIN[9] ~ AIN[6] for
touch screen 1. There are separate switches for XP, XM, YP and YM control and separate registers to interface
with two touch screens. They share one analog digital converter, so interfacing with the two touch screens should
be performed in turn. TSSEL bit of TSADCCON0 register is used to select which touch screen is connected to the
ADC. Therefore, you must set ‘1’ to TSSEL before an access to TSADCCON1. Similarly, you must set ‘0’ to
TSSEL before an access to TSADCCON0.
An access to TSADCCON1 bits is prohibited when TSSEL bit is ‘0’, and an access to TSADCCON0 bits except
TSSEL is also prohibited when TSSEL bit is ‘1’. An access to TSSEL bit is always permitted. 

 

 

NOTE:  
1.  When touch screen is not used, the touch screen ports (AIN2 ~ AIN9) can be used as analog input ports for ADC.

 

这个还差不多。不错,不错。

 

抱歉!评论已关闭.