Apb I2c Interface
Apb I2c Interface
Vol.04, Issue.07,
July-2016,
Pages:0533-0535
www.ijvdcs.org
Design of an I2C Master Interfacing with APB Bus
PARIKI MANASA1, B. PADMINI2, S. NAGI REDDY3
1
PG Scholar, Dept of ECE, TKREC, Meerpet, Hyderabad, TS, India, E-mail: [email protected].
2
Assistant Professor, Dept of ECE, TKREC, Meerpet, Hyderabad, TS, India.
3
HOD, Dept of ECE, TKREC, Meerpet, Hyderabad, TS, India.
Abstract: All design units consist of smaller functional blocks called subsystem or module. For effective functioning of the system
these modules need to be in sync with each other and share resources. Problem starts when one module follows different protocol as
others and each module has its different bit rate or baud rate of data transfer which can be either asynchronous or synchronous. The
paper takes an example of I2C protocol and AMBA APB protocol to describe the architecture which defines how data are transferred
from one protocol to another. It exploits the flexible protocols of I2C to make it compatible with APB protocol. The proposed
architecture is a bridge between I2C Master and APB Salve. The data travels from a serial bus (I2C) to parallel bus (APB) to serial
(I2C) in sync with the respective domain clock. This forms a bidirectional interface between I2C supported module and APB
supported module.
A. I2C Protocol
I2C bus runs on simple master-slave relationship. All trans-
actions begin with detection of START condition and are
terminated by encountering STOP condition. As soon as start
condition arises bus is considered to be busy and it will re-main
in the same state till all requests for the bus have been granted.
For the read/write operation, first the slave’s address is sent
followed by the corresponding data, as shown in fig.1. ACK
signal is sent after successful transfer of each data byte. For
Fig.2. State diagram for write operation on APB.
interrupted transmission NACK signal is raised.
Alternatively, if another transfer is to be made then the bus
will move to SETUP. Address, write and select signals can
glitch during transition. Rest of the paper is divided in five
sections. Section II illustrates the motivation behind the work.
Section III is the core of the paper and gives details about
designed and hence implemented architecture which is
Fig.1. 12c Data Transfer protocol. essentially a bridge be-tweenI2C protocols to APB Protocols.
The section describes functionality of the system. SectionIV
B. APB Write Protocol addresses the limitations that are encountered while operating
Fig. 2 explains the write cycle as- IDLE: The default state. the system and may need attention. Following the limitations is
SETUP: When transfer is required the bus moves into the the section V of future work which is framed considering who
VII. CONCLUSION
The implemented communication bridge between I2C and
APB was designed and implemented in Xilinx ISE 14.2, Vertex
6, using Verilog HDL. I2C Bus was successfully designed
according to the standards given by NXP Semiconductors. A
working communication model was set up between I2C
protocol and APB protocol. Data flow from I2C master to I2C
slave to APB master to APB Slave is shown while describing
the architecture. Simulation results are verified and data transfer
from I2C master to APB slave can be clearly seen in provided
simulation results. As proposed care has been taken to match
data transfer speed of both the buses for better compliance. We
intend to design a model with added buffers at the interface to
get even higher speed of data transfer.
VIII. REFERENCES
[1]Enhanced Universal Serial Communication Interface(eUSCI)
– I2C Mode, SLAU425B–August 2012–Revised February 2013,
Texas Instruments Incorporated.
[2] M. Alassir, J. Denoulet, O. Romain & P. Garda ―A SystemC
AMS Model of an I2C Bus Controller‖, IEEE.
[3] J. J Patel, B.H. Soni, ―Design and Implementation of I2C
Bus Controller Using Verilog‖ ISSN: 0975 – 6779| NOV 12 TO
OCT 13 | VOLUME – 02, ISSUE - 02
[4] Philips Semiconductors: PCF 8584, I2C bus controller
datasheet,http://www.semiconductors.philips.com/acrobat/datas
heets/PCF8584_4.
[5] Samir Palnitkar, Verilog HDL, second Edition.
International Journal of VLSI System Design and Communication Systems
Volume.04, IssueNo.07, July-2016, Pages: 0533-0535