MAX1233/MAX1234触摸屏控制器入门
时间:03-17
来源:互联网
点击:
$ 2 AE 28
Configure SPI for 24-bit auto-CS-bar 0 0 Automatic 3 bytes $ 2 AE 29
Configure SPI for 24-bit auto-CS-bar 0 1 Automatic 3 bytes $ 2 AE 2A
Configure SPI for 24-bit auto-CS-bar 1 0 Automatic 3 bytes $ 2 AE 2B
Configure SPI for 24-bit auto-CS-bar 1 1 Automatic 3 bytes $ 2 AE 38
Configure SPI for 32-bit auto-CS-bar 0 0 Automatic 4 bytes $ 2 AE 39
Configure SPI for 32-bit auto-CS-bar 0 1 Automatic 4 bytes $ 2 AE 3A
Configure SPI for 32-bit auto-CS-bar 1 0 Automatic 4 bytes $ 2 AE 3B
Configure SPI for 32-bit auto-CS-bar 1 1 Automatic 4 bytes $ 2 AF xx
Perform an 8-bit SPI transfer (CS-bar = GPIO or auto-CS-bar = 1-byte) — — — 1 byte $ 3 AF xx xx
Perform a 16-bit SPI transfer (requires auto-CS-bar = 2-byte mode) — — — 2 bytes $ 4 AF xx xx xx
Perform a 24-bit SPI transfer (requires auto-CS-bar = 3-byte mode) — — — 3 bytes $ 5 AF xx xx xx xx
Perform a 32-bit SPI transfer (requires auto-CS-bar = 4-byte mode) — — — 4 bytes $ 2 F9 0
Drive CS-bar pin low — — GPIO-K9 — $ 2 F9 1
Drive CS-bar pin high — — GPIO-K9 —
表25. 更新后MINIQUSB+固件01.05.41中的中断脉冲累加器命令DEMO1234 Command
Action Int GPIO Input Firmware Command
$ 2 C3 00
Query which of the C3 commands are supported; the return value is a 2-byte bitmap of commands C300 to C30F, msb first — — C3 00
I Q 0
Query configuration of pulse accumulator INT0 GPIO-K5 C3 01 00
I Q 1
Query configuration of pulse accumulator INT1 GPIO-K6 C3 01 01
I Q 2
Query configuration of pulse accumulator INT2 GPIO-K7 C3 01 02
I Q 3
Query configuration of pulse accumulator INT3 GPIO-K8 C3 01 03
I C 0 0
Configure pulse accumulator: disable interrupt INT0 GPIO-K5 C3 02 00 00
I C 1 0
Configure pulse accumulator: disable interrupt INT1 GPIO-K6 C3 02 01 00
I C 2 0
Configure pulse accumulator: disable interrupt INT2 GPIO-K7 C3 02 02 00
I C 3 0
Configure pulse accumulator: disable interrupt INT3 GPIO-K8 C3 02 03 00
I C 0 1
Configure pulse accumulator: rising-edge trigger INT0 GPIO-K5 C3 02 00 01
I C 1 1
Configure pulse accumulator: rising-edge trigger INT1 GPIO-K6 C3 02 01 01
I C 2 1
Configure pulse accumulator: rising-edge trigger INT2 GPIO-K7 C3 02 02 01
I C 3 1
Configure pulse accumulator: rising-edge trigger INT3 GPIO-K8 C3 02 03 01
I C 0 3
Configure pulse accumulator: falling-edge trigger INT0 GPIO-K5 C3 02 00 03
I C 1 3
Configure pulse accumulator: falling-edge trigger INT1 GPIO-K6 C3 02 01 03
I C 2 3
Configure pulse accumulator: falling-edge trigger INT2 GPIO-K7 C3 02 02 03
I C 3 3
Configure pulse accumulator: falling-edge trigger INT3 GPIO-K8 C3 02 03 03
I R 0
Read pulse accumulator INT0 GPIO-K5 C3 03 00
I R 1
Read pulse accumulator INT1 GPIO-K6 C3 03 01
I R 2
Read pulse accumulator INT2 GPIO-K7 C3 03 02
I R 3
Read pulse accumulator INT3 GPIO-K8 C3 03 03
I 0 0
Clear pulse accumulator INT0 GPIO-K5 C3 04 00
I 0 1
Clear pulse accumulator INT1 GPIO-K6 C3 04 01
I 0 2
Clear pulse accumulator INT2 GPIO-K7 C3 04 02
I 0 3
Clear pulse accumulator INT3 GPIO-K8 C3 04 03
I S 0 xx
Set pulse accumulator count xx = 0 to 255 INT0 GPIO-K5 C3 05 00 xx
I S 1 xx
Set pulse accumulator count xx = 0 to 255 INT1 GPIO-K6 C3 05 01 xx
I S 2 xx
Set pulse accumulator count xx = 0 to 255 INT2 GPIO-K7 C3 05 02 xx
I S 3 xx
Set pulse accumulator count xx = 0 to 255 INT3 GPIO-K8 C3 05 03 xx
7) 结论
这些实例简要介绍了怎样使用MAX1233/MAX1234的主要功能模块,利用简化的控制台C++程序来测量并控制硬件。如果需要深入了解详细信息,请参考MAX1233/MAX1234数据资料。
- 声学脉冲波辨识触摸屏控制技术(09-16)
- 电容式触摸屏系统解决方案(01-19)
- 触摸屏设计日益简化(03-03)
- 将系统的阻性触摸屏更新到多点触摸屏(10-22)
- 基于嵌入式技术的智能仪器触摸屏接口设计(03-02)
- 如何解决触摸屏的电磁干扰问题(03-01)