FX3: How to set GPIF output clock frequency?

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

cross mob
doch_3739346
Level 4
Level 4

Hi,

On board, FX3 main clock is supplied by external 19.2MHz crystal and FSCL[2:0] is connected to gnd to select 19.2MHz crystal.

Want to configure FX3 as master and generate clock for slave FPGA on PIN J6(GPIO[16]).

1. How to set GPIF output clock frequency?

2. Once it's set, all GPIOs are working at this clock frequency?

Thanks!

pastedImage_1.png

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

- To set the GPIF II output clock frequency, use the CyU3PPibInit() API along with the required CyU3PPibClock_t structure.

- GPIO 16 is either PCLK/CLK pin depending on whether it is configured as GPIF II master or slave. The clock frequency of operation of other GPIO pins are configured using the CyU3PGpioInit() API with the required CyU3PGpioClock_t structure.

Best regards,

Srinath S

View solution in original post

0 Likes
1 Reply
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

- To set the GPIF II output clock frequency, use the CyU3PPibInit() API along with the required CyU3PPibClock_t structure.

- GPIO 16 is either PCLK/CLK pin depending on whether it is configured as GPIF II master or slave. The clock frequency of operation of other GPIO pins are configured using the CyU3PGpioInit() API with the required CyU3PGpioClock_t structure.

Best regards,

Srinath S

0 Likes