User manual
...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 434
www.energymicro.com
16.4 Register Map
The offset register address is relative to the registers base address.
Offset Name Type Description
0x000 I2Cn_CTRL RW Control Register
0x004 I2Cn_CMD W1 Command Register
0x008 I2Cn_STATE R State Register
0x00C I2Cn_STATUS R Status Register
0x010 I2Cn_CLKDIV RW Clock Division Register
0x014 I2Cn_SADDR RW Slave Address Register
0x018 I2Cn_SADDRMASK RW Slave Address Mask Register
0x01C I2Cn_RXDATA R Receive Buffer Data Register
0x020 I2Cn_RXDATAP R Receive Buffer Data Peek Register
0x024 I2Cn_TXDATA W Transmit Buffer Data Register
0x028 I2Cn_IF R Interrupt Flag Register
0x02C I2Cn_IFS W1 Interrupt Flag Set Register
0x030 I2Cn_IFC W1 Interrupt Flag Clear Register
0x034 I2Cn_IEN RW Interrupt Enable Register
0x038 I2Cn_ROUTE RW I/O Routing Register
16.5 Register Description
16.5.1 I2Cn_CTRL - Control Register
Offset Bit Position
0x000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0x0
0
0x0
0x0
0
0
0
0
0
0
0
Access
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Name
CLTO
GIBITO
BITO
CLHR
GCAMEN
ARBDIS
AUTOSN
AUTOSE
AUTOACK
SLAVE
EN
Bit Name Reset Access Description
31:19 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
18:16 CLTO 0x0 RW Clock Low Timeout
Use to generate a timeout when CLK has been low for the given amount of time. Wraps around and continues counting when the
timeout is reached.
Value Mode Description
0 OFF Timeout disabled
1 40PCC Timeout after 40 prescaled clock cycles. In standard mode at 100 kHz, this results in
a 50us timeout.
2 80PCC Timeout after 80 prescaled clock cycles. In standard mode at 100 kHz, this results in
a 100us timeout.
3 160PCC Timeout after 160 prescaled clock cycles. In standard mode at 100 kHz, this results
in a 200us timeout.
4 320PPC Timeout after 320 prescaled clock cycles. In standard mode at 100 kHz, this results
in a 400us timeout.
5 1024PPC Timeout after 1024 prescaled clock cycles. In standard mode at 100 kHz, this results
in a 1280us timeout.
15 GIBITO 0 RW Go Idle on Bus Idle Timeout