微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 模拟电路设计 > MAX1233/MAX1234触摸屏控制器入门

MAX1233/MAX1234触摸屏控制器入门

时间:03-17 来源:互联网 点击:
        1. $ 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 lowGPIO-K9
          $ 2 F9 1
          Drive CS-bar pin highGPIO-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) 结论

          这些实例简要介绍了怎样使用MAX1233/MAX1234的主要功能模块,利用简化的控制台C++程序来测量并控制硬件。如果需要深入了解详细信息,请参考MAX1233/MAX1234数据资料。
  • Copyright © 2017-2020 微波EDA网 版权所有

    网站地图

    Top