   // Install capture idle time
   ::yield = iowait;
 
+  // Power up ADC
+  AnalogPin::powerup();
+
   // Start timers
   Watchdog::begin();
   RTC::begin();

    trace.flush();
  }
  INFO("per sample:%ul us", trace.measure / SAMPLES);
  Ksps = ((float) SAMPLES * 1000.0) / trace.measure;
  trace << PSTR("effective sample rate (") << SAMPLES << PSTR(" samples):")
	<< Ksps << PSTR(" Ksps")
	<< endl;
  trace << PSTR("idle:") << (idle * 100.0) / RTC::micros() << '%'
	<< endl;

 * Lesser General Public License for more details.
 *
 * @section Description
 * Benchmark Analog data-logging over IOStream/UART. Is it possible
 * to achieve 4K samples per second and write the values in text
 * format over the serial/uart?
 *
 * Bits per sample: 10
 * Sample range: [0..1023], [0..5V]
 * Micro-seconds per conversion: 112
 *
 * Samples per second: 4,000
 * Micro-seconds per sample: 250
 *
 * Max number of characters: 4,000 * (4 + 2) = 24,000
 * Max number of bits: 24,000 * (1 + 8 + 2) = 264,000
 *
 * Avg number of characters: 4,000 * (2 + 2) = 16,000
 * Avg number of bits: 16,000 * (1 + 8 + 2) = 196,000
 *
 * This file is part of the Arduino Che Cosa project.
 */
