
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.
Содержание MN103001G/F01K
Страница 1: ...MICROCOMPUTER MN1030 MN103001G F01K LSI User s Manual Pub No 23101 050E ...
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 7: ...14 A D Converter 15 I O Ports 16 Internal Flash Memory 17 Ordering Mask ROM Appendix 14 15 16 17 ...
Страница 8: ......
Страница 9: ...Table of Contents List of Figures and Tables 0 ...
Страница 26: ...xviii ...
Страница 27: ...1 0 1 General Specifications ...
Страница 35: ...2 CPU 2 ...
Страница 57: ...3 Extension Instruction Specifications 3 ...
Страница 96: ...Extension Instruction Specifications 3 40 ...
Страница 97: ...4 Memory Modes 3 4 ...
Страница 102: ...Memory Modes 4 6 ...
Страница 103: ...5 Operating Mode 5 ...
Страница 107: ...6 Clock Generator 6 13 ...
Страница 111: ...7 Internal Memory 7 ...
Страница 114: ...Internal Memory 7 4 ...
Страница 115: ...8 Bus Controller BC 8 ...
Страница 189: ...9 Interrupt Controller 9 ...
Страница 220: ...Interrupt Controller 9 32 ...
Страница 221: ...10 8 bit Timers 9 10 ...
Страница 254: ...8 bit Timers 10 34 ...
Страница 255: ...11 16 bit Timers 11 ...
Страница 292: ...16 bit Timers 11 38 ...
Страница 293: ...12 Watchdog Timer 11 12 ...
Страница 302: ...Watchdog Timer 12 10 ...
Страница 303: ...13 Serial Interface 13 ...
Страница 354: ...Serial Interface 13 52 ...
Страница 355: ...14 A D Converter 14 ...
Страница 367: ...15 I O Ports 15 ...
Страница 431: ...16 Internal Flash Memory 16 ...
Страница 439: ...17 17 Ordering Mask ROM ...
Страница 442: ...Ordering Mask ROM 17 4 ...
Страница 443: ...Appendix ...