新聞中心

EEPW首頁 > 模擬技術(shù) > 設(shè)計應(yīng)用 > MAX1233/MAX1234觸摸屏控制器入門

MAX1233/MAX1234觸摸屏控制器入門

作者: 時間:2012-03-17 來源:網(wǎng)絡(luò) 收藏
$ 2 AE 18
Configure SPI for 16-bit auto-CS-bar00Automatic2 bytes
$ 2 AE 19
Configure SPI for 16-bit auto-CS-bar01Automatic2 bytes
$ 2 AE 1A
Configure SPI for 16-bit auto-CS-bar10Automatic2 bytes
$ 2 AE 1B
Configure SPI for 16-bit auto-CS-bar11Automatic2 bytes
$ 2 AE 28
Configure SPI for 24-bit auto-CS-bar00Automatic3 bytes
$ 2 AE 29
Configure SPI for 24-bit auto-CS-bar01Automatic3 bytes
$ 2 AE 2A
Configure SPI for 24-bit auto-CS-bar10Automatic3 bytes
$ 2 AE 2B
Configure SPI for 24-bit auto-CS-bar11Automatic3 bytes
$ 2 AE 38
Configure SPI for 32-bit auto-CS-bar00Automatic4 bytes
$ 2 AE 39
Configure SPI for 32-bit auto-CS-bar01Automatic4 bytes
$ 2 AE 3A
Configure SPI for 32-bit auto-CS-bar10Automatic4 bytes
$ 2 AE 3B
Configure SPI for 32-bit auto-CS-bar11Automatic4 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
ActionIntGPIO 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 accumulatorINT0GPIO-K5
C3 01 00
I Q 1
Query configuration of pulse accumulatorINT1GPIO-K6
C3 01 01
I Q 2
Query configuration of pulse accumulatorINT2GPIO-K7
C3 01 02
I Q 3
Query configuration of pulse accumulatorINT3GPIO-K8
C3 01 03
I C 0 0
Configure pulse accumulator: disable interruptINT0GPIO-K5
C3 02 00 00
I C 1 0
Configure pulse accumulator: disable interruptINT1GPIO-K6
C3 02 01 00
I C 2 0
Configure pulse accumulator: disable interruptINT2GPIO-K7
C3 02 02 00
I C 3 0
Configure pulse accumulator: disable interruptINT3GPIO-K8
C3 02 03 00
I C 0 1
Configure pulse accumulator: rising-edge triggerINT0GPIO-K5
C3 02 00 01
I C 1 1
Configure pulse accumulator: rising-edge triggerINT1GPIO-K6
C3 02 01 01
I C 2 1
Configure pulse accumulator: rising-edge triggerINT2GPIO-K7
C3 02 02 01
I C 3 1
Configure pulse accumulator: rising-edge triggerINT3GPIO-K8
C3 02 03 01
I C 0 3
Configure pulse accumulator: falling-edge triggerINT0GPIO-K5
C3 02 00 03
I C 1 3
Configure pulse accumulator: falling-edge triggerINT1GPIO-K6
C3 02 01 03
I C 2 3
Configure pulse accumulator: falling-edge triggerINT2GPIO-K7
C3 02 02 03
I C 3 3
Configure pulse accumulator: falling-edge triggerINT3GPIO-K8
C3 02 03 03
I R 0
Read pulse accumulatorINT0GPIO-K5
C3 03 00
I R 1
Read pulse accumulatorINT1GPIO-K6
C3 03 01
I R 2
Read pulse accumulatorINT2GPIO-K7
C3 03 02
I R 3
Read pulse accumulatorINT3GPIO-K8
C3 03 03
I 0 0
Clear pulse accumulatorINT0GPIO-K5
C3 04 00
I 0 1
Clear pulse accumulatorINT1GPIO-K6
C3 04 01
I 0 2
Clear pulse accumulatorINT2GPIO-K7
C3 04 02
I 0 3
Clear pulse accumulatorINT3GPIO-K8
C3 04 03
I S 0 xx
Set pulse accumulator count xx = 0 to 255INT0GPIO-K5
C3 05 00 xx
I S 1 xx
Set pulse accumulator count xx = 0 to 255INT1GPIO-K6
C3 05 01 xx
I S 2 xx
Set pulse accumulator count xx = 0 to 255INT2GPIO-K7
C3 05 02 xx
I S 3 xx
Set pulse accumulator count xx = 0 to 255INT3GPIO-K8
C3 05 03 xx

7) 結(jié)論

這些實例簡要介紹了怎樣使用/的主要功能模塊,利用簡化的控制臺C++程序來測量并控制硬件。如果需要深入了解詳細信息,請參考/數(shù)據(jù)資料。

上一頁 1 2 3 4 5 6 7 下一頁

關(guān)鍵詞: MAX1233 MAX1234 觸摸屏 控制器

評論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