SlideShare a Scribd company logo
1 of 5
Download to read offline
Design and Implementation of I2c master
controller on FPGA using VHDL
Prof. Jai Karan Singh
HOD Electronics and Communication
SSSIST Sehore (MP)-INDIA
Prof. Mukesh Tiwari
Dean Academic
SSSIST Sehore (MP)-INDIA
Vishal Sharma
Dept. of Electronic and Communication
SSSIST Sehore (MP)-INDIA
Abstract - The focus of this paper is on I2C protocol following master controller. This controller is connected to
a microprocessor or computer and reads 8 bit instructions following I2C protocol. The instructions are then
processed and converted to instructions which follow SPI protocol. 32 bit register is designed to send data
serially as per SPI instructions. The complete module is designed in VHDL and simulated in ModelSIM. The
design is also synthesized in Xilinx XST 12.1 and optimized for area and power. This concept is widely
applicable where a microprocessor wants to communicate with SPI device. This module acts as a slave for the
microprocessor at the same time acts like a master for the SPI device which can be considered as a slave. This
design is customized for slowing the data rate according to SPI device, which assures no data loss.
Keywords: – I2C; Handshaking; Master & slave; Serial data transfer ; ISP.
I Introduction
In the world of multiple application based product it is very much a mandatory to have multiple devices
connected to a system, this includes peripherals following different communication protocols as well. This
requirement give rise to the need for an intermediate system which can act as a bridge between 2 devices
following different communication protocols. This is where I2C master controller design is very useful.
Today a system is connected to a number of devices and make the communication smooth and fast, I2C protocol
is considered as one of the very best. But there are number of devices which follow SPI protocol as well. So
such devices can be considered as a slave. The I2C master controller on one end is connected to a PC or
microprocessor, and on the other end it will be connected to the SPI slave. Its main function will be, to
understand the control register transmitted by PC and convert it into SPI control signals. The functional block in
Fig.1. Demonstrates the overview of the functionality of the I2C master controller.
Fig.1. Functional Block
II Register Description
There are 6 control registers and a data register. Each control register corresponds to SPI control register. The
first register corresponds to SPI status register.
Second set of 8 bits are dedicated for write operations which also includes interrupt signals for write and read
operations.
Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET)
ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 162
Third set of 8 bits are dedicated to read operations only 2 bits of this registers are used as bus busy and abort
read signals and rest of the bits are tied to ‘0’.
Fourth and fifth set of 8 bits corresponds to 1st
control register and 2nd
control register of SPI respectively.
Finally sixth set of 8 bits corresponds to baud rate register of SPI.
III Implementation
The PC connected to the controller sends data serially and every 8 bits corresponds a value specified by the i2c
protocol.
The address and the chip select signal selects the I2C device. In this design both chip select and address of the
device are default to 1, as the design is for a specific slave only.
Every set of 8 bits which corresponds to a control registers which controls the flow of data, is stored in registers.
A counter is initialized after successful transmission of 8 bits from the PC to the controller. As the complete set
of control registers are transmitted, all the values of the registers are inverted and stored in a 32 bit register.
32 bit registers are decided on the basis of SPI slave as there are only 4 control register before the data register.
Every bit of the 32 bit register corresponds to a specific signal of SPI protocol.
Once the 32 bit register is fed by the corresponding registers, the serial transmission takes place, which is the
MOSI input of the SPI slave. A clock signal is also transmitted to the SPI slave as SCLK which acts the main
clock for the slave.
IV Results
The following Fig.2. is the simulation results of I2C master controller.
This result shows successful storage of data transmitted by the master on the mentioned address location.
Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET)
ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 163
Fig. 2. Simulation result
Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET)
ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 164
Fig.3. Shows the Technology tree of the I2C master controller
Fig.3. Technology Tree
Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET)
ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 165
Table no1 Shows the Design Summary of the I2C master controller.
Table no 1 . Design Summary
The result shows that minimal resources are utilized in designing the I2C master as only 1 % slices, 1% flip
flops and 1% LUTs are utilized.
V Future Scope & Conclusion
The design of i2c master controller has immense applications in future as the number of devices connected to a
system is only going to increase. So there is always a need for a system which supports multiple protocols. In all
these situations, I2C master controller acts as a great support and will be a key in future design to support
multiple parallel functions. I2C master controller is successfully designed in VHDL and simulated in
ModelSIM. Simulation results verify that the communication has been established between the microprocessor
and the controller. Data processed and the output has been successfully verified as per SPI slave input. The
design meets timing constraints and there are no timing violations. And all these have been achieved with
minimal utilization of resources.
References
[1] A.K. Oudjida, M.L. Berrandjia, R. Tiar, A.Liacha, K. Tahraoui, “FPGA Implementation of I2c & SPI Protocols: A Com-parative
Study” Electronics, Circuits, and Systems, 2009. ICECS 2009
[2] A.K. Oudjida et al, “Master-Slave Wrapper Communication Protocol: A Case Study,” Proceedings of the 1st IEEE International
Computer Systems and Information Tec-hnology Con-ference ICSIT’05, pp 461-467, 19-21 July 2006, Algiers, Algeria.
[3] F. Leens, “An Introduction to I2C and SPI Protocols,” IEEE Instrumentation & Measurement Magazine, pp. 8-13, February
2009.
[4] J.M. Irazabel & S. Blozis, Philips Semiconductors, “I2C-Manual,”Application Note, ref. AN10216-0, March 2003.
[5] M.D. Anu, “I2C to SPI Bridge”, AN49217 Cypress application note, October 2008.
[6] P. Myers, “Interfacing Using Serial Protocoles: Using SPI and I2C”.Available:
http://intranet.daiict.ac.in/~ranjan/esp2005/paper/i2c_spi_341.pdf
[7] Philips Semiconductors, “The IIC-Bus Specifications,” version 2.1, January 2000.
[8] R. Hanabusa, “Comparing JTAG, SPI and I2C,” Spansion’s application note, pp. 1-7, revision 01, April 2007.
Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET)
ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 166

