SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 410
DESIGN OF DUAL MASTER I2
C BUS CONTROLLER
Ashwini s. Tadkal1
, Padmapriya Patil2
1
M Tech (Final year), VLSI, VTU Regional centre Gulbarga, Karnataka, India
2
Assistant professor, Electronics and communication, PDA College Gulbarga, Karnataka, India
Abstract
This paper presents an experimental design and implementation of serial data communication using I2C (Inter-Integrated Circuit)
multi master and multi slave bus controller using a field programmable gate array (FPGA). The I2C master bus controller was
interfaced with slave. This module was designed in Verilog HDL and simulated in Modelsim 10.1c. The design was synthesized using
Xilinx ISE Design Suite 14.2. I2C master initiates data transmission and in order slave responds to it. It can be used to interface low
speed peripherals like motherboard, embedded system, mobile phones, set top boxes, DVD, PDA’s or other electronic devices.
Keywords – FPGA, I2
C, master, Modelsim, serial data communication, slave, Spartan 3AN, Xilinx.
------------------------------------------------------------------------***---------------------------------------------------------------------
1. INTRODUCTION
In the world of serial data communication [5], there are protocols
like RS-232, RS-422, RS-485, SPI (Serial peripheral interface),
Micro wire for interfacing high speed and low speed peripherals.
These protocols require more pin connection in the IC(Integrated
Circuit) for serial data communication to take place, as the
physical size of IC have decreased over the years, we require less
amount of pin connection for serial data transfer.
USB/SPI/Microwire and mostly UARTS are all just one point to
one point’ data transfer bus systems. They use multiplexing of
the data path and forwarding of messages to service multiple
devices. To overcome this problem, the I2
C [1] protocol was
introduced by Phillips which requires only two lines for
communication with two or more chips and can control a
network of device chips with just a two general purpose I/O pins
whereas, other bus protocols require more pins and signals to
connect devices.
In this project, we are implementing multi master and multi slave
I 2
C bus protocol for interfacing low speed peripheral devices on
FPGA It is also the best bus for the control applications, where
devices may have to be added or removed from the system. I2
C
protocol can also be used for communication between multiple
circuit boards in equipments with or without using a shielded
cable depending on the distance and speed of data transfer. I2
C
bus is a medium for communication where master controller [6]
is used to send and receive data to and from the slave. The low
speed peripheral, is interfaced with I2
C master bus and
synthesized on Spartan 3AN.Fig-1 shows the I2
C bus system
with multi master and multi slave.
When using multiple master Arbitration and clock stretching
need to considered. Arbitration decides which master is going to
rule the bus.
The synopsis of the paper is as follows: In section 2, we
discussed I2C protocol of our proposed design which also
presents module description for our proposed system. In section
3, we present the software implementation along with algorithm
and flow chart.. Finally, concluded with future scaleup in section
4.
Fig-1 I/O Diagram of I2
C Multi Master and Multi Slave bus
controller
2. PROPOSED WORK
2.1. I2
C Protocol
I2
C is a two wire, bidirectional serial bus that provides effective
data communication between two devices. I2
C bus supports many
devices and each device is recognized by its unique address.
The physical I2
C bus consists of just two wires, called SCL and
SDA. SCL is the clock line. It is used to synchronize all data
transfers over the I2
C bus. SDA is the data line. The SCL and
SDA lines are connected to all devices on the I 2
C bus. As both
SCL and SDA lines are "open drThe I2
C bus is said to be idle
when both SCL and SDA are at logic 1 level. When the master
(controller) wishes to transmit data to a slave (DS1307) it begins
by issuing a start sequence on the I2
C bus, which is a high to low
transition on the SDA line while the SCL line is high as shown in
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 411
Fig– 2(a).The bus is considered to be busy after the START
condition. After the START cond
Fig- 2 (a) “START” Sequence (b) “STOP” Sequence
slave address is sent by the master. The slave device whose
address matches the address that is being sent out by the master
will respond with an acknowledgement bit on the SDA line by
pulling the SDA line low. Data is transferred in sequences of 8
bits. The bits are placed on the SDA line starting with the MSB
(Most Significant Bit). For every 8 bits transferred, the slave
device receiving the data sends back an acknowledge bit, so
there are actually 9 SCL clock pulses to transfer each 8 bit byte
of data this is shown in Fig-3. If the receiving device sends back
a low ACK bit, then it has received the data and is ready to
accept another byte. If it sends back a high then it is indicating it
cannot accept any further data and the master should terminate
the transfer by sending a STOP sequence. In Fig-2(b) which
shows the STOP sequence, where the SDA line is driven low
while SCL line is high. This signals the end of the transaction
with the slave device.
2.2 Serial Data Communication
The I2
C bus has two modes of operation: master transmitter and
master receiver. The I2
C master bus initiates data transfer and
can drive both SDA and SCL lines.[2] Slave device is addressed
by the master. It can issue only data on the SDA line.
In master transmission mode, after the initiation of the START
sequence, the master sends out a slave address. The address byte
contains the 7 bit slave address, which is followed by the
direction bit (R/ w). After receiving and decoding the address
byte the device outputs
Acknowledge on the SDA line. After the slave device
acknowledges the slave address + write bit, the master transmits
a register address to the slave this will set the register pointer on
the slave. The master will then begin transmitting each byte of
data with the slave acknowledging each byte received. The
master will generate a stop condition to terminate the data write.
In master receiver mode, the first byte is received and handled as
in the master transmission mode. However, in this mode, the
direction bit will indicate that the transfer direction is reversed.
Serial data is transmitted on SDA by the slave while the serial
clock is input on SCL. START and STOP conditions are
recognized as the beginning and end of a serial transfer (Fig-5).
The address byte is the first byte received after the start
condition is generated by the master. The address byte contains
the 7-bit slave address, which is followed by the direction bit (R/
w). After receiving and decoding the address byte the device
inputs acknowledge on the SDA line. The slave then begins to
transmit data starting with the register address pointed to by the
Fig-3 Acknowledgement on the I2
C Bus register
Pointer. If the register pointer is not written before the initiation
of a read mode, the first address that is read is the last one stored
in the register pointer. The slave must receive a “not
acknowledged” to end a read.
Fig -4 Master Transmission Mode
Fig- 5 Master Receiver Mode
The master transmission mode and master receiver mode is
shown in above figure.
3. SOFTWARE IMPLEMENTATION
I2
C bus is a medium for communication where master controller
is used to send or receive data to and from slave and it is
developed by Philips.
I2
C master controller is designed using Verilog HDL [3] based
on Finite State Machine (FSM) [8]. FSM is a sequential circuit
that uses a finite number of states to keep track of its history of
operations, and based on history of operation and current input,
determines the next state. There are several states in obtaining the
result.
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 412
Algorithm
State 1: An idle condition: I2
C bus doesn’t perform any
operation. (SCL and SDA remains high).
State 2: Start condition: master initiates data transmission by
providing START (SCL is high and SDA is from high to low).
State 3: Slave address - write: master sends the slave address-
write (11010000) to the slave.
State 4: If the slave address matches with the slave, it sends an
acknowledgement bit in response to the master.
State 5: 8 Bit Register Address[7] will be transmitted to the
slave. Again acknowledgement is sent to the master by the slave.
State 6: Data to be transmitted is sent to the slave by the master.
After receiving the data, slave acknowledges the master.
State 7: Stop condition: Slave sends a stop bit to the master to
terminate the communication (SCL is high and SDA is from
Low to high).
State 8: Master transmits slave address for read operation to the
slave.
State 9: Master receives the data from the slave and
acknowledges the slave.
State 10: Master sends a STOP bit to terminate the connection
(SCL is high and SDA is from Low to high).
For performing read operation, write operation is performed first
and then read operation is done. Slave address for read is
11010001. (State 7 will not be performed for read operation)
Fig 6: Flow chart of I2
C master bus controller.
Fig-8 shows the flowchart for I2
C master bus communication
with slave device. Fig-9 shows the Modelsim simulation result
for write operation, the given data input is written in to slave
register address in each state of FSM programmed in Verilog
HDL. Fig-10 shows the Modelsim simulation result for read
operation, to read the written data from the slave the write
operation takes place first followed by the repeated start
condition and sending the slave address read (11010001) in each
state of FSM.
The simulated Verilog coding is synthesized on Spartan 3AN
through Xilinx ISE Design Suite14.2 [4]. The design is analysed
using ChipScope Analyzer in Spartan 3AN platform.
Fig-7.Modelsim Simulation Result for Write operation
Fig-8 Modelsim Simulation Result for Read operation
After completing the coding in Verilog HDL, it is downloaded to
the Spartan 3AN kit using Xilinx software. And corresponding
input is given according to the I2
C protocol.
4. CONCLUSIONS
I2
C bus controller is successfully designed in verilog and
simulated in ModelSIM. Simulation results verify that the
communication has been established between the multi master
and the multi slave.
REFERENCES
[1]. Philips Semiconductor “I2C Bus Specification” version 2 1,
January 2000.
[2]. Raj kamal ,“Embedded system: Architectureprogramming
and Design”,Tata McGraw Hill,2008.
[3]. Stuart Sutherland, “Verilog® HDL Quick Reference Guide”,
IEEE Std 1364-2001.
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 413
[4]. Xilinx “Spartan-3A/3AN FPGA Starter Kit Board User
Guide,”version 1.1,2008.
[5]. A.P.Godse, D.A.Godse, “Microprocessor, Microcontroller &
Applications”Technical publications, 2008.
[6] .Vincent Himpe, “Mastering the I2C bus” Elektor Verlag
publications, 2011.
[7]. M.Morris Mano, “Digital Design” EBSCO publishing.Inc.,
2002.
[8]. Frank Vahid, “Digital Design with RTL Design, Verilog and
VHDL”VP and Executive publisher, 2010.

