1 Reply Latest reply on Mar 9, 2016 7:25 AM by madhul_36

    Can the level of CTL15 be read like a GPIO


      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?



        • 1. Re: Can the level of CTL15 be read like a GPIO



          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.




          - Madhu Sudhan