Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

DE2 + TRDB-5m I2C no ack

Altera_Forum
Honored Contributor II
1,211 Views

Hello, 

 

I'm having some trouble setting up I2C interface for Terrasics TRDB-5M. I'm pretty new to FPGA`s and I haven't got any experience with I2C either, so I'm probably simply missing something. 

 

I'll start with SignalTap oscilograms:  

https://www.alteraforum.com/forum/attachment.php?attachmentid=6708  

To me they look OK - both lines are high (pulled high by ofchip 1.5k resistor on the cam board) at idle, transmission starts with a START bit, followed by 8 bit device address (last bit 0 for write - hBA). But the cam doesn't acknowledge that. 

 

I have double checked SCL, SDA and cam_reset connections, as well as the device address. 

 

One of my guesses were that there might be some SCL stability problems, but both SCL and SDA are registered (or whats the right term form that) before output and design uses single clock which is constrained and TQ doesn't report any violations, so I guess that shouldn't be the case. 

 

Oh, and the SCL speed is well within the limits of cam. Also, the cam seems to be working, at least it outputs image using the default setting. 

 

Thanks in advance!
0 Kudos
0 Replies
Reply