触摸屏控制芯片ADS7843中文资料

合集下载

触摸外部控制连接电路设计方案详解

触摸外部控制连接电路设计方案详解

触摸外部控制连接电路设计方案详解基于当前手持式触摸屏稳定性不高,性能不可靠的状况,采用AT91X40 系列微控制器作为控制芯片,由于该芯片功能强大,集成度高,处理数据能力强,稳定性高,所以基于AT91X40 系列的手持式触摸屏具有体积小巧,功能强大,操作简便等特点。

手持式触摸屏的显示和输入设备选用了ADS7843 和SED1335 两种主流触摸和LCD 显示芯片。

通过现场的实验验证,基于AT91X40 系列的手持式触摸屏稳定性高,工作可靠,具有实际应用价值。

触摸控制芯片ADS7843 的功能特性ADS7843 是4 线电阻触摸屏转换接口芯片。

它是一款具有同步串行接口的12 位取样模数转换器。

在125 kHz 吞吐速率和2.7 V 电压下的功耗为750μW,而在关闭模式下的功耗仅为0.5μW.因此,ADS7843 以其低功耗和高速率等特性,被广泛应用在采用电池供电的小型手持设备上。

ADS7843 采用SSOP-16 引脚封装形式,温度范围是-40~+85℃。

ADS7843 具有两个辅助输入(IN3、IN4),可设为8 位或12 位模式。

其外部连接电路如液晶显示芯片SED1335 的结构和特点液晶显示器简称LCD,由于液晶显示器具有低损耗、低价格、寿命长、接口方便等优点,被广泛应用于手机、照相机、计算机、智能仪器仪表等产品上。

主要有两种液晶显示控制器。

一种是将控制器集成在CPU 中,制成带液晶显示控制器的专用CPU.这种控制器的CPU 功能强大,外电路简单,一般只适用于小规模LCD 模块。

另一种是专用控制器芯片。

这种芯片具有较强的指令功能,与CPU 接口简单,便于控制,驱动能力可达640 乘以256 点阵。

本。

触摸屏的驱动芯片ADS7843

触摸屏的驱动芯片ADS7843

触摸屏的驱动芯片ADS7843触摸屏由于其体积小、轻便和接口简单的特点,成为一种在嵌入式系统中应用广泛的输入设备。

S3C44B0X通过端口G模拟串行的SIO接口与触摸屏专门的控制芯片ADS7843(由Burr-Brown公司生产)开展数据传输,来完成对触摸屏触摸位置坐标的读取。

触摸屏接口专用芯片ADS7843要完成两件事:一是完成电极电压的切换;二是采集接触点处的电压值,并开展A/D转换。

触摸屏组成:触摸检测部件:安装在显示器屏幕前面,检测用户触摸位置,承受后送触摸屏控制器。

触摸屏控制器:接收触摸点检测装置信息,并将它转换成触点坐标,再送给CPU。

比方ADS7843。

ADS7843是TI 公司生产的4 线电阻触摸屏转换接口芯片。

ADS7843功能:(1)电极电压的切换。

(2)采集接触点处的电压值,并开展A/D转换。

ADS7843特性:(1)可编程控制8位或者12位A/D转换模式。

(2)低导通电阻模拟开关。

(3)实现触摸屏的驱动选择控制(X、Y通道)。

(4)供电电压为2.7~5V。

(5)参考电压VREF为1V~+Vcc。

(6)转换电压的输入范围为0~VREF。

(7)最高转换速率为125kHz。

编程说明:(1)S3C44B0X端口初始化:PCONG(2)S3C44B0X端口初始化:PUPG(3)触摸屏X坐标控制字(4)触摸屏Y坐标控制字(5)触摸点坐标读取过程(6)检测PENIRQ是否为低电平。

如果PENIRQ=0,则认为有接触。

(7)使ADS7843有效、无效(8)向ADS7843发送控制字(9)等待ADS7843 的BUSY管脚从高变低(10)从ADS7843接收数据。

ADS7843使用详解含时序图

ADS7843使用详解含时序图
CHYAD: MOV AD_CH,#CHY
LCALL AD_RUN
MOV CHYAdResultH,AD_RESULTH
MOV CHYAdResultL,AD_RESULTL
RET
; A/D转换子程序(AD_RUN)
;输入: AD_CH-模式和通道选择命令字
;输出: AD_RESULTH,L ;12 bit的A/D转换值
2 M68VZ328ADS Application Development System User's Manual. Revision 1.4. 2000
3 Burr-Brown IC Data Book
触摸屏的工作原理及典型应用
摘要简要介绍触摸屏的结构及工作原理,并以Burr-Brown公司的触摸屏控制芯片ADS7843为例,介绍触摸屏应用的典型电路和操作。由于ADS7843内置12位A/D,理论上触摸屏的输入坐标识别精度为有效长宽的1/4096。
关键词触摸屏ITO ADS7843嵌入式系统
1触摸屏的基本原理
RL A
DJNZ R2,AD_LOOP
NOP
NOP
NOP
NOP
ADW0: JNB BUSY,AD_WAIT ;等待转换完成
SJMP ADW1
AD_WAIT:
LCALL WATCHDOG
NOP
SJMP ADW0
CLR DIN
ADW1: MOV R2,#12 ;开始读取12bit结果
SETB DCLK
CLR DCLK
CHYAdResultL EQU 3BH
;采集通道CHX+的程序段(CHXAD)
CHXAD: MOV AD_CH,#CHX
LCALL AD_RUN

触摸屏控制器驱动程序设计

触摸屏控制器驱动程序设计

触摸屏控制器驱动程序设计在便携式的电子类产品中 ,触摸屏由于其便、灵活、占用空间少等优点 ,已经逐渐取代键盘成为嵌入式计算机系统常选用的人机交互输入设备。

触摸屏输入系统由触摸屏、触摸屏控制器、微控制器及其相应的驱动程序构成。

本文从触摸屏控制器的驱动程序设计着手 ,介绍触摸屏控制器 ADS7843 的内部结构及工作原理和在嵌入式 Linux 操作系统中基于PXA255微处理器的ADS784羽驱动程序设计。

1触摸屏控制器ADS7843的介绍1.1ADS7843的内部结构ADS7843内驻一个多路低导通电阻模拟开关组成的供电-测量电路网络、12bit逐次逼近A/D转换器和异步串行数据输入输出,ADS7843艮据微控制器发来的不同测量命令导通相应的模拟开关 ,以便向触摸屏电极对提供电压 ,并把相应电极上的触点坐标位置所对应的电压模拟量引入A/D转换器,图1为ADS7843内部结构图。

X+、Y+ X-、丫为触摸屏电极模拟电压输入;CS为ADS7843的片选输入信号,低电平有效;DCLK接外部时钟输入 ,为芯片进行 A/D 转换和异步串行数据输入 /输出提供时钟;DIN串行数据输入端,当CS低电平时,输入数据在时钟的上升沿将串行数据锁存;DOUT串行数据输出端,在时钟下降沿数据由此移位输出,当 CS 为高电平时,DOUT呈高阻态。

BUSY为系统忙标志端,当CS为低电平, 且BUSY为高电平时,表示ADS7843正在进行数据转换;VREF参考电压输入端,电压值在+1V到+VCC之间变化;PENIRC为笔触中断,低电平有效;IN3、IN4为辅助ADC转换输入通道;+VCC为电源输入。

图1ADS7843内部结构1.2ADS7843的转换时序ADS7843完成一次数据转换需要与微控制器进行3次通信,第一次微处理器通过异步数据传送向 ADS843 发送控制字 ,其中包括起始位、通道选择、 8/12 位模式、差分 /单端选择和掉电模式选择 ,其后的两次数据传送则是微控制器从 ADS7843 取出 16bitA/D 转换结果数据(最后四位自动补零),每次通信需要 8 个时钟周期 ,完成一次数据转换共需 24 个时钟周期周2为ADS7843转换时序。

第十八节:ADS7843驱动的320240电阻型触摸屏:

第十八节:ADS7843驱动的320240电阻型触摸屏:

资料范本本资料为word版本,可以直接编辑和打印,感谢您的下载第十八节:ADS7843驱动的320240电阻型触摸屏:地点:__________________时间:__________________说明:本资料适用于约定双方经过谈判,协商而共同承认,共同遵守的责任与义务,仅供参考,文档可直接下载或修改,不需要的部分可直接删除,使用时请详细阅读内容第十八节:ADS7843驱动的320240电阻型触摸屏(1)开场白:320240的触摸屏是由320240液晶显示屏和320240电阻触摸薄膜组成。

320240液晶显示屏披上一层触摸膜的皮就是触摸屏了。

显示和读取触摸信息是各自独立的,我们通过编写程序,两者有机结合起来,让客户产生错觉,以为触摸和显示是一体的。

320240液晶屏的程序在第十五节已经讲过。

现在重点介绍一下电阻触摸薄膜的原理。

它的本质是利用电阻分压的原理。

假如我在桌面上放了一条很长的裸露电阻,我们的手触摸到电阻的某点时,就相当于可调电阻的中间移动点,按到哪一点位置,我们只要通过AD把被分压后的电压读取出来,就知道你的手按到了哪个位置。

一张触摸膜相当于在X轴和Y轴都放了一个很宽很长的裸露电阻,手按到哪一点,只要把该点的X轴和Y轴的分压通过AD读取出来,就可以得到被触摸的X轴和Y轴坐标。

驱动电阻型触摸屏,就相当于单片机驱动一个外部AD转换芯片,这个AD芯片就是ADS7843。

编程技巧:我们要在显示屏上先做一个显示程序,专门用来显示按下去的X轴坐标和Y轴坐标,这样方便我们记录按键的位置信息。

有了具体某个按键的位置信息,我们才可以针对此按键进行后续的触发程序编写。

(2)功能需求:在触摸屏上按下一个矩形按键,此按键马上反显,表示被触发。

同时把相对应的X轴和Y轴坐标数据在液晶屏上显示出来。

(3)硬件原理:跟320240液晶显示屏的接线请参考第十五节。

然后用单片机的4个IO口分别跟ADS7843的DCLK, CS, DIN, DOUT连接。

51单片机程序触摸屏芯片ADS7843驱动

51单片机程序触摸屏芯片ADS7843驱动

51单片机程序触摸屏芯片ADS7843驱动#include "reg51.h"#include "intrins.h"sbit DCLK=P1^6;sbit CS=P2^2;sbit DIN=P2^3;sbit DOUT=P2^4;sbit BUSY=P2^5;delay(unsigned char i--){while(i--);}void start() //SPI开始{DCLK=0;CS=1;DIN=1;DCLK=1;CS=0;}WriteCharTo7843(unsigned char num) //SPI写数据{unsigned char count=0;DCLK=0;for(count=0;count<8;count++){num<<=1;DIN=CY;DCLK=0; _nop_();_nop_();_nop_(); //上升沿有效DCLK=1; _nop_();_nop_();_nop_();}}ReadFromCharFrom7843() //SPI 读数据{unsigned char count=0;unsigned int Num=0;for(count=0;count<12;count++){Num<<=1;DCLK=1; _nop_();_nop_();_nop_(); //下降沿有效DCLK=0; _nop_();_nop_();_nop_();if(DOUT) Num++;}return(Num);}void ZhongDuan() interrupt 0 //外部中断0 用来接受键盘发来的数据{unsigned int X=0,Y=0;delay(10000); //中断后延时以消除抖动,使得采样数据更准确start(); //启动SPI// while(BUSY); //如果BUSY信号不好使可以删除不用delay(2);WriteCharTo7843(0x90); //送控制字 10010000 即用差分方式读X坐标详细请见有关资料// while(BUSY); //如果BUSY信号不好使可以删除不用delay(2);DCLK=1; _nop_();_nop_();_nop_();_nop_();DCLK=0; _nop_();_nop_();_nop_();_nop_();X=ReadFromCharFrom7843(); //读X轴坐标WriteCharTo7843(0xD0); //送控制字 11010000 即用差分方式读Y坐标详细请见有关资料DCLK=1; _nop_();_nop_();_nop_();_nop_();DCLK=0; _nop_();_nop_();_nop_();_nop_();Y=ReadFromCharFrom7843(); //读Y轴坐标CS=1;}main(){TMOD=0x11; // 记数器0 计数器1 都以 16 位记数TCON=0x00;IE=0x83; //1000 0001 EA=1中断允许,IP=0x01;while(1);//等待触摸中断}。

