The number of CAPSENSE average filter samples is 4, how to fix it to 5?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
CySysClkIloComp
Level 2
Level 2
5 likes given 5 replies posted 25 sign-ins

Very Simple Question!

The number of average filter samples is 4, how to fix it to 5?

 

Thanks.

0 Likes
1 Solution
Arpit_S
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 250 sign-ins

Hi @CySysClkIloComp ,

Average Filter takes the four most recent samples and computes their average to eliminate periodic noise. We cannot configure it to take 5 samples instead of 4 samples.

 

Thanks!
Kind Regards

Arpit Srivastav

View solution in original post

3 Replies
Arpit_S
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 250 sign-ins

Hi @CySysClkIloComp ,

Average Filter takes the four most recent samples and computes their average to eliminate periodic noise. Please allow me to check internally if in case we can configure the Average filter to take 5 most recent samples instead of 4. Let me get back to you.

 

Thanks!
Kind Regards

Arpit Srivastav

Arpit_S
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 250 sign-ins

Hi @CySysClkIloComp ,

Average Filter takes the four most recent samples and computes their average to eliminate periodic noise. We cannot configure it to take 5 samples instead of 4 samples.

 

Thanks!
Kind Regards

Arpit Srivastav

It's a pity that you can't change the number of samples used for the average. If you change the number of "CapSense_REGULAR_AVERAGE_LEN" that is generated when you activate the average filter, you may think that it is possible. If the existing codes of PSoC used reasonable and ideal coding rules, it seems highly likely that they will work that way.

Anyways, thanks for the reply.

0 Likes