Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
262
0xA4
R/W
I
2
C DMA Mode Transfer Data Length Register
0xA8
R/W
I
2
C DMA Mode Register
0xAC
R/W
I
2
C Sleep Mode Register
0xE4
R
Clear Slave Mode Address Match Interrupt Register
0xE8
R
Clear DMA DONE Interrupt Register
0xEC
R/W
I
2
C Filter Register
0xFC
R
I
2
C Component Version Register
13.3.2
Registers and Field Descriptions
The following sections describe the registers listed in Table 13-2.
13.3.2.1
IC_CON
Name:
I
2
C Control Register
Size:
32 bits
Address offset
: 0x00
Read/write access
: read/write
This register can be written only when the I
2
C is disabled, which corresponds to the IC_ENABLE register being set to 0. Writes at other times
have no effect.
31
30
…
8
7
6
5
4
3
2
1
0
RSVD
IC_SLAVE_DISABLE
IC_RESTART_EN
RSVD
IC_10BITADDR_SLAVE
SPEED
MASTER_MODE
R/W
R/W
R/W
R/W
R/W
Bit
Name
Access
Reset
Description
31:7
RSVD
N/A
-
Reserved
6
IC_SLAVE_DISABLE
R/W
0x0
This bit controls whether I
2
C has its slave disabled, which means once the present
signal is applied, then this bit takes on the value of the configuration parameter
IC_SLAVE_DISABLE. You have the choice of having the slave enabled or disabled
after reset is applied, which means software does not have to configure the slave.
By default, the slave is always enabled (in reset state as well).
If you need to disable it after reset, set this bit to 1. If this bit is set to 1 (slave is
disabled), I
2
C functions only as a master and does not perform any action that
requires a slave.
0: Slave is enabled
1: Slave is disabled
Note: Software should ensure that if this bit is written with ‘0,’ then bit 0 should
also be written with a ‘0’.
5
IC_RESTART_EN
R/W
0x0
Determines whether RESTART conditions may be sent when acting as a master.
Some older slaves do not support handling RESTART conditions; however,
RESTART conditions are used in several I
2
C operations.
0: Disable
1: Enable
When the RESTART is disabled, the I
2
C master is incapable of performing the
following functions:
Sending a START BYTE
Performing any high-speed mode operation
Performing direction changes in combined format mode
Performing a read operation with a 10-bit address
By replacing RESTART condition followed by a STOP and a subsequent START
condition, split operations are broken down into multiple I
2
C transfers. If the
above operations are performed, it will result in setting bit 6 (
TX_ABRT
) of the
register.
4
RSVD
N/A
-
Reserved
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03