I'm trying to understand the peak detection feature in the ADXL372. In summary from what I understand:
- Highest magnitude sample gets stored in MAXPEAK_x_x registers after an activity -> inactivity event happens
Now the datasheet says:
"Follow these steps to enable peak detection: 1. Configure the FIFO_CTL register for peak detect mode (b0011100X to Register 0x3A). 2. Set the desired activity threshold and time settings (Register 0x23 to Register 0x29). 3. Set the desired inactivity threshold and time settings (Register 0x2A to Register 0x31). 4. Set the activity mode to linked or loop mode (Register 0x3E)."
What I'm confused about, is why does the FIFO need to be configured for peak detection here? Does the latest peak detection value not go directly into the MAXPEAK_x_x registers? Or does it go the FIFO and then the MAXPEAK_x_x registers are reading from FIFO?
Because let's say I want to also use the FIFO in triggered mode, after activity has been registered. Can't the peak detection maximum samples go straight to the MAXPEAK_x_x registers and be updated there whilst I use the FIFO in triggered mode to capture samples around the event?