Discussion in "ARM Development" started by    Pawankumar    Mar 10, 2012.
Sat Mar 10 2012, 05:13 pm
#1
Hi,

I want to interface accelerometer(MMA8451) with my LPC2148 board. I have read the datasheets,tutorials and codebundle code but its all complicated for me. I would be glad if someone posts a step by step tutorial for LPC2148 I2C interface.

Thank you.

Pawan
Mon Mar 12 2012, 08:14 am
#2
well i2c for LPC is not that step by step easy
I guess its all self explaining if you go through the datasheet and i2c state machine they have given in the datasheet. you just need to set the proper bits and wait for status to change. But make sure you understand the i2c protocol correctly before getting your hands dirty
Thu Mar 22 2012, 05:23 pm
#3
Hi Ajay,

Thanks to the tutorial in this site. I have learnt general I2C communication.I can read a byte,send a byte to a specific register and interface EEPROM. I need to demonstrate a crash/accident using the MMA8451 accelerometer. any Ideas?
Tue Mar 27 2012, 03:13 am
#4
I really have no idea of the scenario MMA8451 will report when a crash happens... try to post some values for debug on terminal and shake the device to see what you get on terminal.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm