TCM8240MD connector and example

Hello everyone

I try on the TCM8240 and i got an image but it is very pink. I work at 120x160 resolution and my registers are:

	iic_write2(0x3D,0x02,0x00);
		iic_write2(0x3D,0x02,0x40);
		iic_write2(0x3D,0x02,0x00);
		iic_write2(0x3D,0x0B,0x00);
		iic_write2(0x3D,0x6D,0xA1);
		datar = iic_read(0x3D,0x6D);
		iic_write2(0x3D,0xA9,0x80);
		iic_write2(0x3D,0x58,0xD0);
		iic_write2(0x3D,0x05,0x00);
		iic_write2(0x3D,0x1A,0xFF);
		iic_write2(0x3D,0x1B,0xB3);
		iic_write2(0x3D,0x11,0x4A);
		iic_write2(0x3D,0x14,0x33);
		iic_write2(0x3D,0x1F,0x0B);
		iic_write2(0x3D,0x1E,0xF9);
		iic_write2(0x3D,0x0E,0x0F);
		iic_write2(0x3D,0x2D,0x1E);
		iic_write2(0x3D,0x04,0x0B);

what is the problem this is not my image but similar with that

http://kreature.org/ee/avr/cmos_cam/not … re_yet.png

with testing images are pinky too.

Alex7:
Hi all. Can anybody advise this camera for a DiY project? I am looking for a video capture system for my small DIY video surveillance system. It seems like TCM8240MD suits the best. But after reading this huge thread I’m not so sure any more… Working with this camera looks tricky. And it requires a high speed interface for data capture and a lot of memory for frame buffer which is quite expensive. USART cameras are at least 3 times more expencive and don’t solve memory problem as well. Surfing web I run into other solution http://chip-solutions.org/en/portfolio/dozor Have anybody tried it? This device seems to be the best choice for me, but there is no price nor information about how can i buy it :frowning: Does anybody know something about this Dozor device?

Here is some more information about that camera.

victor_passe:
I have a problem that some of you have had, I get no ack for reading other adresses than 0x1f.

I get an ack for the slave addr, and if i send the wrong slave addr i get a nack.

But the second ack only comes if i read addr 0x1f. but the third ack never comes.

I can write to addr 0x1f, but no other addr.

What can the problem be?

EXTCLK is 10MHz

I2C clk is 5kHz.

2.8V and 1.5V is fine, I am interfacing with a pic32 at 2.8V

any ideas?

I am using a pic32 like you, how you implements the interface? i am waiting for the camera arrive, tried to login in “svenska elektronikforumet” page, but i can`t

hey guys

does anyone have a sample code or example for the TCM8240MD that they can share? trying to connect this camera to an avr (AtMega1284p)