Weitere ähnliche Inhalte

Was ist angesagt?

Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
Vijay Kumar
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
Rashmi
 
A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...
Alexander Decker
 

Was ist angesagt? (19)

IEEE-488 by Foysal
IEEE-488 by FoysalIEEE-488 by Foysal
IEEE-488 by Foysal
 
Ieee 488 by imran
Ieee 488 by imranIeee 488 by imran
Ieee 488 by imran
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
 
Project_intership
Project_intershipProject_intership
Project_intership
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
IEEE Paper A SystemC AMS Model of an I2C Bus Controller
IEEE Paper A SystemC AMS Model  of an I2C Bus ControllerIEEE Paper A SystemC AMS Model  of an I2C Bus Controller
IEEE Paper A SystemC AMS Model of an I2C Bus Controller
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
MINIMUM MODE INTERFACE
MINIMUM MODE INTERFACEMINIMUM MODE INTERFACE
MINIMUM MODE INTERFACE
 
FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices FPGA Implementation with Digital Devices
FPGA Implementation with Digital Devices
 
Network Based Data Acquisition and Logging System using PIC Microcontroller
Network Based Data Acquisition and Logging System using PIC MicrocontrollerNetwork Based Data Acquisition and Logging System using PIC Microcontroller
Network Based Data Acquisition and Logging System using PIC Microcontroller
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...
 
