This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28035: How to use GPIO inputs to trigger an interupt

Part Number: TMS320F28035

Tool/software: Code Composer Studio

Hello,

I have a custom pcb that is using the TMS320F28035.  I am building a motor controller and using the F28035 to read Hall signals and to produce PWM signals for powering the gates of the three H-bridges that are connected to the three phases of the BLDC motor.  I am wanting to use the motor's Hall signals to determine which gates to turn on/off and want to use interrupts for indicating a Hall signal change.  My Hall signals are connected to pins 4, 5, and 6 (GPIO 23, GPIO 42, and GPIO 43).  My fear is that these pins cannot be used for interrupts.  Is there away to have a GPIO signal as interrupts?  Also, if these pins cannot be used for interrupts, which GPIO's need to be used.  I thought one of the references I had read indicated that only GPIO 0-31 could be used as external interrupts.  Any help would be greatly appreciated.  

Thank you,

Brandon

  • Brandon,

    You are correct, the F28035 has three external interrupts (XINT1, XINT2, and XINT3), which can be mapped to any Port A GPIO 0-31. Please refer to the "TMS320F2803x Piccolo System Control and Interrupts Reference Guide" SPRUGL8C, and see the GPIOXINTnSEL register on page 103.

    I hope this answers your question and if so, please click the green "Verified Answer" button. Thank you.

    - Ken
  • Ken,
    Thank you for the quick response. The reference you suggested is actually where I had read that GPIO 0-31 could be used as interrupts. I guess I will be using a couple jumper wires until I can print off another PCB lol. Thanks again.

    -Brandon