Frequently Asked Questions
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
February 7, 2014
about 2 years ago
Hi, I’m trying to do a burst read. I’m using the MAG3110 demo board above/w FreeScale’s MC9S08 as the interface. I am doing the following:
// X MSB
IIC1C1 = IIC_Start; <—start signal
IIC1D = IIC_Write; <— 0x1C
IIC1D = OUT_X_MSB; <— x-axis MSB (0x01)
IIC1C1 = IIC_Repeat; <—- repeat start
IIC1D = IIC_Read; <—- 0x1D
IIC1C1 = IIC_Stop; <—- stop signal
I keep getting 0xFF coming back to my data register, I can confirm this on the scope. It doesn’t matter what I ask to read
from the slave address the register always reports 0xFF? I thought I was suppose to get a burst of six bytes coming back, I only see one byte and its the same for everything??? Can someone help!
No public wish lists :(
Forgot your password?
No account? Register one!