Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I2C-Address: 0x10 (7bit)

Reg.

Name

Access

Description

Default-Value

0x01

REG_ID

read

ID-Register

0x61

0x02

REG_CONTROL

write

Code Block
 0x01  Reset and boot from fuse (eMMC/internal uSD) (BOOT_MODE[1:0] = 0 0)
 0x02  Reset and boot serial downloader (USB) (BOOT_MODE[1:0] = 0 1)
 0x03  Reset and boot from USDHC3 (BOOT_MODE[1:0] = 1 0)
 0x04  Reset and boot from USDHC2 (BOOT_MODE[1:0] = 1 1)

-

0x04

REG_PIN_CONFIG

write

Code Block
 <SODIMM-Pin> <Parameters>
 Parameter for GPIO (Alt1):
    1: Input
   20: Output, init low level
   21: Output, init high level

-

0x05

REG_PIN_SET

write

Code Block
 <SODIMM-Pin> <level>

-

0x06

REG_PIN_GET

Code Block
 write 
 read
Code Block
 <SODIMM-Pin>
 Level of pin.

-

0x10

ADC_CONFIG

write

Code Block
  <config>
  0x.3   Resolution:
         0: 8 bit
         1: 10 bit
         2: 12 bit
         3: 16 bit

2

0x11

ADC

Code Block
 write 
 read
Code Block
 <SODIMM Pin>
 0: Idle, 1: Busy, 0xFF: Failed, <SODIMM Pin>: Done

-

0x12

ADC_LSB

read

[7:0] of value

-

0x13

ADC_LSB

read

[15:8] of value

-

0x20

TOUCH_CONFIG

write

Code Block
 <config>
 0x3f   PENDOWN trigger level 0..63
 0x40   Enable Z measurement
 0x80   Enable Touch

-

0x21

TOUCH_WAITTIME

write

<mS> Time for voltages to settle

2

0x22

TOUCH_XSCALE_LSB

Code Block
 write
 read
Code Block
 [7:0] of value to scale to (typ. x-screen-size).
 [7:0] of scaled x value.

(800)

0x23

TOUCH_XSCALE_MSB

Code Block
 write
 read
Code Block
 [15:8] of value to scale to (typ. x-screen-size).
 [15:8] of scaled x value.

(800)

0x24

TOUCH_YSCALE_LSB

Code Block
 write
 read
Code Block
 [7:0] of value to scale to (typ. y-screen-size).
 [7:0] of scaled y value.

(480)

0x25

TOUCH_YSCALE_MSB

Code Block
 write
 read
Code Block
 [15:8] of value to scale to (typ. y-screen-size).
 [15:8] of scaled y value.

(480)

0x26

TOUCH_XMIN_LSB

Code Block
 write
 read
Code Block
 [7:0] min raw x value for scaled x=0.
 [7:0] raw x value.

-

0x27

TOUCH_XMIN_MSB

Code Block
 write
 read
Code Block
 [15:8] min raw x value for scaled x=0.
 [15:8] raw x value.

-

0x28

TOUCH_YMIN_LSB

Code Block
 write
 read
Code Block
 [7:0] min raw y value for scaled y=0.
 [7:0] raw y value.

-

0x29

TOUCH_YMIN_MSB

Code Block
 write
 read
Code Block
 [15:8] min raw y value for scaled y=0.
 [15:8] raw y value.

-

0x2A

TOUCH_XMAX_Z_LSB

Code Block
 write
 read
Code Block
 [7:0] max raw x value for scaled x=screen-size.
 [7:0] raw z value.

-

0x2B

TOUCH_XMAX_Z_MSB

Code Block
 write
 read
Code Block
 [15:8] max raw x value for scaled x=screen-size.
 [15:8] raw z value.

-

0x2C

TOUCH_YMAX_LSB

Code Block
 write
Code Block
 [7:0] min raw y value for scaled y=screen-size.

-

0x2D

TOUCH_YMAX_MSB

Code Block
 write
 read
Code Block
 [15:8] min raw y value for scaled y=screen-size.

-

0x2E

TOUCH_AVERAGE

write

Number of samples to get for each position-measurement

20

0xF0 - 0xFF

VERSION

read

Zero terminated version string

...