MAX1233/MAX1234触摸屏控制器入门

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

文章摘要:表21. 写入寄存器助记符 DEMO1234 CommandMnemonicSPI data inT W AC hexValueTest Write ADC_control register0x0040 hexValueT W DC hexValueTest Write DAC_control register0x0042 hexValueT W DD hexValueTest Write DAC_data register0x000b hexValueT W GC hexValueTest Write GPIO_control register0x004f hexValueT W GD he

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

表21. 写入寄存器助记符
DEMO1234 Command
Mnemonic
SPI data in
T W AC hexValue
Test Write ADC_control register
0x0040 hexValue
T W DC hexValue
Test Write DAC_control register
0x0042 hexValue
T W DD hexValue
Test Write DAC_data register
0x000b hexValue
T W GC hexValue
Test Write GPIO_control register
0x004f hexValue
T W GD hexValue
Test Write GPIO_data register
0x000f hexValue
T W GP hexValue
Test Write GPIO_pullup register
0x004e hexValue
T W KC hexValue
Test Write KEY_control register
0x0041 hexValue
T W KK hexValue
Test Write KPCOLMASK register
0x0051 hexValue
T W KM hexValue
Test Write KPKEYMASK register
0x0050 hexValue

表22. 触摸屏测量命令序列
DEMO1234 Command
Action (Triggered by A/D3210 Bits)
SPI data in Sequence
T M1
Measure X,Y
0x0040 0x0701
0x8000 0x0000
0x8001 0x0000
T M2
Measure X,Y,Z1,Z2
0x0040 0x0b01
0x8000 0x0000
0x8001 0x0000
0x8002 0x0000
0x8003 0x0000
T M3
Measure X
0x0040 0x0f01
0x8000 0x0000
T M4
Measure Y
0x0040 0x1301
0x8001 0x0000
T M5
Measure Z1,Z2
0x0040 0x1701
0x8002 0x0000
0x8003 0x0000
T MD
No measurement; drive Y+,Y-
0x0040 0x3701
T ME
No measurement; drive X+,X-
0x0040 0x3b01
T MF
No measurement; drive Y+,X-
0x0040 0x3f01

6.2) 中断和状态引脚命令

表23. 引脚状态读取命令
DEMO1234 Command
Action
SPI data in
P R 5
Read KEYIRQ-bar pin status N/A
I C 0 3
Enable KEYIRQ-bar falling-edge trigger pulse accumulator N/A
I C 0 1
Enable KEYIRQ-bar rising-edge trigger pulse accumulator N/A
I C 0 0
Disable KEYIRQ-bar pulse accumulator N/A
I R 0
Read the number of times KEYIRQ-bar has pulsed low N/A
I 0 0
Clear the KEYIRQ-bar pulse accumulator N/A
P R 6
Read PENIRQ-bar pin status N/A
I C 1 3
Enable PENIRQ-bar falling-edge trigger pulse accumulator N/A
I C 1 1
Enable PENIRQ-bar rising-edge trigger pulse accumulator N/A
I C 1 0
Disable PENIRQ-bar pulse accumulator N/A
I R 1
Read the number of times PENIRQ-bar has pulsed low N/A
I 0 1
Clear the PENIRQ-bar pulse accumulator N/A
P R 7
Read BUSY-bar pin status N/A

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


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