Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > i2c-core from opencores.org

Reply
Thread Tools

i2c-core from opencores.org

 
 
Manfred Balik
Guest
Posts: n/a
 
      09-08-2004
I'm trying to use the i2c-core from opencores.org.
I made a project in Altera Quartus II and added the 3 files.
Compiling is no problem, but I have problems with the simulation. I'm doing:
1) reseting the core
2) write clock prescaler (Addr 0 and 1)
3) enable core in control register (10000000 to Addr 2)
4) write data for writing to slave to transmit register (Addr 3)
5) start and write to command register (10010000 to Addr 4)
and nothing happens on the output-lines !!!???
Reading the status register (Addr 4) shows 'Transfer in Progress' every
time!
What i am doing wrong ???
Can someone help ?
Thanks, Manfred



 
Reply With Quote
 
 
 
 
Martin Thompson
Guest
Posts: n/a
 
      09-09-2004
"Manfred Balik" <> writes:

> I'm trying to use the i2c-core from opencores.org.
> I made a project in Altera Quartus II and added the 3 files.
> Compiling is no problem, but I have problems with the simulation. I'm doing:
> 1) reseting the core
> 2) write clock prescaler (Addr 0 and 1)
> 3) enable core in control register (10000000 to Addr 2)
> 4) write data for writing to slave to transmit register (Addr 3)
> 5) start and write to command register (10010000 to Addr 4)
> and nothing happens on the output-lines !!!???


Absolutely nothing at all?
> Reading the status register (Addr 4) shows 'Transfer in Progress' every
> time!
> What i am doing wrong ???


Have you wired up the open-drain drivers and a pull-up resistor?

Just my quick thoughts - post more detail for a more detailed answer -
maybe post your testbench code?

Cheers,
Martin

--

TRW Conekt, Solihull, UK
http://www.trw.com/conekt
 
Reply With Quote
 
 
 
 
Phillip Phillip is offline
Junior Member
Join Date: Feb 2011
Posts: 1
 
      02-27-2011
Yes I know that opencores has a good FPGA core for free. For an I2C core that only requires on master though the following simplified core can save a lot in real estate:

http://skytek.x10.mx/i2c/skytekcontact.htm

Very low cost ($65.00) and no per use royalties
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57