Change PIB clock frequency and GPIF width by EP0

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

cross mob
Anonymous
Not applicable

Hi,

   

 

   

As I described in another thread, I can change the GPIF width at running time, but the setting does not take effect immediately. It becomes effective with the second packet after the change. I don't know why this happens.

   

Another issue is that I failed to change PIB clock at running time. I destroyed the DMA channels and called CyU3PPibDeInit and then call CyU3PPibInit to set new frequency and create DMA channels again. I found that the PIB clock is changed, but the GPIF has no output when there is out packet from USB endpoint.

   

Anyone has any idea on above issues?

   

 

   

Thanks,

   

Rover

0 Likes
1 Reply