It was working few days a ago...this evening No matter what configuration I set, the output from any register is 0xFF..what's wrong? Is it defected? help....
thanks for your reply...Ive browsed through some threads available over the net. I found that lots of people mentioned about putting pullups at the data lines and SCL/SCK, what does that for? for my case, i am using PIC16f877 to interface to the sensor, and i just directly hook the sensor to the pic...btw SPI is used for my case...the output high signal from pic is about 4.5v. is it too high for the sensor to handle? the sensor is powered at 3v for VDD and VDD_IO. anything wrong with this? thx
sry, the system reformatted my texts... wat i mean is 10k resistor goes to the pic output and then to the device. and the 20k resistor is between 10k and the device.. am i right?
hi, alberto...now the voltage is stable at 3v...but i monitor the data sent to the pic from the sensor (i monitor it on the pc). its always 0. i checked pic datasheet. i found that pin RC4/SDI/SDA is Schmitt Trigger bufferred, which will recognize voltage approximately above 3.5v as input high. But the output high signal from the sensor is unable to reach that level now. and I think this is the reason I got output 0 from the sensor. how can I solve this problem?
If you're running on batteries, you would be better off to use the same battery to power both the PIC and the LIS302DL. Make sure you use bypass capacitors on both the PIC and your sensor.