etemu / wilssen

Wireless / Wind Logging System for Sourcing ENergy - "Wilssen" is a modular controller for e.g. a wind turbine, it monitors all parameters like phase voltage and efficiency when the wind turbine is generating power.
6 stars 2 forks source link

Design high frequency sample and hold routine #20

Open etemu opened 11 years ago

etemu commented 11 years ago

Detach all interrupts, set a low prescaler and sample a single ADC channel with a variable Frequency up to 500khz - for detailed waveform analysis within a specific window.

This is not mandatory but rather an enhancement for educational purposes and advanced analysis of the waveforms.

etemu commented 11 years ago

Setting the prescaler to 16 yields an ADC clock up to 1Mhz but it may have an impact to resolution:

The Atmega168 datasheet eludes to the fact the reason behind using the default 200kHz clock is because it is optimized around the connected voltage source having an output impedance of 10k or less. So, a buffer stage aka impedance converter is needed for a high-Z input from TiVA.