Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

I2C slave code needed

Status
Not open for further replies.

vinod_g

Member level 4
Joined
Nov 29, 2006
Messages
71
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,288
Activity points
1,681
Hi all....
If any one as I2c slave code ,, can u please send it ,,,,,
 

leonqin

Full Member level 4
Joined
Nov 7, 2001
Messages
238
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,298
Location
China
Activity points
1,763
XAPP333 - CoolRunner XPLA3 I2C Bus Controller Implementation

This document details the VHDL implementation of an I2C controller in a Xilinx CoolRunner XPLA3 256 macrocell CPLD. CoolRunner CPLDs are the lowest power CPLDs available, making this the perfect target device for an I2C controller.

Design Files: coolvhdlq.htm
Associated Products: CoolRunner XPLA3
Version: 1.8 Size: 152Kb Date: 12/30/03 Helpful? Yes | No

this refrence design support master/slave i2s bus

http://direct.xilinx.com/bvdocs/appnotes/xapp333.pdf
 

vinod_g

Member level 4
Joined
Nov 29, 2006
Messages
71
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,288
Activity points
1,681
I am not able to run code in FPGA4fun.com ,,,,, Is it correct? Even though its compiling but I am not getting correct results when I tested(Just passing Start bit and one SDA value),,,,,,,,, Can any one of used it if yes please reply back
 

addn

Member level 1
Joined
Apr 8, 2006
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,486
vinod_g said:
I am not able to run code in FPGA4fun.com ,,,,, Is it correct? Even though its compiling but I am not getting correct results when I tested(Just passing Start bit and one SDA value),,,,,,,,, Can any one of used it if yes please reply back
hi

the FPGA4fun can give you some ideal and concept with
how to get start a simple i2c slave.

if you realize it,you can write the code all your own.
 

ckshivaram

Advanced Member level 5
Joined
Apr 21, 2008
Messages
5,070
Helped
2,149
Reputation
4,304
Reaction score
2,089
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,097
Here is the code for I2c slave.paste the link below in the URL. you need scroll lit bit to find code from user NULL.

I2C and SPI in Verilog
I dont think you are newbee here and are a member from 2 years...

dont re-open 3 year old thread... read the date of the post before you post your answers.....
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top