XMC4400 ADC Post processing and Boundary Check

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

cross mob
Not applicable
I am using an XMC 4400 chip. In the application an ADC input signal set a boundary flag on the ADC_MEASUREMENT_ADV app.
The issue is that the analog signal input seems to be noisy.

Is there a mechanism to do post processing on the ADC and then use the output of this signal as an input to the boundary check (maybe a signal input to another instance of ADC_MEASUREMENT_ADV module)?

The bottleneck now is that we can either choose the ADC output to set a boundary flag or filter the ADC output to get a signal prone to less noise.

Any suggestions regarding this would be highly appreciated.
0 Likes
1 Reply
P__Yélamos
Employee
Employee
10 sign-ins First like given 5 sign-ins
Hello, sorry for late answer,

we have some mechanisms that might help there: post processing filtering (FIR or IIR) might work for you. When the filtering finishes, the new result should be compared against the boundary. Filtering is limited to 2nd order max. If you want to do more, you would need to use SW, but then boundaries are not directly linked. Also possible to accumulated via HW (up to 4 times accumulation) and then shift for averaging.
On HW side, you could use a small C or RC next to ADC pin to clean up the signal. Another idea: you can play with sampling frequency and sampling time. Depending on your noise characteristic, sampling faster or slower might help you getting better results: for example if you have spurious spikes eventually, sampling time tuning might help filtering out those.

Regards,
P Yelamos
0 Likes