9250 SPI

By epicentre , 17 August 2014

Hi,

I have problems talking to the 9250 over spi.
I initialize it like this:
REG_USER_CTRL = BIT_I2C_IF_DIS
REG_PWR_MGMT_1 = BIT_H_RESET
REG_PWR_MGMT_1 = BIT_CLKSEL_AUTO
REG_PWR_MGMT_2 = 0

And then I read all registers from 0 to 127 and get mostly 0x00/0xFF except for these ones:
reg 0x20: 0x8
reg 0x21: 0x8
reg 0x22: 0xC7
reg 0x23: 0xC7
reg 0x24: 0xCA
reg 0x25: 0xCA
reg 0x26: 0x76
reg 0x27: 0x76
reg 0x28: 0x66
reg 0x29: 0x66
reg 0x2A: 0x7A
reg 0x2B: 0x7A
reg 0x2C: 0x6A
reg 0x2D: 0x6A
reg 0x2E: 0x9E
reg 0x2F: 0x9E

WHO_AM_I returns 0xFF.

I'm using spi mode zero - SPI_CPHA == 0 and SPI_CPOL == 0 and 500Khz.
Any hints as to what I'm doing wrong?
The chip is good as I can use it over i2c.

Thanks,
Catalin

phpbb Topic ID
16482