How can I change the SPI_Mode during MCU is running? Some Devices work with SPI_Mode_0 and some other Devices with SPI_Mode_1. I cannot change the first selected SPI_Mode.
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
Posted: Tue Jan 05, 2010 8:07 am
It's been said, that you have to disable the SPI interface before changing the mode or speed, but I didn't try.
Michael Starkloff
Joined: 22 Oct 2009 Posts: 2
Posted: Tue Jan 05, 2010 8:18 am
I tried this (setup_spi(SPI_SS_DISABLED) or setup_spi(0x8000)), but with no success. Is there another possibility to switch off the SPI interface and then change to another SPI Mode?
In older projects I used another PIC (PIC16F877) with the PCM Compiler there wasn't a problem by changing the SPI Mode.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum