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.

TMS320C6720 - How can I configure external interrupt ?

The C672x DSP has no dedicated general-purpose interrupt pins, but I can use dMAX in
combination with a McASP AMUTEIN signal to provide external interrupt capability. It has taken from datasheet.

I have written simple code to test my external interrupt.

	//External INT configuration
	*(int *)CFGMCASP0 = SPI1_SOMI_AMUTE; //I would like to use line called - AXR0[8]/AXR1[5]/SPI1_SOMI as my external INT line.

	*(int *)PFUNC0 = 0xFE00FFFF; //all MCASP's lines function as GPIO
	*(int *)AMUTE0 = (~ (1<<INEN) );

	*(int *)DEPR = 1<<EP26; //falling edge
	*(int *)DEHPR = 1<<EHP26; //priority
	*(int *)DEER = 1<<EE26; //enable
	*(int *)EVENT_26 = INTERRUPT_INT13<<16 | ETYPE; //configuration for CPU INT13

I confugured correctly core registers - like ISTP, IER and CSR. Other interrupts (like SPI, RTI) works correctly, but external interrupt doesn't work. It sometimes works good, but usually it doesn't work. I use function generator to create pulses for interrupt line. My current setting is: pulse witdh=300us, period=3ms and amplitude=3,3V. What's wrong in my code ? Sorry for my english - it's still no so good.

  • Hi Maciej,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    By any chance you looked into this document which details "Configuring External Interrupts on TMS320C672x Devices"?

    http://www.ti.com/lit/an/spraaj3/spraaj3.pdf

    http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spraaj3

    and the dmax user guide, http://www.ti.com/lit/ug/spru795d/spru795d.pdf

    Other info:

    There is a WIKI page with this Topic http://processors.wiki.ti.com/index.php/External_interrupt

    Regards,

    Shankari

     

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,

    Thank you for your post. I saw SPRAAJ3 (external interrupt), MCASP's user guide and SPRU759D (dMax user guide). It can't help me. Example code from SPRAAJ3 doesn't work and it uses CSL. CSL usually doesn't work and it genarate terrible and long code. So I don't would like to use CSL. My configuration is similar to SPRAAJ3, but I use only diffrent pin.

    I saw something strange with PDIN register (MCASP - it hold I/O pin state of each of the McASP pins - GPIO mode). If I manually changed logic level on the interrupt line PDIN hold "0" by all time. It's interesting becouse SPIPC2 (SPI - it hold I/O pin state of each of the SPI pins - GPIO mode) work correctly. I use SPI0 for communication and SPI1 only for GPIO. I tried turn off SPI1, but it wasn't solved my problem.

    Regards,

    Maciej

  • Hi Maciej,

    Thanks for your information. This post has been forwarded to experts to have a closer look on this problem.

    Hopefully it should get addressed.

     

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------