A010240110
A010240110A010240110
A010240110
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
 
Rs232 485 fundamental
Rs232 485 fundamentalRs232 485 fundamental
Rs232 485 fundamental
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interface
 
A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 Microprocessor
 

Andere mochten auch

A novel tool for stereo matching of images
A novel tool for stereo matching of imagesA novel tool for stereo matching of images
A novel tool for stereo matching of images
eSAT Publishing House
 

Andere mochten auch (20)

Cost effective and efficient industrial tank cleaning process
Cost effective and efficient industrial tank cleaning processCost effective and efficient industrial tank cleaning process
Cost effective and efficient industrial tank cleaning process
 
On preemptive resume versus non preemtive disciplines relevant to monopoly se...
On preemptive resume versus non preemtive disciplines relevant to monopoly se...On preemptive resume versus non preemtive disciplines relevant to monopoly se...
On preemptive resume versus non preemtive disciplines relevant to monopoly se...
 
Studies on pyrolysis of spent engine oil in a quartz load cell
Studies on pyrolysis of spent engine oil in a quartz load cellStudies on pyrolysis of spent engine oil in a quartz load cell
Studies on pyrolysis of spent engine oil in a quartz load cell
 
Cloud storage limit monitoring measures
Cloud storage limit monitoring measuresCloud storage limit monitoring measures
Cloud storage limit monitoring measures
 
Simulation of different power transmission systems and their capacity of redu...
Simulation of different power transmission systems and their capacity of redu...Simulation of different power transmission systems and their capacity of redu...
Simulation of different power transmission systems and their capacity of redu...
 
Enhancement of qos in multihop wireless networks by delivering cbr using lb a...
Enhancement of qos in multihop wireless networks by delivering cbr using lb a...Enhancement of qos in multihop wireless networks by delivering cbr using lb a...
Enhancement of qos in multihop wireless networks by delivering cbr using lb a...
 
A study on glass fiber reinforced polymer clay nanocomposites with sandwich s...
A study on glass fiber reinforced polymer clay nanocomposites with sandwich s...A study on glass fiber reinforced polymer clay nanocomposites with sandwich s...
A study on glass fiber reinforced polymer clay nanocomposites with sandwich s...
 
Maintenance performance metrics for manufacturing industry
Maintenance performance metrics for manufacturing industryMaintenance performance metrics for manufacturing industry
Maintenance performance metrics for manufacturing industry
 
A novel tool for stereo matching of images
A novel tool for stereo matching of imagesA novel tool for stereo matching of images
A novel tool for stereo matching of images
 
Performance analysis of fully depleted dual material
Performance analysis of fully depleted dual materialPerformance analysis of fully depleted dual material
Performance analysis of fully depleted dual material
 
Performance analysis of various parameters by comparison of conventional pitc...
Performance analysis of various parameters by comparison of conventional pitc...Performance analysis of various parameters by comparison of conventional pitc...
Performance analysis of various parameters by comparison of conventional pitc...
 
Quality of service (qos) in wi max
Quality of service (qos) in wi maxQuality of service (qos) in wi max
Quality of service (qos) in wi max
 
