how to Receive the Value of OV5640 in CX3 by I2C

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NoLe_4131831
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

I want to Receive the Value of OV5640 on CX3, and print it by UART.

I try it like the pic, but I can't get the right value, please tell me where should I revise?

thx.

pastedImage_0.png

0 Likes
1 Solution
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

Hello,

Looks like the register address you want to read is 0x300A.

Can you please check the higher address that is passed to Preamble2.buffer[1]. It should be 0x30.

There is no need of ANDing with 0xff00 and shifting right 8 bits. Hence, it passing as 0x00.

View solution in original post

0 Likes
4 Replies
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

Hello,

Looks like the register address you want to read is 0x300A.

Can you please check the higher address that is passed to Preamble2.buffer[1]. It should be 0x30.

There is no need of ANDing with 0xff00 and shifting right 8 bits. Hence, it passing as 0x00.

0 Likes
lock attach
Attachments are accessible only for community members.

I include the "cyu3imagesensor.c" and the "cyu3imagesensor.h" into "CX3RDK_OV5640"

and wite code in cyu3imagesensor hope to to read the value by i2c.

but it always failed, is anyone know how to Read/Wrte Register to CX3+OV5640 RDK by i2c?
Is the failed reason cause the OV5640 through by SCCB?

0 Likes

Please check my previous response in the thread.

0 Likes

Hello,

Is the issue solved?

0 Likes