More Related Content

What's hot

IOT: Home Automation using Android Application
IOT: Home Automation using Android ApplicationIOT: Home Automation using Android Application
IOT: Home Automation using Android ApplicationNikhil Jadav
 
PASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTA
PASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTAPASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTA
PASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTAHEMANTA SAHU
 
Light Automation System Using Bidirectional Visitor Counter
Light Automation System Using Bidirectional Visitor CounterLight Automation System Using Bidirectional Visitor Counter
Light Automation System Using Bidirectional Visitor CounterRituraj Singh
 
Information security proposal for electronic door lock
Information security  proposal for electronic door lockInformation security  proposal for electronic door lock
Information security proposal for electronic door lockfiyameta habt
 
IRJET- Building Monitoring using Wireless System
IRJET- Building Monitoring using Wireless SystemIRJET- Building Monitoring using Wireless System
IRJET- Building Monitoring using Wireless SystemIRJET Journal
 
Bachelors Project Report Presentation
Bachelors Project Report PresentationBachelors Project Report Presentation
Bachelors Project Report PresentationManu Mitra
 
Case Study: IoT enabled Home Automation Solution
Case Study: IoT enabled Home Automation SolutionCase Study: IoT enabled Home Automation Solution
Case Study: IoT enabled Home Automation SolutionWeblineIndia
 
IoT home automation project
IoT home automation projectIoT home automation project
IoT home automation projectShohin Aheleroff
 
Smart home using andriod application
Smart home using andriod applicationSmart home using andriod application
Smart home using andriod applicationeSAT Publishing House
 
Bluetooth based industrial data acquisation system
Bluetooth based industrial data acquisation system Bluetooth based industrial data acquisation system
Bluetooth based industrial data acquisation system Srikanth Ravada
 
Covid-19 fever symptom detection based on IoT cloud
Covid-19 fever symptom detection based on IoT cloud Covid-19 fever symptom detection based on IoT cloud
Covid-19 fever symptom detection based on IoT cloud IJECEIAES
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationFarhan Ahmed Rahee
 
password based door locking system using 8051
password based door locking system using 8051password based door locking system using 8051
password based door locking system using 8051Mangleshwar Prajapati
 
IRJET- IoT based Industrial Level Sensor Data Acquisition & Monitoring
IRJET- IoT based Industrial Level Sensor Data Acquisition & MonitoringIRJET- IoT based Industrial Level Sensor Data Acquisition & Monitoring
IRJET- IoT based Industrial Level Sensor Data Acquisition & MonitoringIRJET Journal
 
Home automation based iot
Home automation based iotHome automation based iot
Home automation based iottashushy
 