DEM-ADS7843E中文资料

DEM-ADS7843E中文资料

SBAU0042®DEM-ADS7843E/45EINSTALLATIONThe DEM-ADS7843E/45E evaluation fixture is designed for stand-alone evaluation or evaluation using the clocking network on the board. Stand-alone evaluations imply that the A/D converter is powered by J4 (power supply connec-tor) and the user is put to the task to provide analog and digital input excitation. This is achieved by removing all five jumper tops of JP4 and using J1 and J2 for direct connec-tions to the device under test (DUT).In contrast, the DEM-ADS7843E/45E/45E board has the appropriate digital interface circuitry to drive the DUT data clock, chip select, and serial data in which is coordinated with the BUSY and PENIRQ to provide serial and parallel output data.This kit includes the following items:ADS7843E Evaluation Fixture—A2518DEM-ADS7843E/45E Documentation (LI-522)ADS7843E (5 samples)ADS7845E (5 samples)The DEM-ADS7843E evaluation fixture has two positions on the board for the A/D converter to be installed in. The first position is the socket, DUT1 on the board. This spring-loaded socket allows the user to quickly swap in or out the device that is being evaluated. The other option on the boardis the position X1, which is a solder location for the DUT. If this option is chosen, the user must solder the DUT directly to the board. This position is only useful for 2 or 3 solder cycles.CAUTION: DO NOT connect the a device into the DUT1 socket and have another device soldered to the board in position X1 at the same time.The additional equipment required to do a complete evalu-ation of the performance of the ADS7843E or ADS7845E comprises of:+5VDC power supplyV oltage or current signal source4-Wire (ADS7843E) or 5-Wire (ADS7845E) Resistive Touch ScreenTo install the DEM-ADS7843E/45E evaluation fixture, con-nect the appropriate power supply to J4. When power is applied to the DEM-ADS7843E/45E, the red LED on the board should light.USER CONFIGURATIONSThe DEM-ADS7843E/45E evaluation fixture provides the right combination of jumper options and support circuitry to allow for a variety of evaluation configurations. Throughout this data sheet, numerous references are made to the ADS7843and ADS7845 A/D converters. For more information con-cerning these devices, refer to the ADS7843 or ADS7845data sheet. The circuit is laid out with a four-layer board.The two outside layers are for circuit traces and the inner layers are the ground and power planes. The analog and digital planes of the circuit is separated through the middle of the board all the way to the power supply connector,where they are joined. The circuit diagram and layout diagrams for the DEM-ADS7843E/45E is shown in Figure 1 and Figures 4 through 7.J1Analog Input Interface. Each connector is labeled.J2Digital I/O Interface. Each connector is labeled.J3Parallel Output Port.J4Power Supply Connector. This connector powers the DUT and digital network. Refer to the ADS7843 or ADS7845product data sheet for power supply restrictions. All digital chips on the DEM-ADS7843E/45E board are capable of operating with supply voltage from 2.7V to 5.25V.P1External DCLK Connector.TABLE I. Connectors (Jx and P1) Assignments.JUMPER NUMBER FACTORY SETTINGDESCRIPTIONJP1BVoltage reference. This setting connects A/D converter reference to +V CC .JP2, JP11, JP10JP2 = Not Installed Inverted or non-inverted option for PENIRQ of the ADS7843 or ADS7845 when driving this pin through pin 2.JP11 = Not Installed This setting sets this pin HIGH and connects this pin to J2.JP10 = Not InstalledJP3D, F, G Hardwire digital jumpers for DIN serial code. This setting configures the A/D converter for S = HIGH, A2-A0 = 001, MODE = LOW, SGL/DIF = HIGH, PD1-PD0 = 11.JP4A, B, C, D, E This jumper connects the clocking network to the DUT.JP5, JP6JP5 = A Clock speed options. This configuration sets the board using Y1/10 as the DCLK frequency.JP6 = B JP7, JP8JP7 = B Optional 16- or 24-bit operation. This configuration sets the board for 16 DCLK per conversion cycle.JP8 = AJP9BUsed to personalize the board for the ADS7843 or ADS7845. Position B = ADS7843 or ADS7845.TABLE II. Jumper (JPx) Assignments.3®DEM-ADS7843E/45EDUT CONNECTIONSThe DEM-ADS7843E/45E DUT Board has a socket for the DUT which is positioned in the DUT1 position. Addition-ally, it has a solder footprint in the event that the user chooses to solder the DUT directly to the board. This footprint is poisitioned in X1, just below the DUT1 socket.If the solder footprint is used, care should be taken to preserve the solder pads for repeated soldering. Bad X1solder pads do not interfere with the operation or connec-tions of the DUT1 socket.The DEM-ADS7843E/45E evaluation fixture is designed to evaluate both the ADS7843 and ADS7845 A/D converters.JP9 must be in position B to evaluate either the ADS7843 or ADS7845.Space for an R/C input filter has been provided to allow user customization for the particular application. Shorting bars have been installed in R 3, R 5, R 7, R 9, R 10, and R 12 positions on the board. These are positioned betwen the input of the DUT and the pin connector, P1. Shorting bars were used to allow for immediate evaluation of a four-wire touch screen.In this situation, the touch screen would provide the source resistance. If resistors are desired in positions R 3, R 5, R 7, R 9,R 10, and R 12, the user can solder in the desired values.Additionally, positions for capacitors at the input of the DUT are provided with C 3, C 4, C 5, C 6, C 9 and C 10. Once again, the user must install appropriate values for the application under evaluation.The voltage reference to the DUT is programmed in the JP1.The JP1 options are given in Table III.The digital I/O pins of the DUT may be driven or monitored with the J2 connector. The assignment of these pins are summarized in Table V .POSITIONRESULTING CONFIGURATIONA 1.2V is configured to pin 9 (V REF ) of the DUT.B The power supply from J4 is configured to pin 9 (V REF )of the DUT.C2.5V is configured to pin 9 (V REF ) of the DUT.TABLE III. V REF is Programmed Using JP1 Position Options.The combination of JP2 allows jumper programmable set-tings of the PENIRQ of the ADS7843 or ADS7845 pin of the DUT. Additionally, this pin can be accessed through J2 and a combination of JP10 and JP11. Refer to Table IV for jumper position details. Refer to the ADS7845 data sheet for additional options.JP2 POSITION JP10 POSITION JP11 POSITION RESULTING CONFIGURATION Not Installed Not Installed Not Installed Pin 11 of the DUT is HIGH.Not Installed Installed Not Installed Pin 11 of the DUT is connected to position 5 of J2. If there is no connection to position 5 of J2, pin 11 of the DUT will default HIGH.Not InstalledNot InstalledInstalledPin 11 of the DUT is inverted and connected to position 5 of J2. If there is no connection to position 5 of J2, pin 11 of the DUT will default HIGH.Installed Not Installed Not Installed Pin 11 of the DUT is LOW.Installed Installed Not Installed Pin 11 of the DUT is connected to position 5 of J2. If there is no connection to position 5 of J2, pin 11 of the DUT will default LOW.InstalledNot InstalledInstalledPin 11 of the DUT is inverted and connected to position 5 of J2. If there is no connection to position 5 of J2, pin 11 of the DUT will default LOW.TABLE IV . PENIRQ (ADS7843 or ADS7845) Jumper Settings.J2 PIN NUMBER (From Left to Right)ADS7843 PIN DESCRIPTION1CS 2DCLK 3BUSY 4DIN 5PENIRQ 6DOUTTABLE V .J2 Connector Contacts versus DUT Pins.(NOTE: If you have a DEM-ADS7843E/45E,Revision A, the silkscreen is in error. The above description is correct.)STAND-ALONE OPERATIONThe DUT can be evaluated in a stand-alone configuration by removing all of the jumper tops of JP4. JP4 connects pins 12,13, 14, 15, and 16 of the DUT to the digital interface circuitry of the board. If the array of jumper tops are not removed, the user may find significant conflicts on the digital I/O lines of the DUT. The details of this interface circuitry is discussed in detail in the “Digital Interface”section of this data sheet.DIGITAL INTERFACE CIRCUITRYThe DUT can be evaluated using the digital clocking cir-cuitry on the board by installing all of the jumper tops of JP4and removing any signal present on the J2 connector. This digital circuit uses the clock signal from P1 (External Clock)or Y1 to create the DUT clock (DCLK), CS, and the DIN code to the device while providing a serial or parallel output signal from the DOUT pin of the DUT.Clock ControlThe master clock to the board is set with the JP6 jumper.Position A of the JP6 jumper configures the External Clock (P1) coax connector into the circuit. It is recommended that this signal be a logic square wave. The signal from this connector will be used directly for the DCLK signal to the4®DEM-ADS7843E/45EDUT. Refer to the ADS7843 or ADS7845 data sheet for the proper restrictions on this clock. Alternatively, a clock oscil-lator that is installed in Y1 can be used as the master clock.The signal from this device is either divided by 10 or divided by 20 per JP5. The settings from JP5 are listed in Table VI.JUMPER SETTINGRESULTING CONFIGURATIONAY1 Frequency divided by 10. In conjunction with JP6 = B, this frequency becomes DCLK for the DUT.BY1 frequency divided by 20. In conjunction with JP6 = B, this frequency becomes DCLK for the DUT.TABLE VI. Jumper Settings for Using Y1 as Master Clock.Clocks per Conversion ControlOnce DCLK is set (per clock control instructions) the conversion cycle of the DUT can be configured to either take 16 or 24 clock cycles. The jumper configuration for these two modes of operation are shown in Table VII. Addition-ally, the timing diagram of these two modes of operation are shown in Figures 2 and 3.JP7JP8RESULTING CONFIGURATION A B 24 DCLK cycles per conversion BA16 DCLK cycles per conversionTABLE VII. The Digital Support Circuitry Can be Operatedin a 16 Clocks per Conversion or a 24 Clocks per Conversion with the Jumper Settings De-scribed in the Table. Refer to Figures 2 and 3for specific timing.DIN ProgrammingThe DIN input (DUT, pin 14) receives an 8-bit serial input data stream which programs the ADS7843 or ADS7845 X or Y input channel, mode and power-down options. This serial stream can be programmed with JP3. JP3 is essentailly an 8-bit parallel configuration which is processed by a parallel-to-serial converter (U8) and then transmitted to the DUT at the appropriate time. Even when a position on JP3 is jumper top configured, digital gates can over drive their settings. Con-sequently, these lines are also connected to the digital breadboard area, which gives the user more flexibility in terms of programming this serial command byte.Parallel OutputThe combination of U13 and U14 converts the digital output of the DUT into a parallel word. This parallel word appears on the connector J3. A DV ALID trigger is also provided on J3. Refer to Table VIII for the J3 connector configuration.J3 PIN DESCRIPTION1DVALID 11LSB 13LSB + 115LSB + 217LSB + 319LSB + 421LSB + 523LSB + 625LSB + 727LSB + 829LSB + 931LSB + 1033MSB 3, 5, 7, 9Digital LOW 35 through 50Open All Even PinsGNDTABLE VIII. J3 Configuration.5®DEM-ADS7843E/45EPARTNUMBER PART LOCATIONPER KITNUMBER VENDORDESCRIPTION 1A-2518 Rev B ADS7843E Bare BoardX1 (not installed)1Accepts ADS7843E Burr-Brown 12-bit A/D converter solder land area, parts not installed and ADS7845E U11REF1004C-1.2Burr-Brown 1.235V Reference, SOIC U21REF1004C-2.5Burr-Brown 2.5V Reference, SOICDUT 5ADS7843E Burr-Brown 12-bit Touch Screen A/D Converter (4-wire panel)DUT 5ADS7845E Burr-Brown 12-bit Touch Screen A/D Converter (5-wire panel)DUT (socket)1OTS-16(24)-0.635-01Enplas (TESCO)16-lead SSOP socket U3, U5, U7374HC393D TI (1)Dual, 4-bit, binary counterU4174HC08D TI (1)Quadruple two-input positive AND gates U6174HC04D TI (1)Hex InvertersU8174HC166D TI (1)8-bit parallel-load shift registerU13, U142SN74HC594D TI (1)8-bit shift registers with output registers U151MC74HC390D TI (1)Decade counter, dual 4-bit Y11CTX129-ND DigiKey 32MHz clock oscillator, (CTS)Y1 (socket)11107741Aries 14-pin oscillator socket, DIP D11HLMP-3201Hewlett Packard (1)Red LEDR 3, R 5, R 7, R 9, R 10, R 12Optional. Provided with shorts. Resistors not included.R 131CRCW12062001F Dale 2k Ω, 1%, 0.125W, metal-film resistor R 141CRCW12061001F Dale 1k Ω, 1%, 0.125W, metal-film resistor R 15, R 162CRCW120622R1F Dale 22.1k Ω, 1%, 0.125W, metal-film resistor R 1, R 112CRCW12061002F Dale 10k Ω, 1%, 0.125W, metal-film resistor R 8, R 182CECW12061003F Dale 100k Ω, 1%, 0.125W, metal-film resistor R 2, R 4, R 63CRCW12061000F Dale 100Ω, 1%, 0.125W, metal-film resistor R 171CRCW12066810F Dale 681Ω, 1%, 0.125W, metal-film resistor C 11T491B225K016ASKemet2.2µF capacitor, 16VC 3 through C 6, C 9, C 10Optional. Capacitor not included.C 12, C 14 through C 2513C1206C104K5RAC Kemet 0.1µF surface-mount capacitor, X7R C 11, C 132T491C106K016AS Kemet 10µF polarized capacitors, 16V, 10%C 21C1206C103K5RAC Kemet 0.01µF, 50V, 10%, chip-ceramic, X7R C 81C320C104K5R5CA Kemet 0.1µF, 50V, 10%, ceramic JP11TSW-103-07-T-D Samtec 2 x 3JP21TSW-101-07-T-D Samtec 2 x 1JP31TSW-108-07-T-D Samtec 2 x 8JP41TSW-105-07-T-D Samtec 2 x 5JP5 through JP95TSW-103-07-T-S Samtec 1 x 3JP1, JP2, JP3 tops 3SNT-100-BK-T Samtec Jumper TopsJ1, J2, J4 pins 731024102RIACON 2-pin terminal block pins, 3.5mm centers J1, J2, J4 tops 731165102RIACON 2-pin terminal block tops, 3.5mm centersJ31IDH-50LP-S3-TGRobinson Nugent2 x 25, straight-through header w/shroud, 0.1" center spacing P1147788Pamona BNC right-angle, PC mount connector RN21CSC10A-01-104F Dale 10-pin SIP resistor network (100k Ω, 9R, 1C)RN11CSC10A-01-103F Dale 10-pin SIP resistor network (10k Ω, 9R, 1C)Rubber Feet6SJ5523-O-ND3MBumponsNOTE: (1) Or equivalent.TABLE IX. Parts List for the DEM-ADS7843E/45E.6®DEM-ADS7843E/45EFIGURE 1a. ADS7843E and ADS7845E Evaluation Demo Board Analog Circuit Diagram.7®DEM-ADS7843E/45EFIGURE 1b. ADS7843E and ADS7845E Evaluation Demo Board Digital Circuit Diagram.8®DEM-ADS7843E/45EFIGURE 2. ADS7843E and ADS7845E Conversion Timing Diagram, 16 Clocks per Conversion.FIGURE 3. ADS7843E and ADS7845E Conversion Timing Diagram, 24 Clocks per Conversion.9®DEM-ADS7843E/45EFIGURE 4. Component Side of the DEM-ADS7843E/45E Demonstration Board.FIGURE 5. Ground Plane of the DEM-ADS7843E/45E Demonstration Board.10®DEM-ADS7843E/45EFIGURE 6. Power Plane of the DEM-ADS7843E/45E Demonstration Board.FIGURE 7. Solder Side of the DEM-ADS7843E/45E Demonstration Board.11®DEM-ADS7843E/45EFIGURE 8. Component Side Silkscreen of the DEM-ADS7843E/45E Demonstration Board.FIGURE 9. Component Side Soldermask of the DEM-ADS7843E/45E Demonstration Board.12®DEM-ADS7843E/45E FIGURE 10. Bottom Side Soldermask of the DEM-ADS7843E/45E Demonstration Board.IMPORTANT NOTICETexas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. All products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, patent infringement, and limitation of liability.TI warrants performance of its semiconductor products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are utilized to the extent TI deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements.Customers are responsible for their applications using TI components.In order to minimize risks associated with the customer’s applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or procedural hazards.TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of TI covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used. TI’s publication of information regarding any third party’s products or services does not constitute TI’s approval, warranty or endorsement thereof.Copyright © 2000, Texas Instruments Incorporated。

