cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 port and OV7670 ?

antonius
Senior
Posted on April 08, 2014 at 04:11

Guys,

I have OV7670 module and STM32 dev board, I'm confused on how to connect the port of STM32 and OV7670 at the module because of the name of the port on OV7670 is different with in STM32 code, anyone has experience ? thanks


/*------------------------------------------------------

Ä£¿éÒý½ÅÃû³Æ | ÃèÊö | STM32¶ËÒý½Å�?¬½Ó |

------------------------------------------------------

SCCB_SCL : SCCBʱÖÓ : PB10 I2C2_SCL

SCCB_SDA : SCCBÊý¾�? : PB11 I2C2_SDA

CAM_VSYNC : Ö¡�?¬²½ : PA0 �?ⲿÖ�?¶�?0

CAM_HREF : FIFO : PB7 GPIO

CAM_WEN : FIFO�?´ÔÊ�?í : PD3 GPIO

XCLK : CMOS´«¸�?Æ÷Ö÷ʱÖÓ: PA8 MCOÊä³ö

CAM_RRST : FIFO¶�?µØÖ·¸´Î» : PE0 GPIO

CAM_REN : FIFOƬѡ : PD6 GPIO

CAM_RCLK : FIFO¶�?ʱÖÓ : PE1 GPIO

FIFO D0~D7 : FIFOÊý¾�?Êä³ö : PC0~PC7 GPIO

-----------------------------------------------------*/

0690X00000602sPQAQ.jpg
32 REPLIES 32
antonius
Senior
Posted on April 10, 2014 at 01:25

On RCLK, what timing should I see ? I put like this

        RCC_PLLConfig(RCC_PLLSource_HSE_Div1,RCC_PLLMul_4); //multiply by 4 = 32MHz

and it's stable, but sometimes I can see it's late on scanning, still can see ''RGB'' on scanning....any ideas ?

thanks

Posted on April 10, 2014 at 02:05

On RCLK, what timing should I see ? I put like this

You should series of pulses as you bang it up and down in your loop.


 FIFO_RCLK_H();

 FIFO_RCLK_L(

);
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
armindavatgaran
Associate III
Posted on April 22, 2015 at 16:41

Hello

I can write to registers but can't read them, what is the reason?

I supply xclk pin with 42MHz sysclk coming from MCO2.

Thanks.

My problem was solved,  it was related to the incompatibility of SCCB protocol andHAL_I2C_Mem_Read function of the stm32cubef4 software package.