Hi everyone,
I currently try to make a small application using the ICM20602.
I tried to configure the chip in order to get an interruption (INT pin) on Data Ready.
I use IAR IDE to compile my code.
I already spent the entire day to make it work but now I need some support.
Here is the state of my work:
• I interface the SPI communication @10MHz
• The communication with the ICM20602 is working well (I can read data by polling the registers 0x3B to 0x48).
• I was thinking I don't need the FSYNC pin for my application, so I set it to the ground. Is it ok?
Here is my ICM20602 configuration steps (at initialization):
Step | Register | Address | Value
(1) | PWR_MGMT_1 | 0x6B | 0x01
(2) | I2C_IF | 0x70 | 0x40
(3) | INT_PIN_CFG | 0x37 | 0x00
(4) | INT_ENABLE | 0x38 | 0x01
(5) | CONFIG | 0x1A | 0x03
(6) | ACCEL_CONFIG2 | 0x1D | 0x02
(7) | PWR_MGMT_2 | 0x6C | 0x38
(8) | ACCEL_CONFIG | 0x1C | 0x10
(9) | PWR_MGMT_2 | 0x6C | 0x3F
(10) | GYRO_CONFIG | 0x1B | 0x00
(11) | PWR_MGMT_1 | 0x6B | 0x01
(12) | USER_CTRL | 0x6A | 0x40
(13) | FIFO_EN | 0x23 | 0x18
And then waiting for the interruption on INT pin but without any response...
I already took a quick look at the example code from Invensense on a target STM32F4xx but I probably missed some information.
Can someone tell me what should be the minimal register configurations to use both accelerometer, gyrometer and temperature via the interruption?
Thanks a lot for your help,