Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 305 Code Snippets

ADC Sampling at 500KSPS

Microchip Technology

In this example, ADC is set up to convert AIN0 using CH0 sample/hold in 10-bit sequencial mode at 500KHz throughput rate.

About this Code Example

In this example, ADC is set up to convert AIN0 using CH0 sample/hold in 10-bit sequencial mode
at 500KHz throughput rate. ADC clock is configured at 8Mhz or Tad=125ns
ADC Conversion Time for 10-bit conversion is Tc=16*Tab =  2000ns (500KHz).

void initAdc1(void);
ADC CH0 S/H is set-up to covert AIN0 in 10-bit mode. ADC is configured to next sample data immediately after the conversion.
So, ADC keeps convertion CH0 S/H. Effective conversion rate is 500Khz.

Categories

Release History

  • Jun 21, 2012

    Version: 1.0.0

    First Release to ECS

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Jun 21, 2012
  • Updated:Feb 26, 2015
  • Downloads:3902
  • MPLAB Version:V8.xx or above
  • C Compiler:MCC18 v3.30 or above
  • Development Tools:Explorer 16 Demo board
  • Supported Devices:PIC24FJ128GA010

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.