|
MLX90609 Datasheet, PDF (14/22 Pages) List of Unclassifed Manufacturers – Angular Rate Sensor (Standard version) | |||
|
◁ |
MLX90609
Angular Rate Sensor (Standard version)
5.3.2 Reading the Digital Angular Rate or Temperature (suggested procedure)
There is a recommended sequence below to obtain digital data from the ADC.
Notes:
- The bit with leftmost position should be shifted first.
- Below âxâ means any value: â0â or â1â.
⢠Step 1 (put ADC to the active mode if it wasnât)
Use SPI to send ADCC instruction (MOSI): 1 0 0 1 x 1 0 0 x x x x x x x x x x x x x x x x
And check 15th bit of the answer (MISO):
If 15th bit is zero, the instruction is accepted.
0xxxxxxxxxxxxxxx
Before to go to the Step 2 provide a delay > 115 µs or wait till the EOC bit is set.
⢠Step 2 (conversion start)
Use SPI to send ADCC instruction(MOSI):1 0 0 1 CHAN 1 0 0 x x x x x x x x x x x x x x x x
And check 15th bit of the answer (MISO):
If 15th bit is zero, the instruction is accepted.
0xxxxxxxxxxxxxxx
CHAN bit specifies the input source of the ADC.
CHAN=0: The angular rate signal.
CHAN=1: The temperature sensor signal.
Go to the Step 3.
⢠Step 3 (polling and result obtaining)
Use SPI to send ADCR instruction and check 15th and 13th bits of the answer:
1000 0000 xxxx x x x x x x x x x x xx
0 x EOC x AD10 AD9 AD8 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 0
If 15th bit is zero, the instruction is accepted.
If 13th bit (EOC) is zero, the conversion is still in progress and the result of the
conversion (bits AD10â¦AD0) is not valid. As soon as the EOC bit is set the conversion is
completed and the result is valid.
Instead of the polling of the EOC bit one can use a simple delay that should be bigger
than a maximal conversion time (>115 µs, see table 4).
Go to the Step 2 to do the next conversion or to the Step 4 to put ADC to the sleep mode.
⢠Step 4 (put ADC to the sleep mode if itâs necessary)
Use SPI to send ADCC instruction (MOSI): 1 0 0 1 x 0 0 0 x x x x x x x x x x x x x x x x
And check 15th bit of the answer (MISO):
If 15th bit is zero, the instruction is accepted.
0xxxxxxxxxxxxxxx
390109060901
Rev 007
Page 14 of 22
Data Sheet
January/08
|
▷ |