Is anyone knows about how to interface two accelerometers using PSoC 4? I want to access two MMA7455L.Thank you
Is anyone knows about how to interface two accelerometers using PSoC 4? I want to access two MMA7455L.Thank you
Hi Yakub,
The MMA7455L seems to be an I2C/SPI accelerometer.
The PSoC 4 has a SCB (serial communication block) that can have 2 x I2C/SPI/UART on it. These alone can get you talking to 2 accelerometers.
Additionally, you can run a UDB-based SPI or I2C for a 3rd one in case you need it.
See this as an example: PSoC 4 Pioneer Kit Community Project#035 – UART, I2C, and SPI Joystick Example
Since SPI is a bus, there is no need to use multiple masters. Multiple chip-select signals are enough (and save pins that way). Different masters are only needed when the SPI configuration (CPOL / CPHA) are needed.
Since SPI is a bus, there is no need to use multiple masters. Multiple chip-select signals are enough (and save pins that way). Different masters are only needed when the SPI configuration (CPOL / CPHA) are needed.