ov5640 VTS/HTS

cancel
Showing results for 
Search instead for 
Did you mean: 

ov5640 VTS/HTS

2,726 Views
adc1
Contributor IV

Hi,
I'm trying to configure some custom resolutions for ov5640 camera sensor. Where can I found detailed information on how to configure correctly TIMING HTS (0x380C + 0x380D) and TIMING VTS (0x380E + 0x380F) registries? OmniVision documentation do not explain clearly how these values affect image, could someone help me to understand what HTS/VTS stand for and how to calculate them?

thanks,
best regards
Andrea

Labels (1)
5 Replies

504 Views
adc1
Contributor IV

Could anyone help me understand HTS/VTS values?

0 Kudos

504 Views
mlinuxl
Contributor I

Hello andrea, did you figure out how to calculate HTS/VTS?
I am in same problem, plus i want to enable binning pixels to get a picture with full angle from my 150 degree lens on 720p resolution and 25fps. Is this possible?
For now, i got nothing impressive... Just 15 fps and picture is cutted from sensor i can not get wide angle picture on 720p.

I got wide angle only with VGA resolution but also only 15 fps. It looks like that picture is scalled down from full resolution to VGA and sensor ISP can not give to you more than 15 fps.

Regards

Milos

0 Kudos

504 Views
adc1
Contributor IV

Hi Milos,
have you solved? I haven't a formula to calculate HTS and VTS but I succeeded configuring some custom resolutions. For example 1280x960 at 45fps. You have to enable binning in 0x3821 register and setup correct subsampling increment

{0x380c, 0x07, 0, 0}, {0x380d, 0x64, 0, 0}, // HTS (1892)
{0x380e, 0x03, 0, 0}, {0x380f, 0xf2, 0, 0}, // VTS (1010)

{0x3814, 0x31, 0, 0}, {0x3815, 0x31, 0, 0}, // TIMING X/Y INC: SUBSAMPLING INCREMENT

regards,
Andrea

0 Kudos

504 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Andrea,

If you are working with i.MX6 BSP you do not need to change HTS/VTS, and you can not change the clock for resolution, however please for change this link the resolution on it:

https://community.nxp.com/thread/388306 

Regards

0 Kudos

504 Views
adc1
Contributor IV

Hi,
but if I want to add a custom image window I need to find out my custom HTS and VTS. I want to know how to calculate them, any hint?

regards

0 Kudos