MAX1233/MAX1234触摸屏控制器入门
[09-13 17:05:19] 来源:http://www.88dzw.com 控制技术 阅读:8648次
文章摘要:3.5) 检测触摸屏操作:自动扫描在检测触摸屏操作,配置MAX1234,自动数字化触摸屏的接触位置时,写入寄存器0x40 (ADC控制),其PENSTS=1,ADSTS=0 (请参考MAX1233/MAX1234数据资料的表6)。第一次接触屏幕时,/PENIRQ信号暂时变为低电平,并在读取X寄存器之前不会变化。表13. 触摸屏检测命令序列:自动扫描 DEMO1234 CommandActionSPI data inVerificationOptional: connect oscilloscope to PENIRQ-barI C 1 3Configure PENIRQ-bar pulse a
MAX1233/MAX1234触摸屏控制器入门,标签:计算机控制技术,工厂电气控制技术,http://www.88dzw.com3.5) 检测触摸屏操作:自动扫描
在检测触摸屏操作,配置MAX1234,自动数字化触摸屏的接触位置时,写入寄存器0x40 (ADC控制),其PENSTS=1,ADSTS=0 (请参考MAX1233/MAX1234数据资料的表6)。第一次接触屏幕时,/PENIRQ信号暂时变为低电平,并在读取X寄存器之前不会变化。表13. 触摸屏检测命令序列:自动扫描
DEMO1234 Command |
Action | SPI data in |
Verification |
Optional: connect oscilloscope to PENIRQ-bar | |||
I C 1 3 |
Configure PENIRQ-bar pulse accumulator: falling-edge trigger | ||
I 0 1 |
Reset the pulse accumulator | ||
I R 1 |
Read the number of times PENIRQ-bar has pulsed low | count = 0 | |
T W AC 8bff |
Wait for touch, then scan X,Y,Z1,Z2 | 0x0040 0x8bff |
|
Touch the touch screen | PENIRQ pulse | ||
I R 1 |
Read the number of times PENIRQ-bar has pulsed low | count has increased | |
T R P |
Read X,Y,Z1,Z2 conversion results | 0x8000 0x0000 0x8001 0x0000 0x8002 0x0000 0x8003 0x0000 |
|
Touch the touch screen | PENIRQ pulse | ||
I R 1 |
Read the number of times PENIRQ-bar has pulsed low | count has increased | |
T R P |
Read X,Y,Z1,Z2 conversion results | 0x8000 0x0000 0x8001 0x0000 0x8002 0x0000 0x8003 0x0000 |
|
Touch the touch screen | PENIRQ pulse | ||
I R 1 |
Read the number of times PENIRQ-bar has pulsed low | count has increased | |
T R P |
Read X,Y,Z1,Z2 conversion results | 0x8000 0x0000 0x8001 0x0000 0x8002 0x0000 0x8003 0x0000 |
4) 键盘和通用输入/输出引脚
下面的例子介绍了怎样使用DEMO1234.EXE程序来扫描键盘,怎样使用GPIO键盘扫描引脚。4.1) 配置键盘和GPIO引脚
GPIO控制寄存器将每个C1–C4和R1–R4引脚分别配置为输入、输出或者是键盘的一部分(请参考MAX1233/MAX1234数据资料的表26和表27)。此外,写入GPIO上拉禁止寄存器,将输出引脚配置为开漏输出。表14. 键盘和GPIO配置实例
DEMO1234 Command |
Action | SPI data in |
T W GC FFFF |
Keypad: none; GPIO outputs: C4,C3,C2,C1,R4,R3,R2,R1; GPIO inputs: none |
0x004f 0xffff |
T W GC FF00 |
Keypad: none; GPIO outputs: none; GPIO inputs: C4,C3,C2,C1,R4,R3,R2,R1 |
0x004f 0xff00 |
T W GC 0000 |
Keypad: (C4,C3,C2,C1) x (R4,R3,R2,R1); GPIO outputs: none; GPIO inputs: none |
0x004f 0x0000 |
T W GC C8C0 |
Keypad: (C2,C1) x (R3,R2,R1); GPIO outputs: C4,C3; GPIO input: R4 |
0x004f 0xc8c0 |
T W GP 4000 |
GPIO pullup disable: C3 | 0x004e 0x4000 |
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] 下一页
Tag:控制技术,计算机控制技术,工厂电气控制技术,控制技术
《MAX1233/MAX1234触摸屏控制器入门》相关文章
- › MAX139构成的数字电压表电路图
- › MAX1916输出并联电路图
- › MAX1458的电桥激励电路图
- › MAX1595驱动白光LED电路图
- › MAX1912驱动白光LED电路图
- › MAX1577V/MAX1577Z驱动白光LED电路图
- 在百度中搜索相关文章:MAX1233/MAX1234触摸屏控制器入门
- 在谷歌中搜索相关文章:MAX1233/MAX1234触摸屏控制器入门
- 在soso中搜索相关文章:MAX1233/MAX1234触摸屏控制器入门
- 在搜狗中搜索相关文章:MAX1233/MAX1234触摸屏控制器入门
分类导航
最新更新