1.1.1 ADC Data Acquisition Configuration

In this application, the following configuration is used for ADC data acquisition:

  • Sampling Frequency (Fs) = 10 kHz
  • Sampling Interval (Ts = 1/Fs) = 100 μs
  • Resolution = 8-bit(1)

This is implemented by using TMR0 to generate a 10 kHz timer signal to trigger the ADC. See TMR0 Setup and ADCC Setup to set up TMR0 and ADC with Computation (ADCC).

Important:
  1. While most of the newer PIC18 devices have a 10-bit or 12-bit ADC, only 8-bit ADC values are used to keep the application simple. This is because the DAC used to playback the audio signal has a resolution of 8 bits.