0% found this document useful (0 votes)
560 views

Implementation of The I2c Protocol Using Fpga

This project aims to implement an I2C bus using an FPGA. I2C is a serial communication protocol that allows multiple peripherals to connect to a central controller using just two bidirectional lines. The design will create an I2C controller module in VHDL with components like counters, shift registers, and clocks. This controller will interface between a master device and slave peripherals to transfer data. Applications of I2C include reading configuration data from memory modules, controlling displays and sensors, and changing settings on devices. The FPGA implementation provides benefits like faster time to market, better integration, and in-system programmability.

Uploaded by

Shivakumar Shiva
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
560 views

Implementation of The I2c Protocol Using Fpga

This project aims to implement an I2C bus using an FPGA. I2C is a serial communication protocol that allows multiple peripherals to connect to a central controller using just two bidirectional lines. The design will create an I2C controller module in VHDL with components like counters, shift registers, and clocks. This controller will interface between a master device and slave peripherals to transfer data. Applications of I2C include reading configuration data from memory modules, controlling displays and sensors, and changing settings on devices. The FPGA implementation provides benefits like faster time to market, better integration, and in-system programmability.

Uploaded by

Shivakumar Shiva
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Project title:

IMPLEMENTATION OF AN I2C
BUS USING FPGA

By
Nagaraj
Roopa.R
Shivkumar
Venkatesh.L
Introduction
• • Communication
Communicationisisone oneofofthe
themost
mostrapidly
rapidly
growing
growingareas
areastoday.
today.
• • The
Thetransmission
transmissionisisthethephysical
physicalmovement
movementofof
information and concerns issues like
information and concerns issues like bit bit
polarity,
polarity,clock,
clock,synchronization,
synchronization,electrical
electrical
charactstics
charactsticsofofsignals
signals, ,modulation,
modulation,
demodulation
demodulationetc. etc.
Modes of based on timing control for
reception of bits
• Asynchronous transmission: In this method
only one byte is sent at a time and there no
time relation between consecutive bytes. That
is after sending a byte the next byte can be
sent after an arbitrary delay.
• Synchronous transmission: in this method bits
are always synchronized to reference clock.
Bytes are transmitted in block in a continuous
stream of bits .
INTER-INTEGRATED CIRCUIT(I2C)
• I2c is a multi master serial computer bus
invented by Philips that is used to attach low
speed peripherals to a mother board,
embedded systems, or cell phone.
• Fig 1 master and slaves.
• A sample schematic with one master
(microcontroller) and three slave nodes (an ADC,
DAC, and other microcontroller ) with pull up
resistors (Rp).
• I2C uses only 2 bidirectional open collector lines
,serial data(SDA) and serial clock(SCL),pulled up
with resistors
• Every device hooked up to the bus has its own
unique address no matter whether it is an LCD
driver , memory or ASIC . Each of these chips can
act as a receiver or as transmitter depending on
the functionality .
• Our project entitled “implementation of the
i2c protocol using fpga” involves serial data
communication between integrated
circuits(IC),that is between chips thus the
name inter-integrated circuit hence I2C
controller has been designed for interfacing
Comparison between different serial buses
Benefits:

1.Designers benefits:
• I2C bus compatible IC’s allow the system
design to rapidly progress directly from
functional block diagram to a prototype
• IC’s can be added to or removed from a
system without affecting any other circuits on
the bus.
• Fault diagnosis and debugging are simple.
In addition to the above advantages there are
few more advantages they are:

 extremely low current consumption


High noise immunity
Wide supply voltage range
Wide operating temperature range.
Benefits of using FPGA
• Conceptually, field programmable gate array
(FPGA) can be considered as an array of
configurable logic blocks (CLBs) [4] that can be
connected together through a vast
interconnection matrix to form complex digital
circuits
• FPGAs have traditionally found use in high
speed custom digital applications where designs
tend to be more constrained by performance
rather than cost. FPGAs are now common in
low- and mid-volume embedded products
where they offer the following advantages:

• l Fast time to market


• l Better integration
• l In system programmability
• l FPGAs tend to have long life cycles and are
• usually replaced with pin-compatible parts.
Manufacturer benefits :
• Smaller and less expensive PCB’s
• This eliminates the need for address decoders
and other ‘glue logic’.
• Allows rapid testing and alignment of end user
equipment via external connections to an
assembly line.
• It increases system design flexibility by allowing
simple construction of equipment variants and
easy upgrading to keep designs up date.
I2C Features:
• Only two bus lines are required : a serial data
line (SDA) and a serial clock line(SCL)
• It supports 7-bit and 10-bit addressing modes
• Support for multiple master-transmitters and
slave-receivers mode
• Support for multiple slave-transmitters and
master-receivers mode
• I2C data transfer rate of from 10 kbps up to
100 kbps
Tools used
• VHDL:
• SCOPE OF VHDL :
System level: VHDL id not ideally suited for abstract system level
simulation , prior to hardware software split . simulation at this
level is usually stochastic ,and is concerned with modeling
performance, throughput, queuing and statical distributions.

• DIGITAL: VHDL is suitable for use today in the digital hardware


design process, manual design and logic synthesis down to gate
level simulation .

• ANALOG:VHDL has been stretched to handle analog and switch


level simulation in limited case .
Planned design methodology:
• • I2C
I2CController:
Controller:
aadevice
devicethat
thatcontrollers
controllersthe
thetransfer
transferofofdata
data
from
fromaacomputer
computer(master)
(master)totothetheperipheral
peripheral
device
deviceand
andvice
viceversa
versaisisgenerally
generallyknown
knownasas
controller For ex: disk drives , display screens
controller For ex: disk drives , display screens , ,
key
keyboards
boardsand
andprinters
printersall
allrequire
requirecontrollers.
controllers.
• I2C Controller provides interface between master
and slave. It has only two outputs that is SCL and
SDA line.
• It has various blocks such as
1.Up counter
2.Shift register
a. piso
b .sipo
3.registers
4.clock generator
Applications

• Reading configuration data from SPD EEPROMs on SDRAM, DDR SDRAM,


DDR2 SDRAM memory sticks (DIMM) and other stacked PC boards
• Supporting systems management for PCI cards, through an SMBus 2.0
connection
• Accessing NVRAM chips that keep user settings
• Accessing low speed DACs and ADCs
• Changing contrast, hue, and colour balance settings in monitors (Display Data
Channel).
• Changing sound volume in intelligent speakers.
• Controlling OLED/LCD displays, like in a cell phone
• Reading hardware monitors and diagnostic sensors, like a CPU thermostat
and fan speed.
• Reading real time clocks.
• Turning on and turning off the power supply of system components
Reference:
 http://en.wikipedia.org
 http://www.datasheetarchive.com
 http://opencores.org/project,i2c
 http://www.nxp.com
 www.ti.com

You might also like