cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

ReBa_1054056
New Contributor

Due to a misinterpretation of the meaning of the INT/CTL15 input it had been connected in hardware to a status signal. So it would be nice to be able to read the level of this pin CTL15 like a GPIO or through another method or by means of other functions. Is this possible in anyway?

   

Rene

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

   

You cannot use this as an ordinary GPIO. However, may use this as a control input pin in the GPIF.

   

In your GPIF Designer, add an input pin and select the "INT" in the drop down list.

   

In the state machine, you can have a transition equation as which goes from one state is another when this INT Control pin goes high or low. In the resulting states, you can add the INTR_CPU action. This would trigger an interrupt to the firmware which can be handled by a callback function registered using  CyU3PGpifRegisterCallback. Refer the FX3 API GUide and GPIF Designer User guide for details on CyU3PGpifRegisterCallback and INTR_CPU.

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

   

You cannot use this as an ordinary GPIO. However, may use this as a control input pin in the GPIF.

   

In your GPIF Designer, add an input pin and select the "INT" in the drop down list.

   

In the state machine, you can have a transition equation as which goes from one state is another when this INT Control pin goes high or low. In the resulting states, you can add the INTR_CPU action. This would trigger an interrupt to the firmware which can be handled by a callback function registered using  CyU3PGpifRegisterCallback. Refer the FX3 API GUide and GPIF Designer User guide for details on CyU3PGpifRegisterCallback and INTR_CPU.

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes