MAX1233/MAX1234触摸屏控制器入门

[09-13 17:05:19]   来源:http://www.88dzw.com  控制技术   阅读:8648

文章摘要:2.10) 测量外部电压输入AUX1、AUX2、BAT1、BAT2和温度表9. ADC测量命令序列 DEMO1234 CommandAction (Triggered by A/D3210 Bits)SPI data inT MBMeasure BAT1/4, BAT2/4, AUX1, AUX2, TEMP1, TEMP2 with 12-bit resolution and 3.5µs conversion rate0x0040 0x2f010x8005 0x00000x8006 0x00000x8007 0x00000x8008 0x00000x8009 0x00000x80

MAX1233/MAX1234触摸屏控制器入门,标签:计算机控制技术,工厂电气控制技术,http://www.88dzw.com

2.10) 测量外部电压输入AUX1、AUX2、BAT1、BAT2和温度

表9. ADC测量命令序列
DEMO1234 Command
Action (Triggered by A/D3210 Bits)
SPI data in
T MB
Measure BAT1/4, BAT2/4, AUX1, AUX2, TEMP1, TEMP2 with 12-bit resolution and 3.5µs conversion rate
0x0040 0x2f01

0x8005 0x0000

0x8006 0x0000

0x8007 0x0000

0x8008 0x0000

0x8009 0x0000

0x800a 0x0000
T W AC 2f01
Trigger ADC scan of BAT1-2, AUX1-2, TEMP1-2;
ADC control word 0x2f01 means:
ADC_control_wr_demand_scan
ADC_control_ AD1011 /* measure AUX1 etc. */
ADC_control_RES11 /* 12-bit resolution */
ADC_control_AVG00 /* no averaging */
ADC_control_CNR00 /* conversion rate 3.5µs */
ADC_control_RFV /* RFV=1: VREF=2.5V */
0x0040 0x2f01
T R B1
Read BAT1 result BAT1 _code
0x8005 0x0000
T R B2
Read BAT2 result BAT2_code
0x8006 0x0000
T R A1
Read AUX1 result AUX1 _code
0x8007 0x0000
T R A2
Read AUX2 result AUX2 _code
0x8008 0x0000
T R T1
Read TEMP1 result TEMP1 _code
0x8009 0x0000
T R T2
Read TEMP2 result TEMP2 _code
0x800a 0x0000

3) 触摸屏实例

下面的例子解释了怎样使用DEMO1234.EXE程序来获得触摸屏数据。

3.1) 低成本商用触摸屏

在互联网上搜索"PDA Digitizer/Glasstop",寻找合适的替代触摸屏。高清触摸屏玻璃的价格范围在50美元至10美元之间,价格取决于型号以及玻璃是否全部贴在显示屏上。

3.2) 连接触摸屏和评估板

MAX1234评估板提供突出插头H5/H6来连接10mm柔性电缆或者长度更短的电缆。H6连接器的间距是0.5mm,比实际触摸屏柔性电缆间距更精细。把柔性电缆插入H6,上锁,选择位于四条柔性电缆中每一电缆中心位置的H5引脚。跳接器连接H5和标有U1的X+、Y+、X-以及Y-测试点。

3.3) 检验触摸屏的连接

第一次连接触摸屏时,通过下面的步骤来验证X和Y连接是否正确。可以有几个触摸屏交叉连接,但大部分不会正常工作。在这些例子中,我们假设X- = left,X+ = right,Y- = top,Y+ = bottom。

表10. 触摸屏物理连接验证命令序列
DEMO1234 Command
Action
SPI data in
Verification
  Connect DVM to X+/GND    
T MD
No measurement; drive Y+,Y-
0x0040 0x3701
Touch top left X+ = approx. Y-
Touch top right X+ = approx. Y-
Touch bottom left X+ = approx. Y+
Touch bottom right X+ = approx. Y+
Connect DVM to Y+/GND
T ME
No measurement; drive X+,X-
0x0040 0x3b01
Touch top left Y+ = approx. X-
Touch top right Y+ = approx. X+
Touch bottom left Y+ = approx. X-
Touch bottom right Y+ = approx. X+

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]  下一页


Tag:控制技术计算机控制技术,工厂电气控制技术控制技术