need solution for FX2LP exposure

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

cross mob
BhBh_4156241
Level 2
Level 2
First like received

Hello,

I have interfaced fx2lp with image sensor,it is working fine.now i need to increase exposure by using SET command from GUI,

what are the changes need to modified in firmware? is there any condition? if you have any sample code related to this please do  share me.

Thanks &regards

Bhavya

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

Hello Bhavya

Hope you are implementing UVC class.

Exposure setting is a Input Terminal Request. So you need to:

a. Add the exposure support in the Input terminal Descriptor

b. Handle the request in the firmware. When you get SET_CUR you will have to configure the image sensor accordingly.

For general example code refer to KBA articles:

Interfacing FX2LP™ with Image Sensor – KBA95736

USB2.0 Camera Interface Using FX2LP™ and Lattice CrossLink FPGA - KBA222479

Best Regards

Yatheesh

View solution in original post

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

Hello Bhavya

Hope you are implementing UVC class.

Exposure setting is a Input Terminal Request. So you need to:

a. Add the exposure support in the Input terminal Descriptor

b. Handle the request in the firmware. When you get SET_CUR you will have to configure the image sensor accordingly.

For general example code refer to KBA articles:

Interfacing FX2LP™ with Image Sensor – KBA95736

USB2.0 Camera Interface Using FX2LP™ and Lattice CrossLink FPGA - KBA222479

Best Regards

Yatheesh

0 Likes

Hello Yatheesh

Thank you for reply

Is there any other method? to change exposure

Best regards

Bhavya

0 Likes

Hello Bhavya,

.

Instead of using UVC you can develop your own application using the vendor class. Please refer to Aptina_Cypress_FX2LP_Ref_Design in the KBA article - KBA95736 (link is provided in the previous response).

If you are implementing UVC then exposure support should be adder in the GUI and the request to the firmware from the GUI should initiate i2c commands to the image sensor where the respective registers which are set for the exposure are written with the needed exposure values.

Best Regards,

Yatheesh

0 Likes