Lata digital electronics
Lata digital electronicsLata digital electronics
Lata digital electronicslata kushwaha
 

What's hot (20)

IOT: Home Automation using Android Application
IOT: Home Automation using Android ApplicationIOT: Home Automation using Android Application
IOT: Home Automation using Android Application
 
PASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTA
PASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTAPASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTA
PASSWORD PROTECTED DOOR OPENING SYSTEM BY HEMANTA
 
Light Automation System Using Bidirectional Visitor Counter
Light Automation System Using Bidirectional Visitor CounterLight Automation System Using Bidirectional Visitor Counter
Light Automation System Using Bidirectional Visitor Counter
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
1st preview
1st preview1st preview
1st preview
 
Information security proposal for electronic door lock
Information security  proposal for electronic door lockInformation security  proposal for electronic door lock
Information security proposal for electronic door lock
 
IRJET- Building Monitoring using Wireless System
IRJET- Building Monitoring using Wireless SystemIRJET- Building Monitoring using Wireless System
IRJET- Building Monitoring using Wireless System
 
Bachelors Project Report Presentation
Bachelors Project Report PresentationBachelors Project Report Presentation
Bachelors Project Report Presentation
 
Case Study: IoT enabled Home Automation Solution
Case Study: IoT enabled Home Automation SolutionCase Study: IoT enabled Home Automation Solution
Case Study: IoT enabled Home Automation Solution
 
IoT home automation project
IoT home automation projectIoT home automation project
IoT home automation project
 
Smart home using andriod application
Smart home using andriod applicationSmart home using andriod application
Smart home using andriod application
 
Bluetooth based industrial data acquisation system
Bluetooth based industrial data acquisation system Bluetooth based industrial data acquisation system
Bluetooth based industrial data acquisation system
 
Covid-19 fever symptom detection based on IoT cloud
Covid-19 fever symptom detection based on IoT cloud Covid-19 fever symptom detection based on IoT cloud
Covid-19 fever symptom detection based on IoT cloud
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System Presantation
 
password based door locking system using 8051
password based door locking system using 8051password based door locking system using 8051
password based door locking system using 8051
 
IRJET- IoT based Industrial Level Sensor Data Acquisition & Monitoring
IRJET- IoT based Industrial Level Sensor Data Acquisition & MonitoringIRJET- IoT based Industrial Level Sensor Data Acquisition & Monitoring
IRJET- IoT based Industrial Level Sensor Data Acquisition & Monitoring
 
Smart Home
Smart HomeSmart Home
Smart Home
 
Arduino Thermometer
Arduino ThermometerArduino Thermometer
Arduino Thermometer
 
Home automation based iot
Home automation based iotHome automation based iot
Home automation based iot
 
Lata digital electronics
Lata digital electronicsLata digital electronics
Lata digital electronics
 

Viewers also liked

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 ControllerDweapons Art
 
Gender food & nutrition security and agriculture
Gender food & nutrition security  and agricultureGender food & nutrition security  and agriculture
Gender food & nutrition security and agricultureRachana Devkota
 
Αναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛ
Αναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛΑναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛ
Αναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛNotis Mitarachi
 
Elementos y compuestos presentes en el cuerpo humano
Elementos y compuestos presentes en el cuerpo humanoElementos y compuestos presentes en el cuerpo humano
Elementos y compuestos presentes en el cuerpo humanoXimena Lorena
 
Olympic buildings
Olympic buildingsOlympic buildings
Olympic buildingsMar Jurado
 
Elementos y compuestos presentes en el cuerpo (1)
Elementos y compuestos presentes en el cuerpo (1)Elementos y compuestos presentes en el cuerpo (1)
Elementos y compuestos presentes en el cuerpo (1)Magy000
 
Ηφαίστεια
ΗφαίστειαΗφαίστεια
Ηφαίστειαkougiou
 
Anders Waage Nilsen Stormvarselpresentasjon
Anders Waage Nilsen StormvarselpresentasjonAnders Waage Nilsen Stormvarselpresentasjon
Anders Waage Nilsen StormvarselpresentasjonStormkast
 
Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...
Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...
Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...Notis Mitarachi
 
IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...
IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...
IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...Dweapons Art
 
Pia Virmalainen Jøsendal
Pia Virmalainen JøsendalPia Virmalainen Jøsendal
Pia Virmalainen JøsendalStormkast
 
