Can the level of CTL15 be read like a GPIO

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

cross mob
ReBa_1054056
Level 2
Level 2
10 sign-ins 10 replies posted 5 replies posted

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

0 Likes