Hi all
I am currently trying the SCP1000 in I2C with my MSP430F2619 board.
I also have a LIS331DLH ( I2C too ), and I can communicate with the LIS331DLH without any problem.
But when I try to communicate with the SCP1000, every register I read returns 0xFF …
My sequence is the following :
-
power ON the SCP1000
-
wait several seconds
-
send 0x0A to register 0x03 ( config = Stand-alone, high resolution )
-
check if DRDY pin is high
-
read DATARD16 registers ( 0x80 )
First, the DRDY pin is ALWAYS high … it never goes down.
Then, the value I read in DATARD16 is 0xFFFF.
I also tried to read the REVID register ( 0x00 ), and it also returns me 0xFF.
Any idea ?
Thanks.
GeneW
2
I’m having the same problem. I have also tried reading the status register and get the same 0xFF.
I do get a pulse of ~20ms from the DRDY pin when my sketch runs.
I know that SparkFun sells the SPI version of this device so maybe no one here has used the TWI version.
Any help would be appreciated.
Problem still not solved …
I watch the lines with a scope, and I can see that the SCP1000 is well responding to its address ( he sends ACKs ) …
But still every registers reading gives 0xFF.
GeneW
4
Toufinet:
Problem still not solved …
I watch the lines with a scope, and I can see that the SCP1000 is well responding to its address ( he sends ACKs ) …
But still every registers reading gives 0xFF.
Did you figure out how to get the Wire library to issue the repeated start condition without issuing a stop condition beforehand?
GeneW
5
Oops, sorry, I wasn’t paying attention to the sub forum we are in. You are not using an Arduino.