CMOS sensor interfacing with CY7C68013A in XGA Resolution

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

cross mob
Anonymous
Not applicable

Hello,

The VGA resolution(640*480)  capturing works fine in the slave fifo mode.But there is some missing in the lower part of the image in  XGA resolution(1024*768) .The video is attached in this link https://files.fm/u/2uknt9jj. Please tell me the reason for this .

Best regards,

Sandeep

0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Sandeep,

There seems to be a synchronization error on every start of frame. There could be a delay in the firmware when the header is added on sending the vendor command between successive frames. On the image sensor side, the delay may be less due to higher resolution and hence some data could be lost.

Best Regards,

Sananya

View solution in original post

0 Likes
3 Replies
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Sandeep,

-Please explain how the received data is being handled in the host application.

-Could you let us know after how many bytes the shift in the image happens since it appears from the video that it happens after the same number of bytes in each frame?

-Please also attach the raw data that you are receiving.

Best Regards,

Sananya

0 Likes
Anonymous
Not applicable

Hello Sananya,

The steps in the  host code are 

1  Send vendor  command 0x1A to set the resolution

2 while loop

3  Send Vendor command  0xAC to Update the Boolean variable in the TD poll function  to capture each frame

4 Check the Header Bytes 0xFF,0x00,0x15,0x00,0xFF;

5 if the header is received read 786432bytes (1024*468)

6 convert to image

I think the data up to 524288 is fine .There is 2 shifting and 1 real image means i got 1 right frame after every 2 frames  ..

I am attaching the three raw data 

Raw data 1

https://files.fm/u/f4f8zu2h

2.jpg

Raw data 2

https://files.fm/u/qme63mce

3.jpg

Rawdata 3

https://files.fm/u/fw2puk59

4.jpg

Best regards

Sandeep

0 Likes
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Sandeep,

There seems to be a synchronization error on every start of frame. There could be a delay in the firmware when the header is added on sending the vendor command between successive frames. On the image sensor side, the delay may be less due to higher resolution and hence some data could be lost.

Best Regards,

Sananya

0 Likes