Chapter 10. I
2
C Interface
10-1
Chapter 10
I
2
C Interface
This chapter describes the I
2
C (inter-integrated circuit) interface on the MPC8240.
10.1 I
2
C Interface Overview
The I
2
C interface is a two-wire, bidirectional serial bus developed by Philips that provides
a simple, efficient way to exchange data between integrated circuit (IC) devices. The I
2
C
interface allows the MPC8240 to exchange data with other I
2
C devices such as
microcontrollers, EEPROMs, real-time clock devices, A/D converters, and LCDs. The
two-wire bus—serial data and serial clock—minimizes device interconnections. The
synchronous, multimaster bus of the I
2
C allows the connection of additional devices to the
bus for expansion and system development.
The I
2
C interface is a true multimaster bus that includes collision detection and arbitration
that prevent data corruption if two or more masters attempt to control the bus
simultaneously. This feature allows for complex applications with multiprocessor control.
10.1.1 I
2
C Unit Features
The I
2
C unit on the MPC8240 consists of a transmitter/receiver unit, a clocking unit, and a
control unit. Some of the features of the I
2
C unit are as follows:
•
Two-wire interface
•
Multimaster support
•
Master or slave I
2
C mode support
•
Software-programmable for one of 64 different serial clock frequencies
•
Software-selectable acknowledge bit
•
Interrupt-driven, byte-to-byte data transfer
•
Arbitration-lost interrupt with automatic mode switching from master to slave
•
Calling address identification interrupt
•
START and STOP condition generation/detection
•
Repeated START condition generation
•
Acknowledge bit generation/detection
Summary of Contents for MPC8240
Page 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Page 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Page 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Page 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Page 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Page 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Page 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Page 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Page 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Page 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Page 516: ...16 14 Watchpoint Trigger Applications ...
Page 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Page 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Page 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...