i'm trying to build my inertial measurement unit (IMU) where i'm using several sensors all must be read at the same time....but all of these sensor use SPI interface.....what i need to ask you first...is there any microcontroller able to read up to 7 sensors all at one in SPI mode?! second....if not..how can i do it using any extra device?
Clearly they can't all be "read at once" unless you have multiple SPI interfaces (either peripheral or software implementation) on a microcontroller. I don't know of
any such device, it doesn't exist.
They can be read sequentially - most devices/sensors with SPI have a *CE pin (chip enable). Connect each *CE pin to the microcontroller to select the device to control.
If your sensors are available as I2C as well as SPI some PIC32s have 4 SPI and 5 I2C interfaces - also you could use DMA
Also you need to specify what is "read at the same time", e.g. all within a nanosecond or a microsecond or a millsecond ?
If your sensors are available as I2C as well as SPI some PIC32s have 4 SPI and 5 I2C interfaces - also you could use DMA
Also you need to specify what is "read at the same time", e.g. all within a nanosecond or a microsecond or a millsecond ?