cleo claudiu
Junior Member level 1
- Joined
- Jun 17, 2011
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Cluj Napoca, Romania
- Activity points
- 1,411
Hi, I am trying to read the ST L3G4200D Gyroscope using a Nexys2 FPGA board from Digilent.
I wrote the code for reading the gyroscope in Verilog, but there is something that I missed because the outputs, x, y, z, are most of the time 16 bits of 0 , or if not 16 bits of 1.
So i want to check with you if my implementation logic is good:
1. i've configured the fallowing registers:
CTR_REG4 -> LSB @ lower addres, scale selection: 500dps, 4 wire SPI interface
FIFO_CTRL_REG ->stream mode
CTRL_REG1 -> Otput Data Rate=800 Hz, normal mode of operation
Ctrl_REG5 -> enable FIFO
2. I didn't use the interrupts pins, i am just making reads with a frequency of 1 kHz
3. The SCLK frequency I used is 10 MHz
Wat am I missing? If some of u have experience with this Gyro, please hepl!
I wrote the code for reading the gyroscope in Verilog, but there is something that I missed because the outputs, x, y, z, are most of the time 16 bits of 0 , or if not 16 bits of 1.
So i want to check with you if my implementation logic is good:
1. i've configured the fallowing registers:
CTR_REG4 -> LSB @ lower addres, scale selection: 500dps, 4 wire SPI interface
FIFO_CTRL_REG ->stream mode
CTRL_REG1 -> Otput Data Rate=800 Hz, normal mode of operation
Ctrl_REG5 -> enable FIFO
2. I didn't use the interrupts pins, i am just making reads with a frequency of 1 kHz
3. The SCLK frequency I used is 10 MHz
Wat am I missing? If some of u have experience with this Gyro, please hepl!