cancel
Showing results for 
Search instead for 
Did you mean: 

VD56G3 camera H front and backporch

Brenden_PLUS
Senior

Is there a way to change the Horizontal front and backporch?  

 

This is a addon to this question

https://community.st.com/t5/imaging-sensors/vd56g3-camera-change-the-frame-start-and-frame-end/m-p/888134#M6406


@Jean_Poire 

1 ACCEPTED SOLUTION

Accepted Solutions
Jean_Poire
ST Employee

Hi @Brenden_PLUS ,

You can add some horizontal blanking by increasing the line length.

You can use the register 0x0300, this is a static register, so you need to modify it before you start streaming.

 

Best regards,

Jean 

View solution in original post

2 REPLIES 2
Jean_Poire
ST Employee

Hi @Brenden_PLUS ,

You can add some horizontal blanking by increasing the line length.

You can use the register 0x0300, this is a static register, so you need to modify it before you start streaming.

 

Best regards,

Jean 

Brenden_PLUS
Senior

Thanks for the info!

 

So i managed to get the camera to work.  It was all my fault why it didn't work.  I'm using zephyr and i didn't set the clock frequency right.  

 

To set it in zephyr 4.3 you do this.

```c

video_init_ctrl(
&ctrls->pixel_rate, dev, VIDEO_CID_PIXEL_RATE,
(struct video_ctrl_range){
.min64 = VD56G3_PIXEL_RATE,
.max64 = VD56G3_PIXEL_RATE,
.step64 = 1,
.def64 = VD56G3_PIXEL_RATE});

```

 

Also my width and height were off by one.  So if you want something that's 640 by 480.

 

You set the roi_x_start = 0 and roi_y_end = 639.  Then when you read back the width size it's 640.  Then you do the same with the y.

 

One thing i did see with the dev board is the x_start and x_end is always 0 to 1123.   while the y actually sets its y region to start at the actual place you want to start to read.  Just thought that was interesting