FXOS8700CQ pulse detection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXOS8700CQ pulse detection

1,274 Views
kurtmirdell
Contributor II

I am trying to get double-tap detection to work properly. I think the data sheet is a little unclear.

Is the treshold values (PULSE_THSX/Y/Z) absolute values or differential values? Depending on orientation there will be a static value between -1g and +1g. The tap comes on top of that.

The time steps in table 135 and 136 refers to HP_FILTER_CUTOFF[pls_hpf_en] = 0 or 1. However, the HP_FILTER_CUTOFF doesn't have a pls_hpf_en bit. It has bits pulse_hpf_byp  and pulse_lpf_en. I can't find any description what these two bits are doing. Why would you want low pass filter for pulse detection?

Labels (1)
0 Kudos
1 Reply

1,091 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Kurt,

The tap/pulse detection function can be configured to run through the high-pass filter (HPF) using the pulse_hpf_byp bit.

 

If pulse_hpf_byp = 0, the tap/pulse detection function processes high-pass filtered data, so the threshold value in PULSE_THSX/Y/Z registers should not take into account the static acceleration.

 

If pulse_hpf_byp = 1, the tap/pulse detection function does not process high-pass filtered data (HPF is bypassed) and the threshold value needs to take into account the static acceleration.

 

As for the pls_hpf_en bit, it is indeed an error, the correct bit is pulse_lpf_en in the HP_FILTER_CUTOFF register. When the low-pass filter is enabled (pulse_lpf_en = 1), the time step doubles. The LPF should help eliminate additional ringing after the tap signature is detected.

I hope it answers your questions.

Best regards,

Tomas

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-778776%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFXOS8700CQ%20pulse%20detection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778776%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20get%20double-tap%20detection%20to%20work%20properly.%20I%20think%20the%20data%20sheet%20is%20a%20little%20unclear.%20%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIs%20the%20treshold%20values%20(PULSE_THSX%2FY%2FZ)%20absolute%20values%20or%20differential%20values%3F%20Depending%20on%20orientation%20there%20will%20be%20a%20static%20value%20between%20-1g%20and%20%2B1g.%20The%20tap%20comes%20on%20top%20of%20that.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20time%20steps%20in%20table%20135%20and%20136%20refers%20to%20HP_FILTER_CUTOFF%5Bpls_hpf_en%5D%20%3D%200%20or%201.%20However%2C%20the%20HP_FILTER_CUTOFF%20doesn't%20have%20a%20pls_hpf_en%20bit.%20It%20has%20bits%20pulse_hpf_byp%26nbsp%3B%20and%20pulse_lpf_en.%20I%20can't%20find%20any%20description%20what%20these%20two%20bits%20are%20doing.%20Why%20would%20you%20want%20low%20pass%20filter%20for%20pulse%20detection%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-778776%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAccelerometers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-778777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FXOS8700CQ%20pulse%20detection%20%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778777%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Kurt%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20tap%2Fpulse%20detection%20function%20can%20be%20configured%20to%20run%20through%20the%20high-pass%20filter%20(HPF)%20using%20the%20pulse_hpf_byp%20bit.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIf%20pulse_hpf_byp%20%3D%200%2C%20the%20tap%2Fpulse%20detection%20function%20processes%20high-pass%20filtered%20data%2C%20so%20the%20threshold%20value%20in%20PULSE_THSX%2FY%2FZ%20registers%20should%20not%20take%20into%20account%20the%20static%20acceleration.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIf%20pulse_hpf_byp%20%3D%201%2C%20the%20tap%2Fpulse%20detection%20function%20does%20not%20process%20high-pass%20filtered%20data%20(HPF%20is%20bypassed)%20and%20the%20threshold%20value%20needs%20to%20take%20into%20account%20the%20static%20acceleration.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAs%20for%20the%20pls_hpf_en%20bit%2C%20it%20is%20indeed%20an%20error%2C%20the%20correct%20bit%20is%20pulse_lpf_en%20in%20the%20HP_FILTER_CUTOFF%20register.%20When%20the%20low-pass%20filter%20is%20enabled%20(pulse_lpf_en%20%3D%201)%2C%20the%20time%20step%20doubles.%20The%20LPF%20should%20help%20eliminate%20additional%20ringing%20after%20the%20tap%20signature%20is%20detected.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20hope%20it%20answers%20your%20questions.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ETomas%3C%2FP%3E%3C%2FLINGO-BODY%3E