Hello to everyone…
I am an undergraduate student and new to stm32 micro-controller programming. I wish to interface TCM8230 camera with stm32. It is a very small size camera by Toshiba integrated with i2c interface. I want to take RGB image of 128*96 pixel size and save it to the controller to process it.
What I did is configure the stm32 i2c interface, GPIO, Clock, NVIC,Timers according to the requirement. Initially I am using 12 Mhz clock for the camera and then slow it down to 6 Mhz so that we can have more time to capture the image.
Firstly I send the start condition 0x02 and then 7bit address of the camera and 0x22 for the RGB format. Now according to the datasheet of the camera, a transition from low to high on vd pin indicates a new frame, while a transition from low to high on the hd pin indicates the beginning of a scanline. For every square waveform on dclk pin while both vd,hd are high, there exist 8 bit data on dout pins.
This is the point where i get stuck. I am not getting how to write a routine to capture the image and save it to the controller.
Please help me? Thanks in advance.
here is the datasheet of the camera: