AnsweredAssumed Answered

Watermark interrupt problems with ADXL362

Question asked by emil@iconsultable.no on Dec 7, 2015
Latest reply on Jan 9, 2016 by neilzhao

Hi, I am testing out a new reading scheme, to use interrupt based reading from FIFO instead of a poll method.

 

I set:

FILTER_CTL = 0x13

FIFO_CTL = 0x0A

FIFO_SAMPLES = 0x2C

ACT_INACT_CTL = 0x1F

POWER_CTL = 0x02

INTMAP1 = 0x4

 

Every time the interrupt happens I read the fifo data in one burst read operation.

I send CMD_FIFO (1 byte) + for 600 additional empty 00 bytes to read it in, because 1 sample is data stored in 2 bytes right?

 

What happens is that I get an interrupt every 300-400 ms or so. I thought AH + 0x2C would give me 299 samples watermark ?

If I set it to lower Hz, the interrupt will happen slower. But I thought at 100 Hz this would give me an interrupt every second ? Since I set up 300 samples = x,y,z * 100, thus 100 xyz samples which would fill up in ~1 second.

 

Thanks!

Outcomes