I'll tell you what I think, but I'm interested to see what others on this forum say as well... I've heard people say things that I didn't agree with many times concerning this.
When you say 'impedance matching' - to me, that really only applies when you are trying to maximize the power transfer from one circuit to another as with a power line or a transmission line. When you maximize power, you make the load impedance exactly the same as the source impedance and there lies the sweet spot that allows the largest amount of power possible to transfer from the source to the load. However - at this sweet spot, only half of the source voltage is spread across the load impedance. So if you are using a 5 volt microcontroller and the source to be measured is 5 volts, then the highest voltage you would read on the AD pin would be 2.5 volts. Since the AD converter measures voltage, what we would really like is for the voltage transfer to be as high as possible. To get this, we would like the source to be very low impedance and the load to be very high impedance - not a match! The AD converter (the load) has a very high impedance already, so all we need is for the source (the accelerometer) to be low impedance. So, a buffer amplifier may be necessary to accurately measure high impedance sources. If there is a lot of noise around, then it is advisable to slightly lower the impedance right in front of the microcontroller pin with a shunt resistor that is still much larger than the impedance of the source, but less than the impedance of the AD pin.
There is one other factor that makes it interesting though. When the microcontroller is first turned on, the port is a high impedance digital input and if the voltage is allowed to float around somewhere in the middle for a long time (as with debugging), then the CMOS input can partially drive both the N and the P mosfets and can waste power. I suspect that once I even ruined a port this way, but I'm not quite sure if that's what caused it. Also - if you set a pin to output then you will have a low impedance load connected to a low impedance source and you will get efficient power transfer between your microcontroller and source and likely destroy both of them.
As for sampling frequency, the Nyquist sampling theorem says that you must go at least twice the bandwidth of the signal being sampled. Any signals that are higher than half the sampling rate will show up as an alias of some lower frequency and will surely corrupt your data. The way I have most often seen this done is to place a single-pole low pass filter right before the AD input pin and then sample at some frequency more than twice the cutoff frequency of that filter. That single-pole filter can also act to slightly lower the impedance of the wire between the source and the microcontroller to reduce noise.
Ouch, I didn't mean to post such a dry answer. To make it short, get the source impedance as low as possible, put a medium impedance low pass filter right in front of the pin and sample at over twice the frequency of that filter's cutoff.
Message Edited by rhinoceroshead on 2006-07-03 10:32 AM