e-Brochure Cluster Buenos Park BSD City
e-Brochure Cluster Buenos Park BSD Citye-Brochure Cluster Buenos Park BSD City
e-Brochure Cluster Buenos Park BSD CityInvestProperti.com
 
Leap embedded system_profile
Leap embedded system_profileLeap embedded system_profile
Leap embedded system_profileweehau Kang
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programmingPunit Goswami
 
Reframing Phylogenomics
Reframing PhylogenomicsReframing Phylogenomics
Reframing PhylogenomicsJoe Parker
 

Viewers also liked (20)

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
 
Presentation1
Presentation1Presentation1
Presentation1
 
Pomorstvo
PomorstvoPomorstvo
Pomorstvo
 
Gender food & nutrition security and agriculture
Gender food & nutrition security  and agricultureGender food & nutrition security  and agriculture
Gender food & nutrition security and agriculture
 
Orestes organizacion
Orestes organizacionOrestes organizacion
Orestes organizacion
 
Αναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛ
Αναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛΑναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛ
Αναφορά Ν. Μηταράκη σχετικά με τον ορισμό υποδιευθυντών ΕΠΑΛ
 
10 aniversario distrito padel
10 aniversario distrito padel10 aniversario distrito padel
10 aniversario distrito padel
 
Elementos y compuestos presentes en el cuerpo humano
Elementos y compuestos presentes en el cuerpo humanoElementos y compuestos presentes en el cuerpo humano
Elementos y compuestos presentes en el cuerpo humano
 
Olympic buildings
Olympic buildingsOlympic buildings
Olympic buildings
 
Elementos y compuestos presentes en el cuerpo (1)
Elementos y compuestos presentes en el cuerpo (1)Elementos y compuestos presentes en el cuerpo (1)
Elementos y compuestos presentes en el cuerpo (1)
 
Ηφαίστεια
ΗφαίστειαΗφαίστεια
Ηφαίστεια
 
Anders Waage Nilsen Stormvarselpresentasjon
Anders Waage Nilsen StormvarselpresentasjonAnders Waage Nilsen Stormvarselpresentasjon
Anders Waage Nilsen Stormvarselpresentasjon
 
Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...
Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...
Ανάγκη έγκαιρης έναρξης πιλοτικού προγράμματος διευκόλυνσης χορήγησης visa Sc...
 
IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...
IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...
IEEE Paper Implementation of Local Area Digital Audio Broadcasting System upo...
 
Pia Virmalainen Jøsendal
Pia Virmalainen JøsendalPia Virmalainen Jøsendal
Pia Virmalainen Jøsendal
 
e-Brochure Cluster Buenos Park BSD City
e-Brochure Cluster Buenos Park BSD Citye-Brochure Cluster Buenos Park BSD City
e-Brochure Cluster Buenos Park BSD City
 
Leap embedded system_profile
Leap embedded system_profileLeap embedded system_profile
Leap embedded system_profile
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
Reframing Phylogenomics
Reframing PhylogenomicsReframing Phylogenomics
Reframing Phylogenomics
 
Dope
Dope Dope
Dope
 

Similar to Ijet12 04-04-020

A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORSA REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORSIRJET Journal
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolIJERA Editor
 
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLDesign &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLIJERA Editor
 
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 HDLIJMER
 
Design and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPSDesign and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPSIRJET Journal
 
Rotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By MicrocontrollerRotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By MicrocontrollerIJSRD
 
Rotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By MicrocontrollerRotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By MicrocontrollerIJSRD
 
IMPLEMENTATION OF SOC CORE FOR IOT ENGINE
IMPLEMENTATION OF SOC CORE FOR IOT ENGINEIMPLEMENTATION OF SOC CORE FOR IOT ENGINE
IMPLEMENTATION OF SOC CORE FOR IOT ENGINEijistjournal
 
Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...
Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...
Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...IJMTST Journal
 
IRJET- Android based Home Automation System with Power Optimization Modes
IRJET-  	  Android based Home Automation System with Power Optimization ModesIRJET-  	  Android based Home Automation System with Power Optimization Modes
IRJET- Android based Home Automation System with Power Optimization ModesIRJET Journal
 
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNETSOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNETcseij
 
IRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET Journal
 
