Hi, I wonder if someone could please clarify something regarding SPI;
Im running multiple slaves of a single SPI port by using a slave select bus. This is a pretty standard layout and works well. My question is when your using devices that run on different SPI formats (polarity and phase) IE the mobileLCD which of the top of my head runs on format 1 spi.format(8,1) and a ADXL345 which runs on format 3 spi.format(8,3). I have already had this working but after doing some slight rewiring the LCD appears not to function when i reset the SPI format.
When you set up a second SPI on the same port, does the MBed automatically switch between the 2 (or more) formats, or does the format become associated with the port and would need to be changed again before communication with another device?
thanks, martin.
Hi, I wonder if someone could please clarify something regarding SPI;
Im running multiple slaves of a single SPI port by using a slave select bus. This is a pretty standard layout and works well. My question is when your using devices that run on different SPI formats (polarity and phase) IE the mobileLCD which of the top of my head runs on format 1 spi.format(8,1) and a ADXL345 which runs on format 3 spi.format(8,3). I have already had this working but after doing some slight rewiring the LCD appears not to function when i reset the SPI format.
When you set up a second SPI on the same port, does the MBed automatically switch between the 2 (or more) formats, or does the format become associated with the port and would need to be changed again before communication with another device?
thanks, martin.