Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Accelerometer sensor

Status
Not open for further replies.

amitaiwe

Member level 3
Joined
Feb 19, 2014
Messages
57
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
547
motion sensoring

Hi,
I have bought a MMA7455 3-Axis Accelerometer Module and I want to use it for a simple purpose
which is getting an indication that a movement of an object ( in which the Accelerometer is) has occurred upwards or downwards.
The Accelerometer needs to send the information to a PIC16f877. The thing is that the PIC is also
connected to another component which communicates only via SPI protocol.
can i communicate with both the components one after another? (twice SPI or SPI and I2C?)
what are the things that need to be done for enabling that?

Thanks, Amitai
 

Re: motion sensoring

SPI provides you the capability to select slave in general according to slave select input on SPI supported devices. You might want to use different pins on your microcontroller to provide Slave select input to devices and program those pins
Aashish
 

Quick look at your problem shows that you have to switch to I2C. For SPI you need different pins for MISO and MOSI.
You may try diode ,it may work. Module does say it support SPI and I2C so it must have some means to use single dataline for SPI.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top