Design and implementation of microcontroller in fpga for io t
Design and implementation of microcontroller in fpga for io tDesign and implementation of microcontroller in fpga for io t
Design and implementation of microcontroller in fpga for io tIJARIIT
 
Design of a low power processor for Embedded system applications
Design of a low power processor for Embedded system applicationsDesign of a low power processor for Embedded system applications
Design of a low power processor for Embedded system applicationsROHIT89352
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentJonathan Ruiz de Garibay
 

Similar to Ijet12 04-04-020 (20)

A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORSA REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
A REVIEW ON ANALYSIS OF 32-BIT AND 64-BIT RISC PROCESSORS
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C ProtocolInterfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol
 
An hemmanur
An hemmanurAn hemmanur
An hemmanur
 
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLDesign &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
 
Ff24977979
Ff24977979Ff24977979
Ff24977979
 
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
 
Design and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPSDesign and development of a 5-stage Pipelined RISC processor based on MIPS
Design and development of a 5-stage Pipelined RISC processor based on MIPS
 
Rotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By MicrocontrollerRotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By Microcontroller
 
Rotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By MicrocontrollerRotary RFID Parking Management Solution Controlled By Microcontroller
Rotary RFID Parking Management Solution Controlled By Microcontroller
 
IMPLEMENTATION OF SOC CORE FOR IOT ENGINE
IMPLEMENTATION OF SOC CORE FOR IOT ENGINEIMPLEMENTATION OF SOC CORE FOR IOT ENGINE
IMPLEMENTATION OF SOC CORE FOR IOT ENGINE
 
Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...
Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...
Serial Peripheral Interface Design for Advanced Microcontroller Bus Architect...
 
IRJET- Android based Home Automation System with Power Optimization Modes
IRJET-  	  Android based Home Automation System with Power Optimization ModesIRJET-  	  Android based Home Automation System with Power Optimization Modes
IRJET- Android based Home Automation System with Power Optimization Modes
 
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNETSOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
SOCIAL NETWORK FOR SMART DEVICES USING EMBEDDED ETHERNET
 
IRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOT
 
Design and implementation of microcontroller in fpga for io t
Design and implementation of microcontroller in fpga for io tDesign and implementation of microcontroller in fpga for io t
Design and implementation of microcontroller in fpga for io t
 
Design of a low power processor for Embedded system applications
Design of a low power processor for Embedded system applicationsDesign of a low power processor for Embedded system applications
Design of a low power processor for Embedded system applications
 
IJCRT2006062.pdf
IJCRT2006062.pdfIJCRT2006062.pdf
IJCRT2006062.pdf
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
 
40120140504013
4012014050401340120140504013
40120140504013
 

Recently uploaded

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