基于ADS7843的触摸屏控制系统设计

基于ADS7843的触摸屏控制系统设计

Science &Technology Vision科技视界0引言在电子产品及工业产品的设计中,触摸屏由于其轻便、占用空间少、方便灵活等优点越来越受到设计师及用户的青睐。

触摸屏可作为模拟键盘,使用起来比普通键盘灵活,因为键的位置可根据需要进行改变,并且省去了按键所占用的空间。

触摸屏分为电阻、电容、表面声波、红外线扫描和矢量压力传感等,其中四线电阻触摸屏应用广泛。

1ADS7843简介ADS7843是一款专为四线电阻触摸屏设计的带SPI 接口的12位AD 转换器,内部含模拟电子开关和逐次比较型AD 转换器。

当要采样Y 方向的AD 值时,通过将Y+、Y 一端施加电压,将X+送入AD 转换器得到Y 方向的AD 值;同理可得X 方向的AD 值。

而这些转换均由MCU 通过SPI 方式向ADS7843发送命令来完成。

ADS7843的引脚功能如表1所示。

表1ADS7843的引脚功能ADS7843之所以能实现对触摸屏的控制,是因为其内部结构很容易实现电极电压的切换,并能进行快速A/D 转换。

内部结构如图1所示,A2~A0和SER 为控制寄存器中的控制位,用来进行开关切换和参考电压的选择。

图1ADS7843内部结构2触摸屏控制系统设计以应用广泛的STC89C52作为主控制器,进行触摸控制系统设计。

2.1硬件接口电路设计ADS7843串行接口的一次完整操作需要3×8=24个DCLK 时钟周期,前8个脉冲接收8位的命令,并在第6个脉冲的上升沿开始A/D 转换器进入采样阶段,从第9个脉冲开始进入转换阶段,输出,输出12位采样值,转换结束进入空闲阶段。

直到24个DCLK 结束,CS 置高电平,一次测量结束。

ADS7843采用、转换时序如图2所示。

图2ADS7843采用、转换时序ADS7843与STC89C52的连接图如图3所示。

图3ADS7843与STC89C52的连接图2.2软件设计当用户在触摸屏上的有效区域内点击时,触摸屏的X 方向、Y 方向输出电阻分别随X 和Y 呈线性变化,ADS7843控制器将其分别转换为12位数据,通过中断告知STC89C52需要接收数据,STC89C52接收到数据后进行处理;首先进行触点数据是否有效判断,包括两方面:一是判断是否误操作,即是否是由于人的抖动产生的错误数据;二是ADS7843传过来得数据是否有效,由于刚开始的传过来的第一个基于ADS7843的触摸屏控制系统设计薛大为杨春兰(蚌埠学院机械与电子工程系,安徽蚌埠233030)【摘要】触摸屏在现代电子设备中广泛使用。

基于ADS7843的四线式电阻屏驱动设计

