Page 1 of 1

Interrupts not working when using SPI

Posted: Sun Oct 30, 2011 3:04 am
by henker
I just added an SPI interface to read a real-time clock chip.
I noticed however that after adding the SPI interface, mu Interrupts don't work anymore. I have two Interrups; One on input B0 and a custom Interrupt to check for incoming Serial Data.
Any idea's?

Thanks for the help.

Henk

Re: Interrupts not working when using SPI

Posted: Tue Nov 01, 2011 11:21 am
by Benj
Hello Henk,

It looks like the two NVM SPI functions briefly disable interrupts during the transmission of the SPI data. The standard SPI functions are not effected eg SPI Send and Get char.

Re: Interrupts not working when using SPI

Posted: Wed Nov 02, 2011 1:32 am
by henker
Thanks Ben,
I did solve the problem by assignining different ports for the NVM and DAC. The ports that were assigned were actually used for the RTX (RS232)

Thanks
Henk

Re: Interrupts not working when using SPI

Posted: Wed Nov 02, 2011 11:27 am
by Benj
Hi Henk,

That's great news, glad you got it working and thanks for letting us know.