Data Channel Configuration

Last modified by Microchip on 2026/03/31 09:47

Click Play► to listen to the commentary.

Data channel configuration

Here, we examine the primary components of the data channel.

  • Analog positive/negative input selection
    • Each data channel can select any available analog input for conversion, both positive (external or internal) and, if supported, negative for differential signals.
    • This is set using configuration bits.
  • Sample mode and sample time
    • You can set each data channel to use single or accumulated sampling.
    • You can adjust how long the Analog-to-Digital Converter (ADC) samples the input before converting.
  • Data channel conversion triggers
    • ADC conversions can start from the following, allowing precise timing control:
      • Software commands
      • Hardware events (like timers) or other peripherals
  • Data channel result format
    • The data result format specifies how the converted digital data is presented.
    • Options may include different bit resolutions, signed or unsigned formats, and alignment within the result register.
  • Result comparator
    • Each data channel can use a built-in digital comparator to automatically compare the conversion result against predefined threshold values.
    • If the result meets or exceeds these thresholds, the comparator can trigger specific actions:
      • Generating an interrupt
      • Flagging an event for further processing
  • Interrupt generation
    • The ADC can generate interrupts for events such as conversion completion, comparator matches, or error conditions.
    • This interrupt capability enables a fast system response to ADC-related events.