Address Data Communication; Example Of Master Transmit - Renesas M16C/29 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

16.13 Address Data Communication

16.13.1 Example of Master Transmit

An example of master transmit in standard clock mode, at the S
mode is shown below.
1)Set the slave address in the upper 7-bit of I
2)Set ACK return mode and the SCL = 100 kHz by setting "00
"000
" in the ICK4 to ICK2 bits of the I
2
register (S20) respectively. (f
3)Set "00
" in the I
16
4)Set a communication enable status by setting "08
5)Confirm the bus free condition by the BB flag of the I
6)Set "E0
" in the I
16
7 )Set the destination address data for transmit in high-order 7 bit in the I
set "0" in the least significant bit. And then a start condition is generated. At this time, S
and an ACK clock are automatically generated.
8)Set transmit data in the I
are automaticall generated.
9)When transmitting more than 1-byte control data, repeat step 7).
10)Set "C0
" in the I
16
receive side or the transmit end.
11)A stop condition is generated when writing the dummy data to the I
Figure 16.20 (1) shows the master transmit format.
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
2
C0 control register 2(S4D0) and "85
=8MHz)
1
2
C0 status register (S10) so that transmit/receive mode is initialized.
2
C0 status register (S10) to set the start condition standby.
2
C0 data shift register (S00). At this time, an S
2
C0 status register (S10) to set a stop condition if ACK is not returned from the slave
page 274 of 402
16. MULTI-MASTER I
frequency of 100 kHz and in ACK return
CL
2
C0 address registers (S0D0).
" in the I
16
2
" in the I
C0 control register 0 (S1D0).
16
2
C0 status register (S10).
2
C bus INTERFACE
2
C0 control register 1(S3D0),
2
" in the I
C0 clock control
16
2
C0 data shift register (S00) and
for 1 byte
CL
and an ACK clock
CL
2
C0 data shift register (S00).

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents