Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Discussion Groups

Discussion Groups | TMS320C54x | Missed INT0 Interrupt?

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

Missed INT0 Interrupt? - Author Unknown - Apr 11 21:46:00 2003



Has anyone seen a case where the '5416 could miss an interrupt? I'm
grasping at straws here I know.

I've got this SPI interface that uses a couple of interrupt lines to
control the flow of the data, and it works most of the time :> But
after running for a bit (seconds to a minute or so) somethnig happens
and it stops.

Examining my state machine indicates that it totally missed an ack
interrupt from the slave processor. In the INT0 interrupt I'm
incrementing a counter that is checked and decremented in
non-interrupt time (surrounded by INTM=1/INTM=0 even though I don't
think a *(var) -= #1 needs interrupt protection because its a single
instruction, right?

Looking at the data on a scope (Tek 458, not great for this) I see SPI
clocks and an ack, so the slave, as far as I can tell, really is
pulling the line low (for about 1uS, more than long enough for the
DSP).

The DSP has a variety of things happening, mostly DMA interrupts going
off.

I really doubt the DSP could be missing the irq, but it sure looks
that way!

Does this ring any bells with anyone?

Thanks,

Brian

-----------------------------------------------------
Brian C. Lane (W7BCL) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )