Can you help me PIC IIC drive MMA7455L freescale accelerometer

Status
Not open for further replies.

jason540

New Member
i use a PIC 18F4620 write a IIC(Inter-Integrated Circuit) to drive MMA7455L freescale accelerometer
Can you help me?????
 
What exactly is your problem?
Have you tried sth but not worked?
Is it a digital or analog accelerometer the one you're talking about?
 
The datasheet says it will use I2C(IIC?) or SPI.

Without more details from you it is hard to tell what is wrong.

The data sheet indicates that pin 7 should be tied low for and hi for I2C.
 
i use a PIC 18F4620 write a IIC(Inter-Integrated Circuit) to drive MMA7455L freescale accelerometer
Can you help me?????

Ok, now I understand that you probably mean that you want to drive the accelerometer with the I2C protocol. That's probably what you mean with the IIC.

So, have you started writing code? Is there any specific problem that you encounter?

Actually, you have to write code that implements the functionality of an I2C master. The I2C master drives the SCL line and when it wants to read from an I2C slave, it sends specific characters on the SDA line. Then the I2C slave responds, by driving the SDA line. I believe you can find sample code by googling.

However, if you have problems that are specific with the part (the accelerometer) that you want to drive, then you have to ask more specific help. We can't help you with such a general question.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…