Flowcharts Of Operations In Each Mode - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

S3C2416X RISC MICROPROCESSOR

1.9 FLOWCHARTS OF OPERATIONS IN EACH MODE

The following steps must be executed before any IIC Tx/Rx operations.
1. Write own slave address on IICADD register, if needed.
2. Set IICCON register.
a) Enable interrupt
b) Define SCL period
3. Set IICSTAT to enable Serial Output
START
Master Tx mode has been
configured.
Write slave address to
IICDS.
Write 0xF0 (M/T Start) to
IICSTAT.
The data of the IICDS is
transmitted.
ACK period and then
interrupt is pending.
Stop?
N
Write new data transmitted
to IICDS.
Clear pending bit to
resume.
The data of the IICDS is
shifted to SDA.
Figure 17-6. Operations for Master/Transmitter Mode
Y
Write 0xD0 (M/T Stop) to
IICSTAT.
Clear pending bit .
Wait until the stop
condition takes effect.
END
IIC-BUS INTERFACE
17-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents