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.