Hello everyone,
I am currently working on DSK6416 and I want to interface a camera module which has I2C interface. But the DSk6416 doesnot support I2C but instead has SPI. I there a way to interface it?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Lovelesh,
There are several companies that make add-on boards for these EVMs. Someone may make one that adds an I2C interface for a McBSP port or the EMIF. I recommend a web-search to see if you can find one compatible with your board and your camera.
If the C6416 supported this natively, it would be listed in the datasheet or the McBSP User's Guide. Some of the later C641x devices did add I2C, but that will not help you with your current board.
Regards,
RandyP
If you have a couple of spare GPIOs, you could "bit-bang" the GPIOS. One GPIO for SCL and one for SDA. Wiki has a example pseudo-code for this:
http://en.wikipedia.org/wiki/I2c#Example_of_bit-banging_the_I2C_Master_protocol
I2C is a relatively slow interface and such a single threaded approach would waste a fair bit of CPU time. The Linux kernel contains bit-bang code as well. It heavily tied to Linux system resources but it multi-threaded. Other things can be done while waiting for I2C bits to clock out.
Not quite understanding. I'm not familiar with the DSK6416. Does the camera module connect in some way to the DSK6416 that you could not use a bit-banged I2C emulation? Or does the DSK6416 not have any free GPIOs that come out to accessible pins?
Hi Norman,
i have a daughter board that sits in Memory and peripheral interfaces. The link will help you understand better.
I am planning to use bit banging in order to interface the camera. The daughter board has free GPIO pins to connect.