
Serial Interface
13-20
■
I2C mode transmission/reception
The transmission/reception procedure in I2C mode is described below.
(Refer to Fig. 13-2-15.)
• Make the initial settings as described below.
(1) I/O port setting
Set the SBT and SBO pins as general-purpose input ports.
For details on the settings, refer to the chapter on I/O ports.
(2) Transmission/reception mode setting (SC0CTR register)
Be certain to set the flags listed below to the specified values.
SBT0 pin output control flag (SC0TOE):
0
Protocol selection flags (SC0MD1,0): 10 (I2C mode)
I2C mode selection flag (SC0IIC):
0
Break transmission flag (SC0BKE):
0
Reception operation enable flag (SC0RXE):
0
Transmission operation enable flag (SC0TXE):
0
Flags other than those listed above may be set as desired.
However, the clock source must be selected from among the following four:
1/8 IOCLK
1/32 IOCLK
1/8 timer 3 underflow
1/8 timer 9 underflow
Set the parity bits each transmission/reception.
(3) I/O port setting
Set the I/O ports to SBT and SBO .
Leave the I/O port input/output control registers set to "input".
(4) Interrupt mode register setting (SC0ICR register)
Set the interrupt sources as "transmission end".
(5) Transmission/reception enable
Enable both transmission and reception operations.
• Send the start sequence (A) according to the procedure described below:
(1) Sending start sequence
When the I2C mode selection flag (SC0IIC) is changed from "0" to "1", a low signal is output on the SBO pin
as the start sequence.
(2) Confirmation of sending start sequence
If the start sequence was generated normally, the I2C start sequence detection flag (SC0STF) changes to "1".
In this case, even if there are simultaneous starts, "arbitration lost" is not detected.
Summary of Contents for MN103001G/F01K
Page 1: ...MICROCOMPUTER MN1030 MN103001G F01K LSI User s Manual Pub No 23101 050E ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 9: ...Table of Contents List of Figures and Tables 0 ...
Page 26: ...xviii ...
Page 27: ...1 0 1 General Specifications ...
Page 35: ...2 CPU 2 ...
Page 57: ...3 Extension Instruction Specifications 3 ...
Page 96: ...Extension Instruction Specifications 3 40 ...
Page 97: ...4 Memory Modes 3 4 ...
Page 102: ...Memory Modes 4 6 ...
Page 103: ...5 Operating Mode 5 ...
Page 107: ...6 Clock Generator 6 13 ...
Page 111: ...7 Internal Memory 7 ...
Page 114: ...Internal Memory 7 4 ...
Page 115: ...8 Bus Controller BC 8 ...
Page 189: ...9 Interrupt Controller 9 ...
Page 220: ...Interrupt Controller 9 32 ...
Page 221: ...10 8 bit Timers 9 10 ...
Page 254: ...8 bit Timers 10 34 ...
Page 255: ...11 16 bit Timers 11 ...
Page 292: ...16 bit Timers 11 38 ...
Page 293: ...12 Watchdog Timer 11 12 ...
Page 302: ...Watchdog Timer 12 10 ...
Page 303: ...13 Serial Interface 13 ...
Page 354: ...Serial Interface 13 52 ...
Page 355: ...14 A D Converter 14 ...
Page 367: ...15 I O Ports 15 ...
Page 431: ...16 Internal Flash Memory 16 ...
Page 439: ...17 17 Ordering Mask ROM ...
Page 442: ...Ordering Mask ROM 17 4 ...
Page 443: ...Appendix ...