AnsweredAssumed Answered

EZ-KIT ADSP-21469 timer interrupt from external voltage

Question asked by pjacobs4 on Oct 14, 2014
Latest reply on Oct 16, 2014 by Jithul_Janardhanan

I am trying to set up timer0 in width capture mode and have the following code in VisualDSP:

SRU2(LOW, DPI_PBEN13_I);
SRU2(DAI_PB13_O,TIMER0_I); //- Route pin 13 to timer for interrupt
asm("nop;"); //Wait

*pTM0CTL = TIMODEW|PULSE|IRQEN|PRDCNT;

interrupts(SIG_P2, calc_rpm);
*pTMSTAT = TIM0EN;

As you can tell from the code I am trying to read a pulse train and convert it to RPM in the interrupt callback.

 

I have tried this with/without the SRU routing lines and attached the pulse to the IRQ0 pin on the 60 pin header as well as PB13 on the header.

 

Any ideas?  I am really getting frustrated.....

 

Pete

Outcomes