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

MAX1233/MAX1234触摸屏控制器入门

时间:03-17 来源:互联网 点击:
        1. T R GC
          Test Read GPIO_control register
          0x804f 0x0000
          T R GD
          Test Read GPIO_data register
          0x800f 0x0000
          T R GP
          Test Read GPIO_pullup register
          0x804e 0x0000
          T R K1
          Test Read KPDATA1 register
          0x8010 0x0000
          T R K2
          Test Read KPDATA2 register
          0x8011 0x0000
          T R KB
          Test Read KPD register
          0x8004 0x0000
          T R KC
          Test Read KEY_control register
          0x8041 0x0000
          T R KK
          Test Read KPCOLMASK register
          0x8051 0x0000
          T R KM
          Test Read KPKEYMASK register
          0x8050 0x0000
          T R T1
          Test Read TEMP1 register
          0x8009 0x0000
          T R T2
          Test Read TEMP2 register
          0x800a 0x0000

          表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 statusN/A
          I C 0 3
          Enable KEYIRQ-bar falling-edge trigger pulse accumulatorN/A
          I C 0 1
          Enable KEYIRQ-bar rising-edge trigger pulse accumulatorN/A
          I C 0 0
          Disable KEYIRQ-bar pulse accumulatorN/A
          I R 0
          Read the number of times KEYIRQ-bar has pulsed lowN/A
          I 0 0
          Clear the KEYIRQ-bar pulse accumulatorN/A
          P R 6
          Read PENIRQ-bar pin statusN/A
          I C 1 3
          Enable PENIRQ-bar falling-edge trigger pulse accumulatorN/A
          I C 1 1
          Enable PENIRQ-bar rising-edge trigger pulse accumulatorN/A
          I C 1 0
          Disable PENIRQ-bar pulse accumulatorN/A
          I R 1
          Read the number of times PENIRQ-bar has pulsed lowN/A
          I 0 1
          Clear the PENIRQ-bar pulse accumulatorN/A
          P R 7
          Read BUSY-bar pin statusN/A

          6.3) 加入到更新后的MINIQUSB+固件中的命令

          表24. 更新后MINIQUSB+固件01.05.40支持的SPI命令
          DEMO1234 Command
          ActionCPOLCPHACS-Bar ControlAF Length
          S C L0
          Configure SPI for CPOL=00GPIO-K91 byte
          S C L1
          Configure SPI for CPOL=11GPIO-K91 byte
          S C A0
          Configure SPI for CPHA=00GPIO-K91 byte
          S C A1
          Configure SPI for CPHA=11GPIO-K91 byte
          S C C0
          Configure SPI for 8-bitGPIO-K91 byte
          S C C1
          Configure SPI for 8-bit auto-CS-barAutomatic1 byte
          S C C2
          Configure SPI for 16-bit auto-CS-barAutomatic2 bytes
          S C C3
          Configure SPI for 24-bit auto-CS-barAutomatic3 bytes
          S C C4
          Configure SPI for 32-bit auto-CS-barAutomatic4 bytes
          $ 2 AE 00
          Configure SPI for 8-bit00GPIO-K91 byte
          $ 2 AE 01
          Configure SPI for 8-bit01GPIO-K91 byte
          $ 2 AE 02
          Configure SPI for 8-bit10GPIO-K91 byte
          $ 2 AE 03
          Configure SPI for 8-bit11GPIO-K91 byte
          $ 2 AE 08
          Configure SPI for 8-bit auto-CS-bar00Automatic1 byte
          $ 2 AE 09
          Configure SPI for 8-bit auto-CS-bar01Automatic1 byte
          $ 2 AE 0A
          Configure SPI for 8-bit auto-CS-bar10Automatic1 byte
          $ 2 AE 0B
          Configure SPI for 8-bit auto-CS-bar11Automatic1 byte
          $ 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
  • Copyright © 2017-2020 微波EDA网 版权所有

    网站地图

    Top