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

USB superspeed peripherals Forum Discussions

NoAr_1540581
Level 5
100 replies posted 100 sign-ins 50 replies posted
Level 5

Hello

For LED control, I am thinking of controlling GPIO High/LOW with FW. However, I would like to synchronize the GPIO High/LOW switching with the Frame signal of the image sensor, but is it possible to control the GPIO by synchronizing it with the "Frame signal" with the CX3 F/W?

If possible, how do we specifically sensor Frame  singnal synchronize with the CX3 F/W?

 

Best Regards

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator 500 solutions authored 1000 replies posted 750 replies posted
Moderator

Hello,

You can try asserting the GPIO in the DMA callback when the first buffer of the frame is received and de-assert when the DMA buffer with partial buffer is received.

To make the transition faster, you can try this using GPIO register directly.

Please note that this won't give you exact synchronization with the FV and LV due to the delay/processing  in DMA callback

Regards,
Rashi

View solution in original post

0 Likes
2 Replies
JayakrishnaT_76
Moderator
Moderator First question asked 1000 replies posted 750 replies posted
Moderator

Hello,

Can you please elaborate on why you need to control the GPIO based on the Frame signal? Also, by Frame signal, do you mean Frame valid signal? And do you want it to be perfectly synchronized with the FV signal?

Best Regards,
Jayakrishna
0 Likes
Rashi_Vatsa
Moderator
Moderator 500 solutions authored 1000 replies posted 750 replies posted
Moderator

Hello,

You can try asserting the GPIO in the DMA callback when the first buffer of the frame is received and de-assert when the DMA buffer with partial buffer is received.

To make the transition faster, you can try this using GPIO register directly.

Please note that this won't give you exact synchronization with the FV and LV due to the delay/processing  in DMA callback

Regards,
Rashi
0 Likes