Hi, I'm developing a localizator with the accelerometer MMA7455L, but it don't works.
Someone used this sensor?
I'm using a PIC16F88.
I'm connected the pin 1,6,7 to 3,6 VDC; the pin 2,5 to GND, the pin 14 to micro's SCL and the pin 13 to micro's SDA. SDA and SCL have two 4,7K pull up resistors. I try to read some register without answer. I try to connect pin 4 to GND, but without effect. Is the device address $1D?
Have you some software example for read and write the registers with I2C Bus? Can you help me?
This is a piece of code:
IND1 CON $1D '%00011101
PAUSE 2000
MAIN:
ADDRESS=$1A
I2CREAD SDA,SCL,IND1,ADDRESS,[TMP]
DEBUG "MODE1 ",BIN8 TMP,13,10
PAUSE 1000
goto main
thank you
Bookmarks