Background differencing algorithm for moving object detection using system ge...
Background differencing algorithm for moving object detection using system ge...Background differencing algorithm for moving object detection using system ge...
Background differencing algorithm for moving object detection using system ge...
 
Unity 7 gui baesd design platform for ubuntu touch mobile os
Unity 7 gui baesd design platform for ubuntu touch mobile osUnity 7 gui baesd design platform for ubuntu touch mobile os
Unity 7 gui baesd design platform for ubuntu touch mobile os
 
Effect of fiber distance on various sac ocdma detection techniques
Effect of fiber distance on various sac ocdma detection techniquesEffect of fiber distance on various sac ocdma detection techniques
Effect of fiber distance on various sac ocdma detection techniques
 
An optimal face recoginition tool
An optimal face recoginition toolAn optimal face recoginition tool
An optimal face recoginition tool
 
Optimization of ultrasonicated membrane anaerobic
Optimization of ultrasonicated membrane anaerobicOptimization of ultrasonicated membrane anaerobic
Optimization of ultrasonicated membrane anaerobic
 
Effect of fungicide treatment on dielectric
Effect of fungicide treatment on dielectricEffect of fungicide treatment on dielectric
Effect of fungicide treatment on dielectric
 
Mathematical model for an area source and the point
Mathematical model for an area source and the pointMathematical model for an area source and the point
Mathematical model for an area source and the point
 
Enhancement of power quality by unified power quality conditioner with fuzzy ...
Enhancement of power quality by unified power quality conditioner with fuzzy ...Enhancement of power quality by unified power quality conditioner with fuzzy ...
Enhancement of power quality by unified power quality conditioner with fuzzy ...
 

Ähnlich wie Design of dual master i2 c bus controller

Development and Application of a Failure Monitoring System by Using the Vibra...
Development and Application of a Failure Monitoring System by Using the Vibra...Development and Application of a Failure Monitoring System by Using the Vibra...
Development and Application of a Failure Monitoring System by Using the Vibra...
inventy
 
Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)
Chiu-Hao Chen (Ted)
 
Report no.5(microprocessor)
Report no.5(microprocessor)Report no.5(microprocessor)
Report no.5(microprocessor)
Ronza Sameer
 

Ähnlich wie Design of dual master i2 c bus controller (20)

An Implementation of I2C Slave Interface using Verilog HDL
An Implementation of I2C Slave Interface using Verilog HDLAn Implementation of I2C Slave Interface using Verilog HDL
An Implementation of I2C Slave Interface using Verilog HDL
 
I2C
I2CI2C
I2C
 
COM_BASIC.pptx
COM_BASIC.pptxCOM_BASIC.pptx
COM_BASIC.pptx
 
ijseas20150367
ijseas20150367ijseas20150367
ijseas20150367
 
project 3 full report
project 3 full reportproject 3 full report
project 3 full report
 
Ju2416921695
Ju2416921695Ju2416921695
Ju2416921695
 
I2C protocol and DS1307 RTC interfacing
I2C protocol and DS1307 RTC interfacingI2C protocol and DS1307 RTC interfacing
I2C protocol and DS1307 RTC interfacing
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Designing Of Time and Power Efficient Model for Controlling Of Critical Process
Designing Of Time and Power Efficient Model for Controlling Of Critical ProcessDesigning Of Time and Power Efficient Model for Controlling Of Critical Process
Designing Of Time and Power Efficient Model for Controlling Of Critical Process
 
A010610109
A010610109A010610109
A010610109
 
Wireless data transmission through uart port using arm & rf transceiver
Wireless data transmission through uart port using arm & rf transceiverWireless data transmission through uart port using arm & rf transceiver
Wireless data transmission through uart port using arm & rf transceiver
 
Development and Application of a Failure Monitoring System by Using the Vibra...
Development and Application of a Failure Monitoring System by Using the Vibra...Development and Application of a Failure Monitoring System by Using the Vibra...
Development and Application of a Failure Monitoring System by Using the Vibra...
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systems
 
Mobile robotic platform to gathering real time sensory data in wireless perso...
Mobile robotic platform to gathering real time sensory data in wireless perso...Mobile robotic platform to gathering real time sensory data in wireless perso...
Mobile robotic platform to gathering real time sensory data in wireless perso...
 
Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)
 
Application of NarrowBand Power Line Communication in Medium Voltage Smart Di...
Application of NarrowBand Power Line Communication in Medium Voltage Smart Di...Application of NarrowBand Power Line Communication in Medium Voltage Smart Di...
Application of NarrowBand Power Line Communication in Medium Voltage Smart Di...
 
I2C PRESENTATION.PPT
I2C PRESENTATION.PPTI2C PRESENTATION.PPT
I2C PRESENTATION.PPT
 
Report no.5(microprocessor)
Report no.5(microprocessor)Report no.5(microprocessor)
Report no.5(microprocessor)
 
Design and implementation of autonomous maneuvering robotic vehicle using glo...
Design and implementation of autonomous maneuvering robotic vehicle using glo...Design and implementation of autonomous maneuvering robotic vehicle using glo...
Design and implementation of autonomous maneuvering robotic vehicle using glo...
 
I2C introduction
I2C introductionI2C introduction
I2C introduction
 

Mehr von eSAT Publishing House

Likely impacts of hudhud on the environment of visakhapatnam
Likely impacts of hudhud on the environment of visakhapatnamLikely impacts of hudhud on the environment of visakhapatnam
Likely impacts of hudhud on the environment of visakhapatnam
eSAT Publishing House
 
Impact of flood disaster in a drought prone area – case study of alampur vill...
Impact of flood disaster in a drought prone area – case study of alampur vill...Impact of flood disaster in a drought prone area – case study of alampur vill...
Impact of flood disaster in a drought prone area – case study of alampur vill...
eSAT Publishing House
 
Hudhud cyclone – a severe disaster in visakhapatnam
Hudhud cyclone – a severe disaster in visakhapatnamHudhud cyclone – a severe disaster in visakhapatnam
Hudhud cyclone – a severe disaster in visakhapatnam
eSAT Publishing House
 
Groundwater investigation using geophysical methods a case study of pydibhim...
Groundwater investigation using geophysical methods  a case study of pydibhim...Groundwater investigation using geophysical methods  a case study of pydibhim...
Groundwater investigation using geophysical methods a case study of pydibhim...
eSAT Publishing House
 
Flood related disasters concerned to urban flooding in bangalore, india
Flood related disasters concerned to urban flooding in bangalore, indiaFlood related disasters concerned to urban flooding in bangalore, india
Flood related disasters concerned to urban flooding in bangalore, india
eSAT Publishing House
 
Enhancing post disaster recovery by optimal infrastructure capacity building
Enhancing post disaster recovery by optimal infrastructure capacity buildingEnhancing post disaster recovery by optimal infrastructure capacity building
Enhancing post disaster recovery by optimal infrastructure capacity building
eSAT Publishing House
 
Effect of lintel and lintel band on the global performance of reinforced conc...
Effect of lintel and lintel band on the global performance of reinforced conc...Effect of lintel and lintel band on the global performance of reinforced conc...
Effect of lintel and lintel band on the global performance of reinforced conc...
eSAT Publishing House
 
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
eSAT Publishing House
 
Wind damage to buildings, infrastrucuture and landscape elements along the be...
Wind damage to buildings, infrastrucuture and landscape elements along the be...Wind damage to buildings, infrastrucuture and landscape elements along the be...
Wind damage to buildings, infrastrucuture and landscape elements along the be...
eSAT Publishing House
 
Shear strength of rc deep beam panels – a review
Shear strength of rc deep beam panels – a reviewShear strength of rc deep beam panels – a review
Shear strength of rc deep beam panels – a review
eSAT Publishing House
 
Role of voluntary teams of professional engineers in dissater management – ex...
Role of voluntary teams of professional engineers in dissater management – ex...Role of voluntary teams of professional engineers in dissater management – ex...
Role of voluntary teams of professional engineers in dissater management – ex...
eSAT Publishing House
 
Risk analysis and environmental hazard management
Risk analysis and environmental hazard managementRisk analysis and environmental hazard management
Risk analysis and environmental hazard management
eSAT Publishing House
 
Review study on performance of seismically tested repaired shear walls
Review study on performance of seismically tested repaired shear wallsReview study on performance of seismically tested repaired shear walls
Review study on performance of seismically tested repaired shear walls
eSAT Publishing House
 
