FX3 INT# / CTL15 interrupt example

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

cross mob
Anonymous
Not applicable

Hi,

   

Is there an example of how to configure the INT# / CTL15 pin to handle interrupts on the FX3?  Using GPIF II Designer I tried configuring an input signal on the INT pin, then defined a state machine that sends INTR_CPU on an INT trigger.  I do see the pin go low (Polarity -> Active Low) but never see the firmware callback function called.  What else do I need to do?

   

In the firmware code:

   

void
AppThread_Entry (
        uint32_t input)
{

   

....

   

  CyU3PGpifLoad(&CyFxGpifConfig);
  CyU3PGpifSMStart (START, ALPHA_START);

   

  // register GPIF callback
  //CyU3PGpifRegisterCallback(GpifCallback);

   

   CyU3PGpifRegisterSMIntrCallback(GpifSMCallback);

   

....

   

}

0 Likes
4 Replies
Anonymous
Not applicable

Hi,

   

The INT Signal can be used only on a special mode of GPIF called the PP Mode. I hope you are using it in the normal mode. (Refre programmers manual for more details on PP Mode)

   

I recommend you to use ordinary GPIO Interrupt for your application.

   

Regards,

   

- Madhu Sudhan

Anonymous
Not applicable

Please explain further the meaning of PP mode!

What do you mean with ordinary GPIO mode? Should we set the IO pin to generate Interrrupts when it changes state??

0 Likes

Hello Verner Delueg,

Please refer to the section 7.4.6.1 in the FX3 TRM for details on PP_MODE.

Best regards,

Srinath S

0 Likes

Use another GPIO instead of INT for the detection of change state and to generate the interrupt.

0 Likes