Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
 
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top