FX3 Initalising / deinitialising GPIOs for power supply switching etc. uisng UVC snapshot example

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

cross mob
ToWo_4256761
Level 1
Level 1

Hi,

any suggestions or examples for initializing spare GPIO pins to control peripherals such as power supplies whilst using the snapshot UVC.

I would like to power up some external peripheral controls in a controlled manner after powering up the main FX3 chip and before launching the main video application

and also de-initializing them for low power mode.

Have the peripherals initializing and running a basic test cycle using the GPIO application example successfully.

Any help appreciated.

0 Likes
1 Solution

Hello Tony,

The example you are referring to is from this thread Request for Snapshot button interface for still image capture [ Using CX3 / FX3 ] . This firmware is having a 32 bit interface.

As per the attached only GPIO 45 can be used. But if your application doesn't require I2S interface (i.e. GPIO [50] - [52] & GPIO[57]). If UART flow control pins are not require you can use them too as GPIO. You need by overriding those pins using CyU3PDeviceGpioOverride API.

As you mentioned you need to control other peripherals using these GPIO's based on the starting and stopping of the UVC application.

For example: When the UVC host application is closed there will be Clear feature sent from host. On getting the request from host the application is stopped. You can drive the GPIO to put the other peripherals into low power mode. You can do it in the same application. I don't find the need to create separate thread for this.

Please refer to AN70707 for the power domains details of the pins.

Please let me know if any queries on this

Regards,

Rashi

Regards,
Rashi

View solution in original post

0 Likes
5 Replies