Versions Compared

Key

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

...

I2C-Address: 0x40 (7-bit)

Register

Name

Access

Description

Default Value

0x01

REG_ID

read

ID-Register

0xA5

0x02

REG_CONTROL

write

Restart and boot with BOOT_MODE=
0x00 - Internal Fuses
0x01 - Serial Download
0x02 - uSDHC1 8-bit eMMC 5.1
0x03 - uSDHC2 4-bit SD 3.0

0x04 - Power Off

-

0x03

REG_CONFIG

-

-

-

0x04

REG_PIN_CONFIG

write

<Pin> <Parameter>
Parameter for GPIO:

1: Input, NoPull
10: Input, PullDown
11: Input, PullUp

20: Output PushPull, init low level
21: Output PushPull, init high level
40: Output, OpenDrain, init low level
41: Output, OpenDrain, init high level

-

0x05

REG_PIN_SET

write

<Pin> <Level>

-

0x06

REG_PIN_GET

write
read

<Pin>
Level of pin.

-

0x07

REG_PWM_CONFIG

write

<Pin> <Duty Cycle [%]>

-

0x08

REG_SECO_CODE

read

Read SECO_CODE

0x40

0x09

REG_INT_STATUS

read

Read INT_STATUS register, clear it and reset EC_IRQ#_OD to “1”

0x01: RTC_INT#
0x02: SMB_ALERT#
0x04: CPU_IRQ#

0x00

0x0A

REG_INT_ENABLE

write

Enable or disable interrupts.

0x01: RTC_INT#
0x02: SMB_ALERT#
0x04: CPU_IRQ#

-

0x0B

REG_ALTERNATE_
FUNCTION

write

Set Pin to specific alternate function.
For available alternate functions for pins refer to the list of configurable GPIO pins below.

<Pin> <Alternate Function>

Alternate Functions:
0x00: GPIO (Default: Input, NoPull)
0x01: PWM (Default: disabled)

-

0xF0

REG_VERSION

read

Read firmware version

0x01

...