I am trying to set up timer0 in width capture mode and have the following code in VisualDSP:
|SRU2(DAI_PB13_O,TIMER0_I); //- Route pin 13 to timer for interrupt|
*pTM0CTL = TIMODEW|PULSE|IRQEN|PRDCNT;
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.....