Ijet12 04-04-020

  • 1. Design and Implementation of I2c master controller on FPGA using VHDL Prof. Jai Karan Singh HOD Electronics and Communication SSSIST Sehore (MP)-INDIA Prof. Mukesh Tiwari Dean Academic SSSIST Sehore (MP)-INDIA Vishal Sharma Dept. of Electronic and Communication SSSIST Sehore (MP)-INDIA Abstract - The focus of this paper is on I2C protocol following master controller. This controller is connected to a microprocessor or computer and reads 8 bit instructions following I2C protocol. The instructions are then processed and converted to instructions which follow SPI protocol. 32 bit register is designed to send data serially as per SPI instructions. The complete module is designed in VHDL and simulated in ModelSIM. The design is also synthesized in Xilinx XST 12.1 and optimized for area and power. This concept is widely applicable where a microprocessor wants to communicate with SPI device. This module acts as a slave for the microprocessor at the same time acts like a master for the SPI device which can be considered as a slave. This design is customized for slowing the data rate according to SPI device, which assures no data loss. Keywords: – I2C; Handshaking; Master & slave; Serial data transfer ; ISP. I Introduction In the world of multiple application based product it is very much a mandatory to have multiple devices connected to a system, this includes peripherals following different communication protocols as well. This requirement give rise to the need for an intermediate system which can act as a bridge between 2 devices following different communication protocols. This is where I2C master controller design is very useful. Today a system is connected to a number of devices and make the communication smooth and fast, I2C protocol is considered as one of the very best. But there are number of devices which follow SPI protocol as well. So such devices can be considered as a slave. The I2C master controller on one end is connected to a PC or microprocessor, and on the other end it will be connected to the SPI slave. Its main function will be, to understand the control register transmitted by PC and convert it into SPI control signals. The functional block in Fig.1. Demonstrates the overview of the functionality of the I2C master controller. Fig.1. Functional Block II Register Description There are 6 control registers and a data register. Each control register corresponds to SPI control register. The first register corresponds to SPI status register. Second set of 8 bits are dedicated for write operations which also includes interrupt signals for write and read operations. Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET) ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 162
  • 2. Third set of 8 bits are dedicated to read operations only 2 bits of this registers are used as bus busy and abort read signals and rest of the bits are tied to ‘0’. Fourth and fifth set of 8 bits corresponds to 1st control register and 2nd control register of SPI respectively. Finally sixth set of 8 bits corresponds to baud rate register of SPI. III Implementation The PC connected to the controller sends data serially and every 8 bits corresponds a value specified by the i2c protocol. The address and the chip select signal selects the I2C device. In this design both chip select and address of the device are default to 1, as the design is for a specific slave only. Every set of 8 bits which corresponds to a control registers which controls the flow of data, is stored in registers. A counter is initialized after successful transmission of 8 bits from the PC to the controller. As the complete set of control registers are transmitted, all the values of the registers are inverted and stored in a 32 bit register. 32 bit registers are decided on the basis of SPI slave as there are only 4 control register before the data register. Every bit of the 32 bit register corresponds to a specific signal of SPI protocol. Once the 32 bit register is fed by the corresponding registers, the serial transmission takes place, which is the MOSI input of the SPI slave. A clock signal is also transmitted to the SPI slave as SCLK which acts the main clock for the slave. IV Results The following Fig.2. is the simulation results of I2C master controller. This result shows successful storage of data transmitted by the master on the mentioned address location. Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET) ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 163
  • 3. Fig. 2. Simulation result Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET) ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 164
  • 4. Fig.3. Shows the Technology tree of the I2C master controller Fig.3. Technology Tree Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET) ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 165
  • 5. Table no1 Shows the Design Summary of the I2C master controller. Table no 1 . Design Summary The result shows that minimal resources are utilized in designing the I2C master as only 1 % slices, 1% flip flops and 1% LUTs are utilized. V Future Scope & Conclusion The design of i2c master controller has immense applications in future as the number of devices connected to a system is only going to increase. So there is always a need for a system which supports multiple protocols. In all these situations, I2C master controller acts as a great support and will be a key in future design to support multiple parallel functions. I2C master controller is successfully designed in VHDL and simulated in ModelSIM. Simulation results verify that the communication has been established between the microprocessor and the controller. Data processed and the output has been successfully verified as per SPI slave input. The design meets timing constraints and there are no timing violations. And all these have been achieved with minimal utilization of resources. References [1] A.K. Oudjida, M.L. Berrandjia, R. Tiar, A.Liacha, K. Tahraoui, “FPGA Implementation of I2c & SPI Protocols: A Com-parative Study” Electronics, Circuits, and Systems, 2009. ICECS 2009 [2] A.K. Oudjida et al, “Master-Slave Wrapper Communication Protocol: A Case Study,” Proceedings of the 1st IEEE International Computer Systems and Information Tec-hnology Con-ference ICSIT’05, pp 461-467, 19-21 July 2006, Algiers, Algeria. [3] F. Leens, “An Introduction to I2C and SPI Protocols,” IEEE Instrumentation & Measurement Magazine, pp. 8-13, February 2009. [4] J.M. Irazabel & S. Blozis, Philips Semiconductors, “I2C-Manual,”Application Note, ref. AN10216-0, March 2003. [5] M.D. Anu, “I2C to SPI Bridge”, AN49217 Cypress application note, October 2008. [6] P. Myers, “Interfacing Using Serial Protocoles: Using SPI and I2C”.Available: http://intranet.daiict.ac.in/~ranjan/esp2005/paper/i2c_spi_341.pdf [7] Philips Semiconductors, “The IIC-Bus Specifications,” version 2.1, January 2000. [8] R. Hanabusa, “Comparing JTAG, SPI and I2C,” Spansion’s application note, pp. 1-7, revision 01, April 2007. Prof. Jai Karan Singh et al. / International Journal of Engineering and Technology (IJET) ISSN : 0975-4024 Vol 4 No 4 Aug-Sep 2012 166