Monitoring and assessment of air quality with reference to dust particles (pm...
Monitoring and assessment of air quality with reference to dust particles (pm...Monitoring and assessment of air quality with reference to dust particles (pm...
Monitoring and assessment of air quality with reference to dust particles (pm...
eSAT Publishing House
 
Low cost wireless sensor networks and smartphone applications for disaster ma...
Low cost wireless sensor networks and smartphone applications for disaster ma...Low cost wireless sensor networks and smartphone applications for disaster ma...
Low cost wireless sensor networks and smartphone applications for disaster ma...
eSAT Publishing House
 
Coastal zones – seismic vulnerability an analysis from east coast of india
Coastal zones – seismic vulnerability an analysis from east coast of indiaCoastal zones – seismic vulnerability an analysis from east coast of india
Coastal zones – seismic vulnerability an analysis from east coast of india
eSAT Publishing House
 
Can fracture mechanics predict damage due disaster of structures
Can fracture mechanics predict damage due disaster of structuresCan fracture mechanics predict damage due disaster of structures
Can fracture mechanics predict damage due disaster of structures
eSAT Publishing House
 
Assessment of seismic susceptibility of rc buildings
Assessment of seismic susceptibility of rc buildingsAssessment of seismic susceptibility of rc buildings
Assessment of seismic susceptibility of rc buildings
eSAT Publishing House
 
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
eSAT Publishing House
 
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
eSAT Publishing House
 

Mehr von eSAT Publishing House (20)

Likely impacts of hudhud on the environment of visakhapatnam
Likely impacts of hudhud on the environment of visakhapatnamLikely impacts of hudhud on the environment of visakhapatnam
Likely impacts of hudhud on the environment of visakhapatnam
 
Impact of flood disaster in a drought prone area – case study of alampur vill...
Impact of flood disaster in a drought prone area – case study of alampur vill...Impact of flood disaster in a drought prone area – case study of alampur vill...
Impact of flood disaster in a drought prone area – case study of alampur vill...
 
Hudhud cyclone – a severe disaster in visakhapatnam
Hudhud cyclone – a severe disaster in visakhapatnamHudhud cyclone – a severe disaster in visakhapatnam
Hudhud cyclone – a severe disaster in visakhapatnam
 
Groundwater investigation using geophysical methods a case study of pydibhim...
Groundwater investigation using geophysical methods  a case study of pydibhim...Groundwater investigation using geophysical methods  a case study of pydibhim...
Groundwater investigation using geophysical methods a case study of pydibhim...
 
Flood related disasters concerned to urban flooding in bangalore, india
Flood related disasters concerned to urban flooding in bangalore, indiaFlood related disasters concerned to urban flooding in bangalore, india
Flood related disasters concerned to urban flooding in bangalore, india
 
Enhancing post disaster recovery by optimal infrastructure capacity building
Enhancing post disaster recovery by optimal infrastructure capacity buildingEnhancing post disaster recovery by optimal infrastructure capacity building
Enhancing post disaster recovery by optimal infrastructure capacity building
 
Effect of lintel and lintel band on the global performance of reinforced conc...
Effect of lintel and lintel band on the global performance of reinforced conc...Effect of lintel and lintel band on the global performance of reinforced conc...
Effect of lintel and lintel band on the global performance of reinforced conc...
 
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
 
Wind damage to buildings, infrastrucuture and landscape elements along the be...
Wind damage to buildings, infrastrucuture and landscape elements along the be...Wind damage to buildings, infrastrucuture and landscape elements along the be...
Wind damage to buildings, infrastrucuture and landscape elements along the be...
 
Shear strength of rc deep beam panels – a review
Shear strength of rc deep beam panels – a reviewShear strength of rc deep beam panels – a review
Shear strength of rc deep beam panels – a review
 
Role of voluntary teams of professional engineers in dissater management – ex...
Role of voluntary teams of professional engineers in dissater management – ex...Role of voluntary teams of professional engineers in dissater management – ex...
Role of voluntary teams of professional engineers in dissater management – ex...
 
Risk analysis and environmental hazard management
Risk analysis and environmental hazard managementRisk analysis and environmental hazard management
Risk analysis and environmental hazard management
 
Review study on performance of seismically tested repaired shear walls
Review study on performance of seismically tested repaired shear wallsReview study on performance of seismically tested repaired shear walls
Review study on performance of seismically tested repaired shear walls
 
Monitoring and assessment of air quality with reference to dust particles (pm...
Monitoring and assessment of air quality with reference to dust particles (pm...Monitoring and assessment of air quality with reference to dust particles (pm...
Monitoring and assessment of air quality with reference to dust particles (pm...
 
Low cost wireless sensor networks and smartphone applications for disaster ma...
Low cost wireless sensor networks and smartphone applications for disaster ma...Low cost wireless sensor networks and smartphone applications for disaster ma...
Low cost wireless sensor networks and smartphone applications for disaster ma...
 
Coastal zones – seismic vulnerability an analysis from east coast of india
Coastal zones – seismic vulnerability an analysis from east coast of indiaCoastal zones – seismic vulnerability an analysis from east coast of india
Coastal zones – seismic vulnerability an analysis from east coast of india
 
Can fracture mechanics predict damage due disaster of structures
Can fracture mechanics predict damage due disaster of structuresCan fracture mechanics predict damage due disaster of structures
Can fracture mechanics predict damage due disaster of structures
 
Assessment of seismic susceptibility of rc buildings
Assessment of seismic susceptibility of rc buildingsAssessment of seismic susceptibility of rc buildings
Assessment of seismic susceptibility of rc buildings
 
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
 
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
 

Kürzlich hochgeladen

Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 

Design of dual master i2 c bus controller

  • 1. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 410 DESIGN OF DUAL MASTER I2 C BUS CONTROLLER Ashwini s. Tadkal1 , Padmapriya Patil2 1 M Tech (Final year), VLSI, VTU Regional centre Gulbarga, Karnataka, India 2 Assistant professor, Electronics and communication, PDA College Gulbarga, Karnataka, India Abstract This paper presents an experimental design and implementation of serial data communication using I2C (Inter-Integrated Circuit) multi master and multi slave bus controller using a field programmable gate array (FPGA). The I2C master bus controller was interfaced with slave. This module was designed in Verilog HDL and simulated in Modelsim 10.1c. The design was synthesized using Xilinx ISE Design Suite 14.2. I2C master initiates data transmission and in order slave responds to it. It can be used to interface low speed peripherals like motherboard, embedded system, mobile phones, set top boxes, DVD, PDA’s or other electronic devices. Keywords – FPGA, I2 C, master, Modelsim, serial data communication, slave, Spartan 3AN, Xilinx. ------------------------------------------------------------------------***--------------------------------------------------------------------- 1. INTRODUCTION In the world of serial data communication [5], there are protocols like RS-232, RS-422, RS-485, SPI (Serial peripheral interface), Micro wire for interfacing high speed and low speed peripherals. These protocols require more pin connection in the IC(Integrated Circuit) for serial data communication to take place, as the physical size of IC have decreased over the years, we require less amount of pin connection for serial data transfer. USB/SPI/Microwire and mostly UARTS are all just one point to one point’ data transfer bus systems. They use multiplexing of the data path and forwarding of messages to service multiple devices. To overcome this problem, the I2 C [1] protocol was introduced by Phillips which requires only two lines for communication with two or more chips and can control a network of device chips with just a two general purpose I/O pins whereas, other bus protocols require more pins and signals to connect devices. In this project, we are implementing multi master and multi slave I 2 C bus protocol for interfacing low speed peripheral devices on FPGA It is also the best bus for the control applications, where devices may have to be added or removed from the system. I2 C protocol can also be used for communication between multiple circuit boards in equipments with or without using a shielded cable depending on the distance and speed of data transfer. I2 C bus is a medium for communication where master controller [6] is used to send and receive data to and from the slave. The low speed peripheral, is interfaced with I2 C master bus and synthesized on Spartan 3AN.Fig-1 shows the I2 C bus system with multi master and multi slave. When using multiple master Arbitration and clock stretching need to considered. Arbitration decides which master is going to rule the bus. The synopsis of the paper is as follows: In section 2, we discussed I2C protocol of our proposed design which also presents module description for our proposed system. In section 3, we present the software implementation along with algorithm and flow chart.. Finally, concluded with future scaleup in section 4. Fig-1 I/O Diagram of I2 C Multi Master and Multi Slave bus controller 2. PROPOSED WORK 2.1. I2 C Protocol I2 C is a two wire, bidirectional serial bus that provides effective data communication between two devices. I2 C bus supports many devices and each device is recognized by its unique address. The physical I2 C bus consists of just two wires, called SCL and SDA. SCL is the clock line. It is used to synchronize all data transfers over the I2 C bus. SDA is the data line. The SCL and SDA lines are connected to all devices on the I 2 C bus. As both SCL and SDA lines are "open drThe I2 C bus is said to be idle when both SCL and SDA are at logic 1 level. When the master (controller) wishes to transmit data to a slave (DS1307) it begins by issuing a start sequence on the I2 C bus, which is a high to low transition on the SDA line while the SCL line is high as shown in
  • 2. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 411 Fig– 2(a).The bus is considered to be busy after the START condition. After the START cond Fig- 2 (a) “START” Sequence (b) “STOP” Sequence slave address is sent by the master. The slave device whose address matches the address that is being sent out by the master will respond with an acknowledgement bit on the SDA line by pulling the SDA line low. Data is transferred in sequences of 8 bits. The bits are placed on the SDA line starting with the MSB (Most Significant Bit). For every 8 bits transferred, the slave device receiving the data sends back an acknowledge bit, so there are actually 9 SCL clock pulses to transfer each 8 bit byte of data this is shown in Fig-3. If the receiving device sends back a low ACK bit, then it has received the data and is ready to accept another byte. If it sends back a high then it is indicating it cannot accept any further data and the master should terminate the transfer by sending a STOP sequence. In Fig-2(b) which shows the STOP sequence, where the SDA line is driven low while SCL line is high. This signals the end of the transaction with the slave device. 2.2 Serial Data Communication The I2 C bus has two modes of operation: master transmitter and master receiver. The I2 C master bus initiates data transfer and can drive both SDA and SCL lines.[2] Slave device is addressed by the master. It can issue only data on the SDA line. In master transmission mode, after the initiation of the START sequence, the master sends out a slave address. The address byte contains the 7 bit slave address, which is followed by the direction bit (R/ w). After receiving and decoding the address byte the device outputs Acknowledge on the SDA line. After the slave device acknowledges the slave address + write bit, the master transmits a register address to the slave this will set the register pointer on the slave. The master will then begin transmitting each byte of data with the slave acknowledging each byte received. The master will generate a stop condition to terminate the data write. In master receiver mode, the first byte is received and handled as in the master transmission mode. However, in this mode, the direction bit will indicate that the transfer direction is reversed. Serial data is transmitted on SDA by the slave while the serial clock is input on SCL. START and STOP conditions are recognized as the beginning and end of a serial transfer (Fig-5). The address byte is the first byte received after the start condition is generated by the master. The address byte contains the 7-bit slave address, which is followed by the direction bit (R/ w). After receiving and decoding the address byte the device inputs acknowledge on the SDA line. The slave then begins to transmit data starting with the register address pointed to by the Fig-3 Acknowledgement on the I2 C Bus register Pointer. If the register pointer is not written before the initiation of a read mode, the first address that is read is the last one stored in the register pointer. The slave must receive a “not acknowledged” to end a read. Fig -4 Master Transmission Mode Fig- 5 Master Receiver Mode The master transmission mode and master receiver mode is shown in above figure. 3. SOFTWARE IMPLEMENTATION I2 C bus is a medium for communication where master controller is used to send or receive data to and from slave and it is developed by Philips. I2 C master controller is designed using Verilog HDL [3] based on Finite State Machine (FSM) [8]. FSM is a sequential circuit that uses a finite number of states to keep track of its history of operations, and based on history of operation and current input, determines the next state. There are several states in obtaining the result.
  • 3. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 412 Algorithm State 1: An idle condition: I2 C bus doesn’t perform any operation. (SCL and SDA remains high). State 2: Start condition: master initiates data transmission by providing START (SCL is high and SDA is from high to low). State 3: Slave address - write: master sends the slave address- write (11010000) to the slave. State 4: If the slave address matches with the slave, it sends an acknowledgement bit in response to the master. State 5: 8 Bit Register Address[7] will be transmitted to the slave. Again acknowledgement is sent to the master by the slave. State 6: Data to be transmitted is sent to the slave by the master. After receiving the data, slave acknowledges the master. State 7: Stop condition: Slave sends a stop bit to the master to terminate the communication (SCL is high and SDA is from Low to high). State 8: Master transmits slave address for read operation to the slave. State 9: Master receives the data from the slave and acknowledges the slave. State 10: Master sends a STOP bit to terminate the connection (SCL is high and SDA is from Low to high). For performing read operation, write operation is performed first and then read operation is done. Slave address for read is 11010001. (State 7 will not be performed for read operation) Fig 6: Flow chart of I2 C master bus controller. Fig-8 shows the flowchart for I2 C master bus communication with slave device. Fig-9 shows the Modelsim simulation result for write operation, the given data input is written in to slave register address in each state of FSM programmed in Verilog HDL. Fig-10 shows the Modelsim simulation result for read operation, to read the written data from the slave the write operation takes place first followed by the repeated start condition and sending the slave address read (11010001) in each state of FSM. The simulated Verilog coding is synthesized on Spartan 3AN through Xilinx ISE Design Suite14.2 [4]. The design is analysed using ChipScope Analyzer in Spartan 3AN platform. Fig-7.Modelsim Simulation Result for Write operation Fig-8 Modelsim Simulation Result for Read operation After completing the coding in Verilog HDL, it is downloaded to the Spartan 3AN kit using Xilinx software. And corresponding input is given according to the I2 C protocol. 4. CONCLUSIONS I2 C bus controller is successfully designed in verilog and simulated in ModelSIM. Simulation results verify that the communication has been established between the multi master and the multi slave. REFERENCES [1]. Philips Semiconductor “I2C Bus Specification” version 2 1, January 2000. [2]. Raj kamal ,“Embedded system: Architectureprogramming and Design”,Tata McGraw Hill,2008. [3]. Stuart Sutherland, “Verilog® HDL Quick Reference Guide”, IEEE Std 1364-2001.
  • 4. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Special Issue: 03 | May-2014 | NCRIET-2014, Available @ http://www.ijret.org 413 [4]. Xilinx “Spartan-3A/3AN FPGA Starter Kit Board User Guide,”version 1.1,2008. [5]. A.P.Godse, D.A.Godse, “Microprocessor, Microcontroller & Applications”Technical publications, 2008. [6] .Vincent Himpe, “Mastering the I2C bus” Elektor Verlag publications, 2011. [7]. M.Morris Mano, “Digital Design” EBSCO publishing.Inc., 2002. [8]. Frank Vahid, “Digital Design with RTL Design, Verilog and VHDL”VP and Executive publisher, 2010.