Reading from LIS3MDL interrupt fails the second time.
Hey All,
I'm trying to read from an LIS3MDL after a threshold interrupt. While I configure everything ok and receive interrupts the chip only responds to the first event. All subsequent events fail. Here's the setup:
write to 0x1C ack data: 0x0F
read to 0x1C ack data: 0x3D
write to 0x1C ack data: 0x20 0x80 0x00 0x00 0x00 0x40
write to 0x1C ack data: 0x22
read to 0x1C ack data: 0x00
write to 0x1C ack data: 0x22 0x02
write to 0x1C ack data: 0x20 0x98
write to 0x1C ack data: 0x22 0x00
write to 0x1C ack data: 0x22
read to 0x1C ack data: 0x00
write to 0x1C ack data: 0x22 0x02
write to 0x1C ack data: 0x32 0x30 0x75
write to 0x1C ack data: 0x22 0x00
write to 0x1C ack data: 0x30 0xED
(Side note, I was putting the device to idle before configuring interrupt, etc b/c I didn't know what was causing this lock up)
Then here's the read:
write to 0x1C ack data: 0x27
read to 0x1C ack data: 0xFF
write to 0x1C ack data: 0xA8
read to 0x1C ack data: 0xE8 0x6F 0x57 0xD8 0xD8 0x7F 0xE8 0x6F
If another interrupt happens after that, the device doesn't respond: (nothing happens in between)
write to 0x1C nak
Any thoughts are greatly appreciated.
