Thanks, I ended up making wiht work by selecting and deselecting the spi after each byte, not how the gyros timing diagram shows it should be done but it works so Im happy.
My next issue is making 2 gyros read on the same bus, can this be done by just creating another SPI config using the same SPI ...
Search found 3 matches
- Sat Dec 03, 2011 10:30 am
- Forum: General Support
- Topic: Cant read SPI Gyro
- Replies: 5
- Views: 4811
- Fri Dec 02, 2011 1:39 am
- Forum: General Support
- Topic: Cant read SPI Gyro
- Replies: 5
- Views: 4811
Re: Cant read SPI Gyro
Thanks for the advice, I have tried that, config is now just
static const SPIConfig spicfg = {
spicb,
/* HW dependent part.*/
GPIOB,
12,
SPI_CR1_BR_1
};
But still getting the same data out.
From looking at the gyro data sheet the timing diagram for its SPI shows that there be a minimum ...
static const SPIConfig spicfg = {
spicb,
/* HW dependent part.*/
GPIOB,
12,
SPI_CR1_BR_1
};
But still getting the same data out.
From looking at the gyro data sheet the timing diagram for its SPI shows that there be a minimum ...
- Thu Dec 01, 2011 6:29 am
- Forum: General Support
- Topic: Cant read SPI Gyro
- Replies: 5
- Views: 4811
Cant read SPI Gyro
Hi,
Im currently trying to interface my STM32F4 discovery board with a silicon sensing CRG20 gyro Datasheet
Normally they output a 6 byte packet but all I am receiving is a 1 byte with 2 bits set (same ones each time) and 5 bytes of 0. I have tested that the SPI reading is working be connecting the ...
Im currently trying to interface my STM32F4 discovery board with a silicon sensing CRG20 gyro Datasheet
Normally they output a 6 byte packet but all I am receiving is a 1 byte with 2 bits set (same ones each time) and 5 bytes of 0. I have tested that the SPI reading is working be connecting the ...