基于ADS7843的四线式电阻屏驱动设计
标 )电极 ,他 们被 均匀排 列 的绝缘 透 明格 点 分开 。其 中 下层 的I T O 附着 在基板 ,上层 的I T O 附着 在P E T 薄膜 上 。从
图1电阻式触摸屏结构
计算x 坐标 ,的步骤与计算Y 坐标相同,只需将x 对应 的 点击进行操作即可。坐标计算的等效原理图如图2 所示 。
. , , 一
x O g 极和Y 电极的两端 引出的 “ 导 电条 ”分别作 为 电极 的 正 负极 ,且两 根导 电条 的位置 相互 垂直 。 引出端一共 有 x 一 , x + , Y 一 , Y + 四条 线 ,这 就是 四线 电阻屏名 称 的 由来 。
当在 触摸 屏表 面用 物体触 碰或 对其 施加 适当 的压力 时 , 发生 可恢 复性形 变 的上层 I T O 导 电层 将与 下层 I T O 产 生接
参考文献
[ 1 ] 吴爽, 赵 永 滨. 基 于A DS 7 8 4 6 的 四 线 电 阻式 触 屏 接 口 设计 Ⅱ 】 . 兵 工 自动化 , 2 0 1 0 .
l ! l 壁
A D S 7 8 4 3 的典 型接 口应 用 电路 如 图3 所 示 ,该 电路可 以方便 的与单片机 等微 控制器相 连接 ,实现 触摸 屏 的驱 动控制 。假设 接 口与5 1 单片机 的普通 i 1 0 口相 连 ,下 面 以2 4 个 时钟周 期为完 成一次 转换 的周期为 例介 绍 电压 切换和A / D 转换过程控制程序 的设计 。程序 流程 框 图如 图
的结果 ,在两 种不 同参考 电压输 入模式 中是 不一样 的 。 如 果 选取 8 位 的转 换精 度 , 址 船: / 2 5 6( 为 参考 电
i n t 0 i n t e r r u p t 0 u s i n g 2

ads7843中文资料

ads7843中文资料

•’—•p 应用与设计¡¤³—˜”“触摸屏接口解放军信息工程大学胡冰吴升艳岳春生Touch Scre e n Inte r f a ce Ch i p ADS7843¨Õ¢ÉÎÇ·Õ³ÈÅÎÇÙÁιÕÅ£ÈÕÎÓÈÅÎÇ摘要š简单介绍了¡¤³—˜”“的功能特点和工作原理Œ探讨了¡¤³—˜”“触摸屏接口芯片的模式选择和应用技巧Œ最后给出了基于该系统的一个实际使用方案"关键词š触摸屏控制器›嵌入式系统›¡¤³—˜”“分类号š´°’—“文献标识码š¢文章编号š‘••–•–™——ˆ’••’‰•—•••’—••“图‘¡¤³—˜”“的连接关系¡¤³—˜”“触摸屏接口‘前言随着生活中类似于°¤¡的手持设备的越来越多Œ彩色¬£¤触摸屏也变得越来越普及Œ并逐渐成为当今的主流配置"触摸屏分为电阻!电容!表面声波!红外线扫描和矢量压力传感等Œ其中使用最多的是四线或五线电阻触摸屏"四线电阻触摸屏是由两个透明电阻膜构成的Œ在它的水平和垂直电阻网上施加电压Œ就可通过¡•¤转换面板在触摸点测量出电压Œ从而对应出坐标值"本文除了简单介绍¡¤³—˜”“的特点和原理之外Œ主要讨论触摸屏控制器的使用技巧Œ同时给出了具体的应用连接图"’¡¤³—˜”“的功能特性¡¤³—˜”“是´©公司生产的”线电阻触摸屏转换接口芯片"它是一款具有同步串行接口的‘’位取样模数转换器"在‘’•Ë¨Ú吞吐速率和’Ž—¶电压下的功耗为—••L ·Œ而在关闭模式下的功耗仅为•Ž•L ·"因此Œ¡¤³—˜”“以其低功耗和高速率等特性Œ被广泛应用在采用电池供电的小型手持设备上"¡¤³—˜”“采用³³¯°•‘–引脚封装形式Œ温度范围是•”•*‹˜•e "¡¤³—˜”“具有两个辅助输入ˆ©®“!©®”‰Œ可设置为˜位或‘’位模式"其外部连接电路如图‘所示Œ该电路的工作电压¶ÃÃ在’Ž—*•Ž’•¶之间Œ基准电压¶ÒÅÆ介于‘¶*‹¶ÃÃ"该电路的基准电压确定了转换器的输入范围Œ输出数据中每个数字位代表的模拟电压等于基准电压除以”•™–"平均基准输入电流由¡¤³—˜”“的转换率来确定"以下是¡¤³—˜”“的主要引脚功能š¸‹!¹‹!¸•!¹•š转换器模拟输入端Œ实际上是一个”通道多路器›¤£¬«š外部时钟输入引脚›£³š片选端›参考文献‘Ž张芳兰Ž´-³“’•£’ØØ用户指南Ž电子工业出版社Œ‘™™™Ž–’Ž赵保经Ž¡•¤和¤•¡转换器应用手册Ž上海科学普及出版社Œ‘™™•“Ž-ÁØÉÍŽ‹•¶³ÉÎÇÌÅ•³ÕÐÐÌÙŒ‘-ÓÐÓŒ‘–•¢ÉÔ³ÅÌÆ•£ÁÌÉÂÒÁÔÉÎÇ¡¤£Œ’•••”Ž闻亭公司Ž´-³“’•£’¸¸高速数字信号处理器原理与应用Ž‘™™˜Œ”•Ž´ÅØÁÓ©ÎÓÔÒÕÍÅÎÔÓ©ÎÃŽ´-³“’•£’•ØµÓÅÒ‡Ó§ÕÉÄÅŒ‘™™™收稿日期š’••‘•‘’•’‘咨询编号š•’•—‘•海纳电子资讯网:www.fpga-arm.com 为您提供各种IC中文资料•’˜•5国外电子元器件6’••’年第—期’••’年—月¤©®š串行输入Œ其控制数据通过该引脚输入›¤¯µ´š串行数据输出Œ用于输出转换后的触摸位置数据Œ最大数为二进制的”•™•›©®“!©®”š辅助输入引脚›°¥®©²±š°¥®中断引脚Œ可用于在触摸显示屏后引发一个中断"“工作原理¡¤³—˜”“是一款连续近似记录ˆ³¡²‰的¡•¤转换器"可通过连结触摸屏¸‹将触摸信号输入到¡•¤转换器Œ同时打开¹‹和¹•驱动Œ然后数字化¸‹的电压Œ从而得到当前¹位置的测量结果"同理也可得到¸方向的坐标"具体设置和使用方法可查阅´©公司的¡¤³—˜”“数据手册Œ下面主要介绍¡¤³—˜”“的模式设置!°¥®中断引脚的使用和软件编程方法"“Ž‘模式设置¡¤³—˜”“有差分ˆ¤©¦¦¥²¥®´©¡¬‰和单端ˆ³©®2§¬¥•¥®¤¥¤-¯¤¥‰两种工作模式"这两种模式对转换后的精度和可靠性有一些影响"如果将¡•¤转换器配置为读绝对电压ˆ单端模式‰方式Œ那么驱动ˆ¤²©¶¥²‰电压的下降将导致转换输入数据的错误"而如果配置为差分模式Œ则可以避免上述错误"当触摸屏被按下时Œ有两种情况可影响接触点的电压š一种是当触摸到显示屏时Œ会导致触摸屏外层振动›另一种是触摸屏顶层和低层之间的寄生电容引起的电流振荡以及在¡¤³—˜”“输入引脚上引起的电压振荡"这两种情况都可导致触摸屏上的电压发生振荡以及增加¤£值稳定的时间"在单端模式中Œ一旦在触摸屏上检测到一次触摸事件Œ电路系统将发送一串控制字节给¡¤³—˜”“Œ并要求它进行一次转换"然后¡¤³—˜”“将在获取周期的起始点通过内部¦¥´开关给面板提供电压Œ而这将导致触摸点电压的升高"正如上面所介绍的Œ上升的电压在最终稳定之前会振荡一段时间"当获取周期结束后Œ所有的¦¥´开关关闭Œ¡•¤转换器进入转换周期"如果在转换周期期间Œ没有发出下一个控制字节Œ¡¤³—˜”“将进入低功耗模式并等待下一条指令"由于面板上分布有大量电容Œ特别是滤波噪音Œ因此Œ应该注意设置好对应于¸坐标或¹坐标上的电压"在单端模式中Œ输入电压必须在¤ÁÔÁ©Î×ÏÒÄ的最后三个时钟周期期间设置Œ否则将产生错误"除了内部¦¥´开关从获取周期开始到转换周期结束期间一直保持打开状态以外Œ差分模式的操作类似于单端模式"加在面板上的电压将成为¡•¤转换器的基准电压Œ提供一个度量比操作"这意味着如果加在面板上的电压发生变化ˆ由于电源!驱动电阻!温度或触摸屏电阻等原因‰Œ¡•¤转换器的度量比操作将对这种变化进行补偿"如果在当前转换周期发向¡¤³—˜”“的下一个控制字节所选择的通道与前一个控制字节相同Œ那么在当前转换完成后开关仍然不会关闭"在这两种模式中Œ¡¤³—˜”“只有“个时钟周期可以从触摸屏上获取ˆ取样‰输入模拟电压Œ因此Œ为了¡¤³—˜”“可以获取正确的电压Œ输入电压必须在“个时钟周期的时间范围内设置好"打开驱动将引起触摸屏的电压快速升高到最终值"为了得到正确的转换数据Œ获取必须在触摸屏完全设置好时完成"获取的方式有两种š一种是采用单端模式Œ即采用相对较慢的时钟扩展获取时间ˆ三个时钟周期‰›二是采用差分模式Œ即用相对较快的时钟在第一个转换周期内设置电压Œ在第二个转换周期获取准确电压"该方式的两个控制字节相同Œ且内部¸•¹开关在首次转换后不会关闭"由于首次转换期间电压还不稳定Œ因此应当丢弃首次转换的结果"使用第二种方式的另一个优点是功耗低"因为在全部转换后Œ¡¤³—˜”“会进入低功耗模式来等待下一次取样周期›对于慢时钟Œ下一次取样可能在当前转换结束后立即进入取样周期Œ而没有时间进入低功耗模式"实际在单端模式下不能使用快速时钟"差分模式还具有以下两个优点š第一个优点是能够在不扩展转换器获取时间的条件下用很长的设置时间处理触摸屏Œ即触摸屏电压可以有足够的时间稳定下来"第二个优点是¡¤³—˜”“通过快速时钟可以进入低功耗模式Œ从而可以节约电池能量"因此Œ通常建议使用差分模式"“Ž’°¥®中断引脚的使用°¥®中断引脚的主要作用是让设计者可以完全控制¡¤³—˜”“的低功耗操作模式"图’所示是其模式操作连接示意图"图中Œ©•¯‘和©•¯’是引自¥°—’‘’的通用目的输入•输出口"当电源加入系统且转换器被设置ˆ°¤‘Œ°¤••••‰之后Œ器件进入低功耗模式"而当未触摸面板时Œ¡¤³—˜”“内部的二极海纳电子资讯网:www.fpga-arm.com 为您提供各种IC中文资料•’™•¡¤³—˜”“触摸屏接口图“采用判断两次的方法来克服触摸屏信号的抖动图”采用最后的结果来克服触摸屏信号的抖动图’¡¤³—˜”“ˆ°¤•Œ°¤‘•••‰下的示意图管没有偏压Œ因此没有电流流过ˆ忽略漏流‰›当触摸面板时Œ¹•将提供一条电流ˆ©‰通路Œ这时¸‹!¸•和¹‹处于高阻状态Œ电流经过‘••Ë8电阻和中断二极管Œ°¥®©²±被拉低Œ从而通过©•¯’上一个不超过•Ž–•¶的电压唤醒£°µŒ然后¥°—’‘’再拉低©•¯‘和©•¯’上的电位Œ同时对¡¤³—˜”“控制寄存器写一个字节以进行转换初始化"为了转换°¥®©²±二极管上的偏置电压Œ¥°—’‘’必须拉低©•¯‘和©•¯’上的电压"否则Œ如果在转换期间二极管上有一个前向偏压Œ那么附加的电流将引起错误的输入数据"“Ž“错误触发由于¸‹输入引脚与°¥®中断输出相连Œ因此在¸‹上的噪声可能引起触摸屏的错误触发"设计时可以在°¥®中断输出引脚上连结一个²£滤波器ˆ可对地连结一个‘8的电阻和一个•Ž•‘L ¦的电容‰Œ以过滤噪声脉冲并避免错误触发"“Ž”差分模式下的软件流程图“和图”所示的两种算法假设¡¤³—˜”“配置成差分模式Œ每次转换为‘–个时钟Œ¸轴坐标的结果在¤¡´¡¸中Œ¹轴的坐标在¤¡´¡¹中"其中图“的例子采用的是判断两次的方法来克服触摸屏信号的抖动"¤¡´¡‘用于存储当前转换的结果Œ¤¡´¡’用于存储上一次转换的结果Œ当两次结果相同时Œ转换数据有效"但是Œ应当注意š当输入电压的振动频率和取样频率相近时Œ可能会漏掉正确结果"图”的例子是将最后的转换结果ˆ第Î次‰作为有效转换"可以看出š该方式更加简单Œ但该方法只对某一类触摸屏有效Œ且/Î0的具体值依赖于¡¤³—˜”“输入电压的设置时间Œ同时Œ在确定/Î0值以前还需要对一些触摸屏进行测试"参考文献‘Ž刘永智Œ杨开愚Ž液晶显示技术Ž电子科技大学出版社’Ž¡¤³—˜”“¤ÁÔÁÓÈÅÅÔ´©Œªµ¬¹Œ’••‘收稿日期š’••‘•‘’•’•咨询编号š•’•—‘‘海纳电子资讯网:www.fpga-arm.com 为您提供各种IC中文资料。

ADS7843简介及应用

ADS7843简介及应用
ADS7843簡介及應用
1
OUTLINE
1.ADS7843特性 2.ADS7843腳位定義 3.ADS7843方塊圖 4.ADS7843廠內之應用
2
1.ADS7843特性
a.4-WIRE T/P INTERFACE b.SINGLE SUPPLY:2.7V~5.0V c.SERIAL INTERFACE d.PROGRAMMABLE 8-OR 12-BIT RESOLUTION e.2 AUXILIARY ANALOG INPUTS
HandIN為讀取I18_Bit,ADS7843應用為8_Bit,試 問TFT Control Box上可變電阻在軟體上需 做幾階調的變化較適當?
2^8=256 可變化總階調 2^6=64 RGB各佔6_Bit 256/64=4 故軟體應做每調四階實際輸出變化一次較適當
開關 控制 腳
Out to control A/D 階數變化值
10
3. Timing characteristics diagram
11
Timing characteristics diagram SPI (System Interface)
D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
6
4-WIRE T/P 動作原理
7
TOUCH PANEL軟體
int runTP(void) { while (PENIRQ); 中斷指令 Xdata=HandShack(scanX_comm); Ydata=HandShack(scanY_comm); if(((Xdata>=0x0ddd)&&(Xdata<=0x0fff))&&((Ydata>=0x0000)&&(Ydata<=0x0333))) return 1; else if(((Xdata>=0x0444)&&(Xdata<=0x0777))&&((Ydata>=0x0000)&&(Ydata<=0x0444))) return 2; else if(((Xdata>=0x0444)&&(Xdata<=0x0777))&&((Ydata>=0x0ccc)&&(Ydata<=0x0fff))) return 3; else if(((Xdata>=0x0ddd)&&(Xdata<=0x0fff))&&((Ydata>=0x0ddd)&&(Ydata<=0x0fff))) return 4; else if(((Xdata>=0x0555)&&(Xdata<=0x0aaa))&&((Ydata>=0x0555)&&(Ydata<=0x0aaa))) return 5; else return 0; } X+

ADS7843EG4中文资料

ADS7843EG4中文资料

FEATURESq 4-WIRE TOUCH SCREEN INTERFACE q RATIOMETRIC CONVERSION q SINGLE SUPPLY: 2.7V to 5V q UP TO 125kHz CONVERSION RATE q SERIAL INTERFACEq PROGRAMMABLE 8- OR 12-BIT RESOLUTION q 2 AUXILIARY ANALOG INPUTS qFULL POWER-DOWN CONTROLDESCRIPTIONThe ADS7843 is a 12-bit sampling Analog-to-Digital Con-verter (ADC) with a synchronous serial interface and low on-resistance switches for driving touch screens. Typical power dissipation is 750µW at a 125kHz throughput rate and a +2.7V supply. The reference voltage (V REF ) can be varied between 1V and +V CC , providing a corresponding input voltage range of 0V to V REF . The device includes a shutdown mode which reduces typical power dissipation to under 0.5µW. The ADS7843 is specified down to 2.7V operation.Low power, high speed, and onboard switches make the ADS7843 ideal for battery-operated systems such as per-sonal digital assistants with resistive touch screens and other portable equipment. The ADS7843 is available in an SSOP-16 package and is specified over the –40°C to +85°C temperature range.APPLICATIONSq PERSONAL DIGITAL ASSISTANTS q PORTABLE INSTRUMENTS q POINT-OF-SALES TERMINALS q PAGERSqTOUCH SCREEN MONITORSTOUCH SCREEN CONTROLLERCSDIN DOUTBUSYDCLKX+PENIRQX –Y+Y –IN3IN4V REFADS7843SBAS090B – SEPTEMBER 2000 – REVISED MAY 2002PRODUCTION DATA information is current as of publication date.Products conform to specifications per the terms of Texas Instruments standard warranty. Production processing does not necessarily include testing of all parameters.Copyright © 2001, Texas Instruments IncorporatedPlease be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.US Patent No. 6246394ADS78432SBAS090BPIN NAME DESCRIPTION1+V CC Power Supply, 2.7V to 5V.2X+X+ Position Input. ADC input Channel 1.3Y+Y+ Position Input. ADC input Channel 2.4X –X – Position Input 5Y –Y – Position Input 6GND Ground7IN3Auxiliary Input 1. ADC input Channel 3.8IN4Auxiliary Input 2. ADC input Channel 4.9V REF Voltage Reference Input 10+V CC Power Supply, 2.7V to 5V.11PENIRQ Pen Interrupt. Open anode output (requires 10k Ωto 100k Ω pull-up resistor externally).12DOUTSerial Data Output. Data is shifted on the falling edge of DCLK. This output is high impedance when CS is HIGH.13BUSY Busy Output. This output is high impedance when CS is HIGH.14DIN Serial Data Input. If CS is LOW, data is latched on rising edge of DCLK.15CS Chip Select Input. Controls conversion timing and enables the serial input/output register.16DCLKExternal Clock Input. This clock runs the SAR con-version process and synchronizes serial data I/O.ABSOLUTE MAXIMUM RATINGS (1)+V CC to GND ........................................................................–0.3V to +6V Analog Inputs to GND ............................................–0.3V to +V CC + 0.3V Digital Inputs to GND .............................................–0.3V to +V CC + 0.3V Power Dissipation..........................................................................250mW Maximum Junction Temperature...................................................+150°C Operating Temperature Range ........................................–40°C to +85°C Storage Temperature Range .........................................–65°C to +150°C Lead Temperature (soldering, 10s)...............................................+300°C NOTE: (1) Stresses above those listed under “Absolute Maximum Ratings ”may cause permanent damage to the device. Exposure to absolute maximum conditions for extended periods may affect device reliability.This integrated circuit can be damaged by ESD. Texas Instru-ments recommends that all integrated circuits be handled with appropriate precautions. Failure to observe proper handling and installation procedures can cause damage.ESD damage can range from subtle performance degradation to complete device failure. Precision integrated circuits may be more susceptible to damage because very small parametric changes could cause the device not to meet its published specifications.12345678+V CC X+Y+X –Y –GND IN3IN4DCLK CS DIN BUSY DOUT PENIRQ +V CC V REF161514131211109ADS7843PIN CONFIGURATIONTop ViewSSOPPIN DESCRIPTIONMAXIMUM INTEGRAL SPECIFIED LINEARITY PACKAGE TEMPERATUREPACKAGE ORDERING TRANSPORT PRODUCT ERROR (LSB)PACKAGE-LEADDESIGNATOR (1)RANGE MARKING NUMBER MEDIA, QUANTITY ADS7843E±2SSOP-16DBQ–40°C to +85°CADS7843E ADS7843E Rails, 100"""""ADS7843EADS7843E/2K5Tape and Reel, 2500NOTES: (1) For the most current specifications and package information, refer to our web site at .PACKAGE/ORDERING INFORMATIONADS78433SBAS090BPARAMETER CONDITIONSMIN TYPMAX UNITS ANALOG INPUTFull-Scale Input Span Positive Input – Negative Input0V REF V Absolute Input Range Positive Input –0.2+V CC +0.2V Negative Input–0.2+0.2V Capacitance 25pF Leakage Current0.1µA SYSTEM PERFORMANCE Resolution12Bits No Missing Codes 11Bits Integral Linearity Error ±2LSB (1)Offset Error±6LSB Offset Error Match 0.1 1.0LSB Gain Error±4LSB Gain Error Match 0.1 1.0LSB Noise30µVrms Power-Supply Rejection 70dB SAMPLING DYNAMICS Conversion Time 12Clk Cycles Acquisition Time 3Clk CyclesThroughput Rate125kHz Multiplexer Settling Time 500ns Aperture Delay 30ns Aperture Jitter100ps Channel-to-Channel Isolation V IN = 2.5Vp-p at 50kHz100dBSWITCH DRIVERS On-Resistance Y+, X+5ΩY –, X –6ΩREFERENCE INPUT Range 1.0+V CC V Resistance CS = GND or +V CC 5G ΩInput Current1340µA f SAMPLE = 12.5kHz2.5µA CS = +V CC0.0013µADIGITAL INPUT/OUTPUT Logic FamilyCMOSLogic Levels, Except PENIRQ V IH | I IH | ≤ +5µA +V CC • 0.7+V CC +0.3V IL | I IL | ≤ +5µA –0.3+0.8V V OH I OH = –250µA +V CC • 0.8V V OL I OL = 250µA0.4V PENIRQ V OLT A = 0°C to +85°C, 100k Ω Pull-Up0.8VData FormatStraight BinaryPOWER-SUPPLY REQUIREMENTS +V CCSpecified Performance 2.73.6V Quiescent Current280650µA f SAMPLE = 12.5kHz 220µA Shutdown Mode with 3µA DCLK = DIN = +V CCPower Dissipation +V CC = +2.7V1.8mW TEMPERATURE RANGE Specified Performance–40+85°CELECTRICAL CHARACTERISTICSAt T A = –40°C to +85°C, +V CC = +2.7V, V REF = +2.5V, f SAMPLE = 125kHz, f CLK = 16 • f SAMPLE = 2MHz, 12-bit mode, and digital inputs = GND or +V CC , unless otherwise noted.ADS7843ENOTE: (1) LSB means Least Significant Bit. With V REF equal to +2.5V, 1LSB is 610µV.ADS78434SBAS090BTYPICAL CHARACTERISTICSAt T A = +25°C, +V CC = +2.7V, V REF = +2.5V, f SAMPLE = 125kHz, and f CLK = 16 • f SAMPLE = 2MHz, unless otherwise noted.SUPPLY CURRENT vs +V CC3.5252.54+V CC (V)S u p p l y C u r r e n t (µA )3203002802602402202001804.53MAXIMUM SAMPLE RATE vs +V CC3.5252.54+V CC (V)S a m p l e R a t e (H z )1M100k10k1k4.53SUPPLY CURRENT vs TEMPERATURE20–40100–2040Temperature (°C)S u p p l y C u r r e n t (µA )4003503002502001501006080CHANGE IN GAIN vs TEMPERATURE20–40100–2040Temperature (°C)D e l t a f r o m +25˚C (L S B )0.150.100.050.00–0.05–0.10–0.156080CHANGE IN OFFSET vs TEMPERATURE20–40100–2040Temperature (°C)D e l t a f r o m +25˚C (L S B )0.60.40.20.0–0.2–0.4–0.66080POWER-DOWN SUPPLY CURRENTvs TEMPERATURE20–40100–2040Temperature (°C)S u p p l y C u r r e n t (n A )140120100806040206080ADS78435SBAS090BTYPICAL CHARACTERISTICS (Cont.)At T A = +25°C, +V CC = +2.7V, V REF = +2.5V, f SAMPLE = 125kHz, and f CLK = 16 • f SAMPLE= 2MHz, unless otherwise noted.REFERENCE CURRENT vs SAMPLE RATE751252550100Sample Rate (kHz)R e f e r e n c e C u r r e n t (µA )14121086420REFERENCE CURRENT vs TEMPERATURE20–40100–2040Temperature (°C)R e f e r e n c e C u r r e n t (µA )1816141210866080SWITCH-ON RESISTANCE vs +V CC (X+, Y+: +V CC to Pin; X –, Y –: Pin to GND)3.5252.54+V CC (V)R O N (Ω)18765432 4.53SWITCH-ON RESISTANCE vs TEMPERATURE (X+, Y+: +V CC to Pin; X –, Y –: Pin to GND)20–40100–2040Temperature (°C)R O N (Ω)18765432608021.81.61.41.210.80.60.40.20L S B E r r o r20406080100120140160180200Sampling Rate (kHz)MAXIMUM SAMPLING RATE vs RINTHEORY OF OPERATIONThe ADS7843 is a classic Successive Approximation Regis-ter (SAR) ADC. The architecture is based on capacitive redistribution which inherently includes a sample-and-hold function. The converter is fabricated on a 0.6µs CMOS process.The basic operation of the ADS7843 is shown in Figure 1. The device requires an external reference and an external clock. It operates from a single supply of 2.7V to 5.25V. The external reference can be any voltage between 1V and +V CC. The value of the reference voltage directly sets the input range of the converter. The average reference input current depends on the conversion rate of the ADS7843.The analog input to the converter is provided via a four-channel multiplexer. A unique configuration of low on-resis-tance switches allows an unselected ADC input channel to provide power and an accompanying pin to provide ground for an external device. By maintaining a differential input to the converter and a differential reference architecture, it is pos-sible to negate the switch’s on-resistance error (should this be a source of error for the particular measurement).ANALOG INPUTSee Figure 2 for a block diagram of the input multiplexer on the ADS7843, the differential input of the ADC, and the converter’s differential reference. Table I and Table II show the relation-ship between the A2, A1, A0, and SER/DFR control bits and the configuration of the ADS7843. The control bits are pro-vided serially via the DIN pin—see the Digital Interface section of this data sheet for more details.When the converter enters the hold mode, the voltage difference between the +IN and –IN inputs (see Figure 2) is captured on the internal capacitor array. The input current on the analog inputs depends on the conversion rate of the device. During the sample period, the source must charge the internal sampling capacitor (typically 25pF). After the capacitor has been fully charged, there is no further input current. The rate of charge transfer from the analog source to the converter is a function of conversion rate.TABLE I. Input Configuration, Single-Ended Reference Mode (SER/DFR HIGH).NOTE: (1) Internal node, for clarification only—not directly accessible by the user.A2A1A0X+Y+IN3IN4–IN(1)X SWITCHES Y SWITCHES+REF(1)–REF(1) 001+IN–Y OFF ON+Y–Y 101+IN–X ON OFF+X–X 010+IN GND OFF OFF+V REF GND 110+IN GND OFF OFF+V REF GND NOTE: (1) Internal node, for clarification only—not directly accessible by the user.TABLE II. Input Configuration, Differential Reference Mode (SER/ LOW).ADS7843 6SBAS090BFIGURE 2. Simplified Diagram of Analog Input.REFERENCE INPUTThe voltage difference between +REF and –REF (shown in Figure 2) sets the analog input range. The ADS7843 will operate with a reference in the range of 1V to +V CC. There are several critical items concerning the reference input and its wide voltage range. As the reference voltage is reduced, the analog voltage weight of each digital output code is also reduced. This is often referred to as the LSB (least significant bit) size and is equal to the reference voltage divided by 4096. Any offset or gain error inherent in the ADC will appear to increase, in terms of LSB size, as the reference voltage is reduced. For example, if the offset of a given converter is 2LSBs with a 2.5V reference, it will typically be 5LSBs with a 1V reference. In each case, the actual offset of the device is the same, 1.22mV. With a lower reference voltage, more care must be taken to provide a clean layout including adequate bypassing, a clean (low noise, low ripple) power supply, a low-noise reference, and a low-noise input signal.The voltage into the V REF input is not buffered and directly drives the Capacitor Digital-to-Analog Converter (CDAC) por-tion of the ADS7843. Typically, the input current is 13µA with V REF = 2.7V and f SAMPLE = 125kHz. This value will vary by a few microamps depending on the result of the conversion. The reference current diminishes directly with both conversion rate and reference voltage. As the current from the reference is drawn on each bit decision, clocking the converter more quickly during a given conversion period will not reduce overall current drain from the reference.There is also a critical item regarding the reference when making measurements where the switch drivers are on. For this discussion, it’s useful to consider the basic operation of the ADS7843 as shown in Figure 1. This particular applica-tion shows the device being used to digitize a resistive touch screen. A measurement of the current Y position of the pointing device is made by connecting the X+ input to the ADC, turning on the Y+ and Y– drivers, and digitizing the voltage on X+ (shown in Figure 3). For this measurement, the resistance in the X+ lead does not affect the conversion (it does affect the settling time, but the resistance is usually small enough that this is not a concern).FIGURE 3.Simplified Diagram of Single-Ended Reference (SER/DFR HIGH, Y Switches Enabled, X+ isAnalog Input).ADS78437 SBAS090B ADS78438SBAS090BFIGURE 5. Conversion Timing, 24 Clocks per Conversion, 8-bit Bus Interface. No DCLK Delay Required with DedicatedSerial Port.However, since the resistance between Y+ and Y – is fairly low,the on-resistance of the Y drivers does make a small differ-ence. Under the situation outlined so far, it would not be possible to achieve a 0V input or a full-scale input regardless of where the pointing device is on the touch screen because some voltage is lost across the internal switches. In addition,the internal switch resistance is unlikely to track the resistance of the touch screen, providing an additional source of error.This situation can be remedied as shown in Figure 4. By setting the SER/DFR bit LOW, the +REF and –REF inputs are connected directly to Y+ and Y –. This makes the A/D conver-sion ratiometric. The result of the conversion is always a percentage of the external resistance, regardless of how it changes in relation to the on-resistance of the internalFIGURE 4. Simplified Diagram of Differential Reference (SER/DFR LOW, Y Switches Enabled, X+ is Analog Input).switches. Note that there is an important consideration regard-ing power dissipation when using the ratiometric mode of operation, see the Power Dissipation section for more details.As a final note about the differential reference mode, it must be used with +V CC as the source of the +REF voltage and cannot be used with V REF . It is possible to use a high precision reference on V REF and single-ended reference mode for mea-surements which do not need to be ratiometric. Or, in some cases, it could be possible to power the converter directly from a precision reference. Most references can provide enough power for the ADS7843, but they might not be able to supply enough current for the external load (such as a resistive touch screen).DIGITAL INTERFACEFigure 5 shows the typical operation of the ADS7843’s digital interface. This diagram assumes that the source of the digital signals is a microcontroller or digital signal processor with a basic serial interface. Each communication between the pro-cessor and the converter consists of eight clock cycles. One complete conversion can be accomplished with three serial communications, for a total of 24 clock cycles on the DCLK input.The first eight clock cycles are used to provide the control byte via the DIN pin. When the converter has enough information about the following conversion to set the input multiplexer,switches, and reference inputs appropriately, the converter enters the acquisition (sample) mode and, if needed, the internal switches are turned on. After three more clock cycles,the control byte is complete and the converter enters the conversion mode. At this point, the input sample-and-hold goes into the hold mode and the internal switches may turn off. TheADS78439SBAS090B1DCLKCS8111DOUT BUSYSDIN CONTROL BITSSCONTROL BITS109876543210111098118next 12th clock cycles accomplish the actual A/D conversion.If the conversion is ratiometric (SER/DFR LOW), the internal switches are on during the conversion. A 13th clock cycle is needed for the last bit of the conversion result. Three more clock cycles are needed to complete the last byte (DOUT will be LOW). These will be ignored by the converter.Control ByteSee Figure 5 for the placement and order of the control bits within the control byte. Tables III and IV give detailed informa-tion about these bits. The first bit, the ‘S ’ bit, must always be HIGH and indicates the start of the control byte. The ADS7843will ignore inputs on the DIN pin until the start bit is detected.The next three bits (A2-A0) select the active input channel or channels of the input multiplexer (see Tables I and II and Figure 2). The MODE bit determines the number of bits for each conversion, either 12 bits (LOW) or 8 bits (HIGH).The SER/DFR bit controls the reference mode: either single-ended (HIGH) or differential (LOW). (The differential mode is also referred to as the ratiometric conversion mode.) In single-ended mode, the converter ’s reference voltage is always the difference between the V REF and GND pins. In differential mode, the reference voltage is the difference between the currently enabled switches. See Tables I and II and Figures 2through 4 for more information. The last two bits (PD1-PD0)select the power-down mode as shown in Table V. If both inputs are HIGH, the device is always powered up. If both inputs are LOW, the device enters a power-down mode between conversions. When a new conversion is initiated, the device will resume normal operation instantly —no delay is needed to allow the device to power up and the very first conversion will be valid. There are two power-down modes:one where PENIRQ is disabled and one where it is enabled.PD1PD0PENIRQ DESCRIPTIONEnabledPower-down between conversions. When each conversion is finished, the converter enters a low power mode. At the start of the next conversion,the device instantly powers up to full power.There is no need for additional delays to assure full operation and the very first conversion is valid. The Y – switch is on while in power-down.01Disabled Same as mode 00, except PENIRQ is disabled.The Y – switch is off while in power-down mode.10Disabled Reserved for future use.11DisabledNo power-down between conversions, device is always powered.TABLE V. Power-Down Selection.FIGURE 6. Conversion Timing, 16 Clocks per Conversion, 8-bit Bus Interface. No DCLK Delay Required with DedicatedSerial Port.BIT NAME DESCRIPTION7SStart Bit. Control byte starts with first HIGH bit on DIN. A new control byte can start every 16th clock cycle in 12-bit conversion mode or every 12th clock cycle in 8-bit conversion mode.6-4A2-A0Channel Select Bits. Along with the SER/DFR bit,these bits control the setting of the multiplexer input,switches, and reference inputs, see Tables I and II.3MODE12-Bit/8-Bit Conversion Select Bit. This bit controls the number of bits for the following conversion: 12bits (LOW) or 8 bits (HIGH).2 SER/DFRSingle-Ended/Differential Reference Select Bit. Along with bits A2-A0, this bit controls the setting of the multiplexer input, switches, and reference inputs, see Tables I and II.1-0PD1-PD0Power-Down Mode Select Bits. See Table V for details.TABLE IV. Descriptions of the Control Bits within the ControlByte.Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0(MSB)(LSB)SA2A1A0MODE SER/DFRPD1PD0TABLE III. Order of the Control Bits in the Control Byte.16-Clocks per ConversionThe control bits for conversion n + 1 can be overlapped with conversion ‘n ’ to allow for a conversion every 16 clock cycles,as shown in Figure 6. This figure also shows possible serial communication occurring with other serial peripherals between each byte transfer between the processor and the converter.ADS784310SBAS090BFIGURE 8. Ideal Input Voltages and Output Codes.This is possible provided that each conversion completes within 1.6ms of starting. Otherwise, the signal that has been captured on the input sample-and-hold may droop enough to affect the conversion result. Note that the ADS7843 is fully powered while other serial communications are taking place during a conversion.Digital TimingFigure 7 and Table VI provide detailed timing for the digital interface of the ADS7843.SYMBOL DESCRIPTION MIN TYPMAXUNITS t ACQ Acquisition Time1.5µs t DS DIN Valid Prior to DCLK Rising 100ns t DH DIN Hold After DCLK HIGH 10ns t DO DCLK Falling to DOUT Valid 200ns t DV CS Falling to DOUT Enabled 200ns t TR CS Rising to DOUT Disabled 200ns t CSS CS Falling to First DCLK Rising 100ns t CSH CS Rising to DCLK Ignored0ns t CH DCLK HIGH 200ns t CL DCLK LOW200ns t BD DCLK Falling to BUSY Rising 200ns t BDV CS Falling to BUSY Enabled 200ns t BTRCS Rising to BUSY Disabled200nsTABLE VI. Timing Specifications (+V CC = +2.7V and Above,T A = –40°C to +85°C, C LOAD = 50pF).FIGURE 7. Detailed Timing Diagram.Data FormatThe ADS7843 output data is in Straight Binary format, as shown in Figure 8. This figure shows the ideal output code for the given input voltage and does not include the effects of offset, gain, or noise.8-Bit ConversionThe ADS7843 provides an 8-bit conversion mode that can be used when faster throughput is needed and the digital result is not as critical. By switching to the 8-bit mode, a conversion is complete four clock cycles earlier. This could be used in conjunction with serial interfaces that provide 12-bit transfers or two conversions could be accomplished with three 8-bit transfers. Not only does this shorten each conversion by four bits (25% faster throughput), but each conversion can actu-ally occur at a faster clock rate. This is because the internal settling time of the ADS7843 is not as critical —settling to better than 8 bits is all that is needed. The clock rate can be as much as 50% faster. The faster clock rate and fewer clock cycles combine to provide a 2x increase in conversion rate.POWER DISSIPATIONThere are two major power modes for the ADS7843: full power (PD1-PD0 = 11B ) and auto power-down (PD1-PD0 = 00B ).When operating at full speed and 16 clocks per conversion ( see Figure 6), the ADS7843 spends most of its time acquiring or converting. There is little time for auto power-down, assuming that this mode is active. Therefore, the difference between full power mode and auto power-down is negligible. If the conver-sion rate is decreased by simply slowing the frequency of the DCLK input, the two modes remain approximately equal. How-ever, if the DCLK frequency is kept at the maximum rate during a conversion but conversions are simply done less often, the difference between the two modes is dramatic.Figure 9 shows the difference between reducing the DCLK frequency (“scaling ” DCLK to match the conversion rate) or maintaining DCLK at the highest frequency and reducing the number of conversions per second. In the later case, the converter spends an increasing percentage of its time in power-down mode (assuming the auto power-down mode is active).Another important consideration for power dissipation is the reference mode of the converter. In the single-ended refer-ence mode, the converter ’s internal switches are on only when the analog input voltage is being acquired (see Figure 5). Thus, the external device, such as a resistive touch screen, is only powered during the acquisition period. In the differential reference mode, the external device must be powered throughout the acquisition and conversion periods (see Figure 5). If the conversion rate is high, this could substantially increase power dissipation.devices have fairly “clean ” power and grounds because most of the internal components are very low power. This situation would mean less bypassing for the converter ’s power and less concern regarding grounding. Still, each situation is unique and the following suggestions should be reviewed carefully.For optimum performance, care should be taken with the physical layout of the ADS7843 circuitry. The basic SAR architecture is sensitive to glitches or sudden changes on the power supply, reference, ground connections, and digital inputs that occur just prior to latching the output of the analog comparator. Thus, during any single conversion for an ‘n-bit ’SAR converter, there are n ‘windows ’ in which large external transient voltages can easily affect the conversion result.Such glitches might originate from switching power supplies,nearby digital logic, and high-power devices. The degree of error in the digital output depends on the reference voltage,layout, and the exact timing of the external event. The error can change if the external event changes in time with respect to the DCLK input.With this in mind, power to the ADS7843 should be clean and well bypassed. A 0.1µF ceramic bypass capacitor should be placed as close to the device as possible. A 1µF to 10µF capacitor may also be needed if the impedance of the connection between +V CC and the power supply is high.The reference should be similarly bypassed with a 0.1µF capacitor. If the reference voltage originates from an op amp,make sure that it can drive the bypass capacitor without oscillation. The ADS7843 draws very little current from the reference on average, but it does place larger demands on the reference circuitry over short periods of time (on each rising edge of DCLK during a conversion).The ADS7843 architecture offers no inherent rejection of noise or voltage variation in regards to the reference input.This is of particular concern when the reference input is tied to the power supply. Any noise and ripple from the supply will appear directly in the digital results. While high frequency noise can be filtered out, voltage variation due to line fre-quency (50Hz or 60Hz) can be difficult to remove.The GND pin should be connected to a clean ground point.In many cases, this will be the “analog ” ground. Avoid connections which are too near the grounding point of a microcontroller or digital signal processor. If needed, run a ground trace directly from the converter to the power-supply entry or battery connection point. The ideal layout will include an analog ground plane dedicated to the converter and associated analog circuitry.In the specific case of use with a resistive touch screen, care should be taken with the connection between the converter and the touch screen. Since resistive touch screens have fairly low resistance, the interconnection should be as short and robust as possible. Longer connections will be a source of error, much like the on-resistance of the internal switches.Likewise, loose connections can be a source of error when the contact resistance changes with flexing or vibrations.FIGURE 9. Supply Current versus Directly Scaling the Fre-quency of DCLK with Sample Rate or Keeping DCLK at the Maximum Possible Frequency.LAYOUTThe following layout suggestions should provide the most optimum performance from the ADS7843. However, many portable applications have conflicting requirements concern-ing power, cost, size, and weight. In general, most portable元器件交易网。

触摸屏控制芯片ADS中文资料

触摸屏控制芯片ADS中文资料

触摸屏控制芯片ADS中文资料随着科技的日新月异,触摸屏已经成为我们生活中不可或缺的一部分。

而实现触摸屏功能的核心设备就是触摸屏控制芯片(Touch Screen Controller)。

其中,由美国德州仪器(Texas Instruments)公司出品的ADS触摸屏控制器,因其高效、稳定等特点广受好评。

本文将介绍关于ADS触摸屏控制芯片的中文资料,以帮助读者更好地了解和应用。

一、ADS触摸屏控制芯片的基本介绍ADS是DeTexAS(德州仪器)电容式触摸屏控制芯片,是一款高性能和低功耗的控制芯片,用于对电容式触摸屏的数据采集和处理。

其主要优点包括:1.高精度采集:ADS可以在高灵敏度、高准确度的状态下,快速采集有关电容式触摸屏各种触摸信息。

可支持4线、5线电阻式触摸屏以及电容式触摸屏。

2.强大的报告处理:ADS的报告率可达200Hz,符合市场上各种不同需求的触摸屏设备。

3.低功耗:ADS的低功耗设计可最大程度延长设备的电池续航能力。

除此之外,ADS还融入了多种先进的电路设计技术,如多点触控、自动进入低功耗模式、广泛的温度范围和高速传输技术,保证了它在功能方面的完备性以及出色的性能表现。

二、ADS触摸屏控制芯片的应用场景ADS广泛应用于智能手机、平板电脑、护航摄影、手持终端和医疗设备等领域,在其中扮演了非常重要的角色。

在智能手机和平板电脑市场,例如三星S6,华为P9和苹果iPhone,都采用了德州仪器的ADS控制器来实现更加完美的触摸体验。

同时,ADS还被广泛应用于工业自动化、家庭娱乐等领域。

三、ADS触摸屏控制芯片相关中文资料随着ADS触摸屏控制芯片的逐渐普及和应用,越来越多的人希望了解该芯片的相关资料。

以下是几种常见的中文资料:1. ADS芯片数据手册ADS芯片数据手册是一份详细的技术文档,可以提供ADS触摸屏控制芯片各项技术指标、功能及接口的详细描述。

此外,数据手册还包含了ADS的软件和硬件架构方案,以及使用提示和设计建议。

触摸屏基本原理及其与单片机的连接

触摸屏基本原理及其与单片机的连接

触摸屏基本原理及其与单片机的连接作者:张佳根来源:《硅谷》2012年第05期摘要:简要介绍触摸屏的结构和原理,并以TI公司触摸屏控制芯片ADS7843为例,介绍触摸屏的控制电路,讨论该控制芯片的应用方法和技巧。

对单片机的触控系统的的开发和设计有指导作用。

关键词:触摸屏;ADS7843;单片机系统中图分类号:TP393 文献标识码:A 文章编号:1671-7597(2012)0310044-01触摸屏作为一种新型的计算机外设,提供了简单,方便,自然的交互方式。

它赋予计算机崭新的面貌。

触摸屏的应用十分广泛,主要应用于商场,营业厅,pad设备,手机等的信息输入和查询。

此外,在工业控制,军事指挥,游戏控制等领域也有较多的应用。

本文主要介绍ADS7843芯片的工作特点,及运用其特点使其和单片机结合以为触摸屏工作做硬件支持。

1 触摸屏的结构和工作机理触摸屏分为电阻式,电容式,表面声波式,红外线扫描近场成像等几大类。

由于电阻式价格较为廉价,较大面积的被广泛应用。

电阻式触摸屏是由多层材料组成的,它由有机玻璃作为基本层,上面涂覆了一层电导体,在基本层的上面覆盖一层塑料层,塑料层的内表面涂覆一层电导层,在两个电导层之间有许多的隔离点将两个层隔离。

这种隔离层的特点是精度高,不受环境干扰,适用于较为广泛的场合。

当手触摸屏幕时,平常绝缘的导电层之间就有了接触,控制器检测到这个接触时,其中一个导电层接通y轴方向5v均匀电压场,另一导电层将接触点的电压输送至控制器进行A\D转换,在将得到的电压值与5v相比即得到接触点的y轴坐标,同理的出x轴坐标。

2 触控控制芯片的功能特性触控控制芯片的功能主要有两个方面:一方面是完成电极电压的切换;另一方面是采集接触点的电压,即(A\D)转换。

Ads7843是TI公司专门为四线电阻式触摸屏设计的专用接口芯片。

它可方便的与单片机接口,对转换信号进行处理和计算。

它的具体参数是,拥有8位或12位的分辨率,逐次逼近型的A\D转换器,带有一串型接口,可达125khz的转换速率,工作电压是2.7-5v,参考电压是1v-Vcc均可。

触摸屏控制芯片ADS7843中文资料

触摸屏控制芯片ADS7843中文资料

触摸屏控制芯片ADS7843中文资料当触笔触到屏上时,对应的位置就会产生相应大小的电压,输入到芯片,AD转换后得到一个数据。

而触摸校准就是将接受到的原始模数转换值转换成屏幕像素坐标。

再就是了解触摸芯片,知道他的工作方式,以及跟STM32的连线。

触摸实验中,我的实验板是用SPI口来实现数据的传输的,即SPI与xpt2046相连。

触摸屏控制芯片ADS7843中文资料ADS7843是一个内置12位模数转换、低导通电阻模拟开关的串行接口芯片。

供电电压2.7~5 V,参考电压VREF为1 V~+VCC,转换电压的输入范围为0~ VREF,最高转换速率为125 kHz。

ADS7843引脚图及引脚功能说明了:ADS7843的引脚配置如图3所示。

表1为引脚功能说明,图4为典型应用。

ADS7843典型应用电路ADS7843之所以能实现对触摸屏的控制,是因为其内部结构很容易实现电极电压的切换,并能进行快速A/D转换。

图5所示为其内部结构,A2~A0和SER/为控制寄存器中的控制位,用来进行开关切换和参考电压的选择。

2.3 ADS7843的控制字及数据传输格式S A2 A1 A0 MODE SER/DFR PD1 PD0ADS7843的控制字如表4所列(上图),其中S为数据传输起始标志位,该位必为"1"。

A2~A0进行通道选择(见表2和3)。

MODE用来选择A/D转换的精度,"1"选择8位,"0"选择12位。

SER/选择参考电压的输入模式(见表2和3)。

PD1、PD0选择省电模式:"00"省电模式允许,在两次A/D转换之间掉电,且中断允许;"01"同"00",只是不允许中断;"10"保留;"11"禁止省电模式。

为了完成一次电极电压切换和A/D转换,需要先通过串口往ADS7843发送控制字,转换完成后再通过串口读出电压转换值。

四线电阻式触摸屏接口技术

四线电阻式触摸屏接口技术
--电容式触摸屏,无需压力 --精度好,无需校准 --屏幕强度高,不易损坏 2023年6月:苹果推出iPhone电容式全屏多点触摸手机 --免触笔无按键全屏触摸令世人惊艳 --进入从单点到多点触摸旳新时代 近期,微软正式推出旳Windows 7带起PC市场多点触摸旳需求,并联合多家 PC业者推出多点触摸台式计算机及笔记本电脑。
红外式触摸屏
简朴简介: 红外式触摸屏以光束阻断技术为基本原 理,构造非常简朴,在屏幕前框架旳左边(Y轴)和 下边(X轴)分别装有红外发射管,各自旳对边又装 有相应旳接受管,进而形成一种横竖交叉旳红外线 网。管旳排列密度与其辨别率有关。工作时在屏幕 前形成纵横交叉旳红外线矩阵,只有有物体触摸屏 上任何一点时,便会阻挡该位置旳红外线,控制器 即时算出触摸点旳位置坐标。
表面声波触摸屏
简朴简介:
表面声波触摸屏旳触摸屏部分能够是一块平面、球面或是柱面旳玻璃 平板,安装在CRT、LED、LCD或是等离子显示屏屏幕旳前面。玻璃 屏旳左上角和右下角各固定了竖直和水平方向旳超声波发射换能器, 右上角则固定了两个相应旳超声波接受换能器。玻璃屏旳四个周围则 刻有45°角由疏到密间隔非常精密旳反射条纹。
四线制电阻触摸屏
四线电阻式触摸屏旳应用性能: (1).耐用性不够,长时间旳触按施压会使器件损坏。因为 每次触按,上层旳PET和ITO都会发生形变,而ITO材质较 脆,在形变经常发生时轻易损坏。一旦ITO层断裂,导电旳 均匀性也就被破坏,上面推导坐标时旳百分比等效性也就不 再存在,所以四线电阻触摸屏旳寿命不长。 (2).四线式旳触控面板因成本及技术层面较为成熟等原因, 几乎是全部触控面板业者最基本旳生产规格,合用于有固定 顾客旳公共场合,如工业控制现场、办公室、家庭等。 所以,以电阻式旳技术来说,四线式旳规格约占了50%以上 旳市场拥有率。

基于ILI9320和ADS7843的触摸显示屏控制系统设计

基于ILI9320和ADS7843的触摸显示屏控制系统设计

基于ILI9320和ADS7843的触摸显示屏控制系统设计陈章宝;邓运生【摘要】Medium and small touch and display screen was widely used in portable network terminal,and it gave the design in this paper of 2.8 inch TFT-LCD touch and display screen module,design of circuit withSTC12C5A60S2 as main chip,system includes display screen and touch screen interface circuit,FPC interface circuit,SD card interface circuit,and the driving program and application program design method were given.The experimental results showed that the system is stable and all the functions are realized.%结合中小型触摸显示屏在手持式网络终端中的广泛应用,给出了一种2.8寸TFT-LCD触摸显示屏模块的设计方法,以STC12C5A60S2为主控芯片,包括显示屏和触摸屏接口电路、FPC接口电路、SD卡接口电路等,给出驱动程序及其应用程序的设计方法.实验结果表明,系统运行稳定,能够实现模块的全部功能.【期刊名称】《蚌埠学院学报》【年(卷),期】2017(006)002【总页数】5页(P12-16)【关键词】显示触摸屏;薄膜场效应晶体管显示器;驱动程序【作者】陈章宝;邓运生【作者单位】蚌埠学院电子与电气工程学院,安徽蚌埠 233030;蚌埠学院电子与电气工程学院,安徽蚌埠 233030【正文语种】中文【中图分类】TP274随着电子信息技术的发展,平面显示技术被广泛应用于日常的生产和生活当中,而液晶显示(LCD:Liquid Crystal Display)器件由于具有功耗低、重量轻、价格低以及优越的字符和图形显示功能,在智能仪器仪表、手持网络设备、物联网终端设备中得到了广泛的应用。

基于LPC2478与ADS7843的电阻触摸屏设计方案

基于LPC2478与ADS7843的电阻触摸屏设计方案

基于LPC2478与ADS7843的电阻触摸屏设计方案触摸屏具有坚固耐用、反应速度快、节省空间、易于交流等许多优点,相比键盘输入,触摸屏技术更简单、直观、快捷,且具有丰富多彩的表现能力。

设计触摸屏时,最重要的问题是准确定位触摸点的坐标位置。

本文详细介绍了利用工业级芯片LPC2478 与ADS7843 设计四线电阻触摸屏的实际方案。

1 硬件设计1.1 硬件选择LPC2478 芯片内部集成了LCD 接口,它的工作范围为-40~+80℃,其宽温的特点特别适合工业领域。

ADS7843 芯片是一款专为触摸采样设计的芯片,12 位可编程精度。

外部参考电压范围从1V~Vcc 均可,Vcc 最高电压为5 V,高速低功耗使得ADS7843 非常适用于电阻触摸屏的手持设备。

1.2 硬件电路笔者设计了ADS7843 的硬件接口电路(如图1 所示)。

该电路中采取了利用LPC2478 的GPIO 管脚模拟SPI 时序的方式,将DCLK,CS,DIN,BUS-Y,DOUT 接到LPC2478 的5 个GPIO 引脚上。

将ADS7843 的引脚接到LPC2478 的中断1 上的方式。

采用的四线电阻触摸屏,分别接到ADS7843 的X+,Y+,X-,Y-引脚上。

1.3 采集方式ADS7843 有2 种参考电压模式:单端模式和差分模式。

在单端模式中,参考输入电压选取的是Vcc 和GND。

由于内部的开关电阻压降影响转换结果带来误差,所以转换器内部的低阻开关对转换精度有一定影响。

差分模式参考输入由未选中的输入通道Y+,Y-,X+,X-提供参考电源和地。

不管内部开关电阻如何变化,其转换结果总与触摸屏的电阻成比例,克服了内部开关电阻的影响,但当转换频率很高时则增加了功耗,需要考虑低功耗设计。

笔者基于采样精度的原因在程序中采用了差分方式。

ADS7843 的引脚是一个PIN 中断引脚,在触摸显示屏时可产生一个低电平,触发LPC2478 的中断,采。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

触摸屏控制芯片ADS7843中文资料
ADS7843是一个内置12位模数转换、低导通电阻模拟开关的串行接口芯片。

供电电压2.7~5 V,参考电压VREF为1 V~+VCC,转换电压的输入范围为0~ VREF,最高转换速率为125 kHz。

ADS7843引脚图及引脚功能说明了:
ADS7843的引脚配置如图3所示。

表1为引脚功能说明,图4为典型应用。

aDS7843引脚说明
ADS7843典型应用电路
2.2 ADS7843的内部结构及参考电压模式选择
ADS7843之所以能实现对触摸屏的控制,是因为其内部结构很容易实现电极电压的切换,并能进行快速A/D转换。

图5所示为其内部结构,A2~A0和SER/为控制寄存器中的控制位,用来进行开关切换和参考电压的选择。

ADS7843支持两种参考电压输入模式:一种是参考电压固定为VREF,另一种采取差动模式,参考电压来自驱动电极。

这两种模式分别如图6(a)、(b)所示。

采用图6(b)的差动模式可以消除开关导通压降带来的影响。

表2和表3为两种参考电压输入模式所对应的内部开关状况。

2.3 ADS7843的控制字及数据传输格式
ADS7843的控制字如表4所列,其中S为数据传输起始标志位,该位必为"1"。

A2~A0进行通道选择(见表2和3)。

MODE用来选择A/D转换的精度,"1"选择8位,"0"选择12位。

SER/选择参考电压的输入模式(见表2和3)。

PD1、PD0选择省电模式:
"00"省电模式允许,在两次A/D转换之间掉电,且中断允许;
"01"同"00",只是不允许中断;
"10"保留;
"11"禁止省电模式。

为了完成一次电极电压切换和A/D转换,需要先通过串口往ADS7843发送控制字,转换完成后再通过串口读出电压转换值。

标准的一次转换需要24个时钟周期,如图7所示。


于串口支持双向同时进行传送,并且在一次读数与下一次发控制字之间可以重叠,所以转换速率可以提高到每次16个时钟周期,如图8所示。

如果条件允许,CPU可以产生15个CLK 的话(比如FPGAs和ASICs),转换速率还可以提高到每次15个时钟周期,如图9所示。

2.4 A/D转换时序的程序设计
ADS7843的典型应用如图4所示。

假设μP接口与51单片机的P1.3~P1.7相连,现以一次转换需24个时钟周期为例,介绍A/D转换时序的程序设计。

; A/D 接口控制线
DCLK BIT P1.3
CS BIT P1.4
DIN BIT P1.5
BUSY BIT P1.6
DOUT BIT P1.7
; A/D 通道选择命令字和工作寄存器
CHX EQU 094H ;通道X+的选择控制字CHY EQU 0D4H;通道Y+的选择控制字
CH3 EQU 0A4H
CH4 EQU 0E4H
AD_CH EQU 35H ;通道选择寄存器
AD_RESULTH EQU 36H ;存放12 bit A/D值AD_RESULTL EQU 37H
; 存放通道CHX+的A/D值CHXAdResultH EQU 38H
CHXAdResultL EQU 39H
; 存放通道CHY+的A/D值CHYAdResultH EQU 3AH
CHYAdResultL EQU 3BH
; 采集通道CHX+的程序段(CHXAD) CHXAD: MOV AD_CH,#CHX
LCALL AD_RUN
MOV CHXAdResultH,AD_RESULTH
MOV CHXAdResultL,AD_RESULTL
RET
; 采集通道CHY+的程序段(CHYAD)
CHYAD: MOV AD_CH,#CHY
LCALL AD_RUN
MOV CHYAdResultH,AD_RESULTH
MOV CHYAdResultL,AD_RESULTL
RET
; A/D转换子程序(AD_RUN)
; 输入: AD_CH-模式和通道选择命令字
; 输出: AD_RESULTH,L ;12 bit的A/D转换值; 使用: R2 ;辅助工作寄存器
AD_RUN:
CLR CS ; 芯片允许
CLR DCLK
MOV R2,#8 ;先写8 bit命令字
MOV A,AD_CH
AD_LOOP:
MOV C, ACC.7
MOV DIN,C ;时钟上升沿锁存DIN
SETB DCLK ;开始发送命令字
CLR DCLK ;时钟脉冲,一共24个
RL A
DJNZ R2,AD_LOOP
NOP
NOP
NOP
NOP
ADW0: JNB BUSY,AD_WAIT ;等待转换完成SJMP ADW1
AD_WAIT:
LCALL WATCHDOG
NOP
SJMP ADW0
CLR DIN
ADW1: MOV R2,#12 ;开始读取12bit结果SETB DCLK
CLR DCLK
AD_READ:
SETB DCLK
CLR DCLK ;用时钟的下降沿读取
MOV A,AD_RESULTL
MOV C,DOUT
RLC A
MOV AD_RESULTL,A
MOV A,AD_RESULTH
RLC A
MOV AD_RESULTH,A
DJNZ R2,AD_READ
MOV R2,#4 ;最后是没用的4个时钟
IGNORE:
SETB DCLK
CLR DCLK
DJNZ R2,IGNORE
SETB CS ;禁止芯片
ANL AD_RESULTH,#0FH ;屏蔽高4 bit
RET
2.5 A/D转换结果的数据格式
ADS7843转换结果为二进制格式。

需要说明的是,在进行公式计算时,参考电压在两种输入模式中是不一样的。

而且,如果选取8位的转换精度,1LSB=VREF/256,一次转换完成时间可以提前4个时钟周期,此时串口时钟速率也可以提高一倍。

点击查看:ads7843 datasheet
点击查看:ADS7843驱动程序
--------------------------------------------------------------------------------
相关文章
MTK各芯片功能及平台介绍
展讯3G手机芯片:SC8800系列TD-
展讯(MTK)手机芯片:SC6800系列
展讯(MTK)手机芯片:SC6600系列
触摸屏控制芯片ADS7843中文资料
锂电池充电器芯片MAX1811中文资料
CN3059的原理及应用介绍
ML2035中资料(单片正弦波发生器芯片
MAX705,MAX831L,MAX70
MAX813L/MAX705中文资料
(注:素材和资料部分来自网络,供参考。

请预览后才下载,期待你的好评与关注!)。

相关文档
最新文档