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
Interrupts not working when using SPI
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Interrupts not working when using SPI
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 45
- Joined: Mon Dec 22, 2008 11:22 pm
- Location: Prospect, NS, Canada
- Has thanked: 7 times
- Been thanked: 2 times
- Contact:
Re: Interrupts not working when using SPI
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
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
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Interrupts not working when using SPI
Hi Henk,
That's great news, glad you got it working and thanks for letting us know.
That's great news, glad you got it working and thanks for letting us know.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel