AnsweredAssumed Answered

SPI1_IRQHandler not firing

Question asked by blesener.daniel on Mar 19, 2013
Latest reply on Mar 20, 2013 by blesener.daniel
I am very confused - this should be fairly straight forward.
I am operating in SPI_Direction_2Lines_FullDuplex mode. I am set for transmitting, and can see correct output of data on scope.

I enabled the TXEIE interrupt. The compiler see's it as valid code, but it never gets there.

I am disabling the intterupt in the compiler, and have tried turning the interrupt on after I start transmitting and before. Any ideas what this could be? Below is some code.

   chip_selectSPI1();                                             //Select slave
   if(SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_TXE))     //If done with previous transmit
       {
    SPI_I2S_SendData(SPI1, TEST);                         //Load transmit buffer
    SPI_I2S_ITConfig(SPI1, SPI_I2S_IT_TXE,ENABLE);     //Enable interrupt
       }

Any ideas? For now, all I want to get working is this interrupt, not BIMODE communication.

Thanks for the help
 

Outcomes