Samsung S3C2451X User Manual page 417

Risc microprocessor
Table of Contents

Advertisement

S3C2451X RISC MICROPROCESSOR
IIC-BUS INTERFACE SPECIAL REGISTERS
MULTI-MASTER IIC-BUS CONTROL (IICCON) REGISTER
Register
IICCON0
0x54000000
IICCON1
0x54000100
IICCON0
Bit
IICCON1
Acknowledge
[7]
(1)
generation
Tx clock source
[6]
selection
Tx/Rx Interrupt
[5]
(5)
Interrupt pending
[4]
(2) (3)
flag
Transmit clock
[3:0]
(4)
value
NOTES:
1.
Interfacing with EEPROM, the ack generation may be disabled before reading the last data in order to generate the
STOP condition in Rx mode.
2.
An IIC-bus interrupt occurs 1) when a 1-byte transmits or receives operation is completed, 2) when a general call or a
slave
address match occurs, or 3) if bus arbitration fails.
3.
To adjust the setup time of SDA before SCL rising edge, IICDS has to be written before clearing the IIC interrupt
pending bit.
4.
IICCLK is determined by IICCON[6].
Tx clock can vary by SCL transition time.
When IICCON[6]=0, IICCON[3:0]=0x0 or 0x1 is not available.
5.
If the IICCON[5]=0, IICCON[4] does not operate correctly.
So, It is recommended that you should set IICCON[5]=1, although you does not use the IIC interrupt.
Address
R/W
R/W
IIC0-Bus control register
R/W
IIC1-Bus control register
IIC-bus acknowledge enable bit.
0: Disable
1: Enable
In Tx mode, the IICSDA is free in the ack time.
In Rx mode, the IICSDA is L in the ack time.
Source clock of IIC-bus transmit clock prescaler selection bit.
0: IICCLK = PCLK /16
1: IICCLK = PCLK /512
IIC-Bus Tx/Rx interrupt enable/disable bit.
0: Disable,
1: Enable
IIC-bus Tx/Rx interrupt pending flag. This bit cannot be written to 1.
When this bit is read as 1, the IICSCL is tied to L and the IIC is
stopped. To resume the operation, clear this bit as 0.
0: 1) No interrupt pending (when read).
2) Clear pending condition &
Resume the operation (when write).
1: 1) Interrupt is pending (when read)
2) N/A (when write)
IIC-Bus transmit clock prescaler.
IIC-Bus transmit clock frequency is determined by this 4-bit
prescaler value, according to the following formula:
Tx clock = IICCLK/(IICCON[3:0]+1).
Preliminary product information describe products that are in development,
for which full characterization data and associated errata are not yet available.
Specifications and information herein are subject to change without notice.
Description
Description
IIC-BUS INTERFACE
Reset Value
0x0X
0x0X
Initial State
0
0
0
0
Undefined
18-11

Advertisement

Chapters

Table of Contents
loading

Table of Contents