AnsweredAssumed Answered

SPI for beginers

Question asked by AviMagos on May 9, 2011
Latest reply on May 11, 2011 by Nabeel

Hi,

 

I'm working with BF518F.

 

I'm trying to work with SPI1 port, slave mode, no dma.

 

Assuming I set TIMOD bits to 00 (receive mode) - I expect some kind of interrupt to be generated by the SPI HW whenever a new data word has been received.

 

Problem is I can't make sense of the documentation (HW -reference) - to find out which interrupt is set, and how to re-map it.

 

The documentation refers me to "table 5-3. Peripheral Interrupt Events" however there is no definition of the name of the interrupt source. Is it "SPORT1 status" or "SPI1 STATUS" (defined in table 5-4 and not 5-3!!!) or something else?

 

Which ivg is it mapped to?

 

If I want to remap it using adi_int_SICSetIVG library function (from adi_int.c) which "ADI_INT_PERIPHERAL_ID" value do I use?

 

Thanks,

 

Avi & Amit.

Outcomes