Expand description

This block is designed to convert external analog voltage readings into digital values.

Modules

The ADC Configuration Register is used to configure the ADC clock timing.

All 16 ADC channels return their results into a 32-bit reading register. In each case the low 10 bits of the reading register return the result of the Analog to Digital conversion and the upper 22 bits return 0.

The ADC Status Register indicates whether the ADC has completed a conversion cycle. All bits are cleared by being written with a 1. 0: conversion of the corresponding ADC channel is not complete 1: conversion of the corresponding ADC channel is complete

The ADC Control Register is used to control the behavior of the Analog to Digital Converter.

The ADC Delay register determines the delay from setting Start_Repeat in the ADC Control Register and the start of a conversion cycle. This register also controls the interval between conversion cycles in repeat mode.

The ADC Repeat Register is used to control which ADC channels are captured during a repeat conversion cycle initiated by the Start_Repeat bit in the ADC Control Register.

This is the SAR ADC Configuration Register.

This is the SAR ADC Control Register.

The ADC Single Register is used to control which ADC channel is captured during a Single-Sample conversion cycle initiated by the Start_Single bit in the ADC Control Register. APPLICATION NOTE: Do not change the bits in this register in the middle of a conversion cycle to insure proper operation. 0: single cycle conversions for this channel are disabled 1: single cycle conversions for this channel are enabled

The ADC Channel Register is used to configure the reference voltage to the clock timing.

This is the VREF Control Register

Structs

Register block

Type Definitions

CFG (rw) register accessor: an alias for Reg<CFG_SPEC>

CHAN_RD (rw) register accessor: an alias for Reg<CHAN_RD_SPEC>

CHAN_STS (rw) register accessor: an alias for Reg<CHAN_STS_SPEC>

CTRL (rw) register accessor: an alias for Reg<CTRL_SPEC>

DELAY (rw) register accessor: an alias for Reg<DELAY_SPEC>

REPT_EN (rw) register accessor: an alias for Reg<REPT_EN_SPEC>

SAR_CFG (rw) register accessor: an alias for Reg<SAR_CFG_SPEC>

SAR_CTRL (rw) register accessor: an alias for Reg<SAR_CTRL_SPEC>

SNG_EN (rw) register accessor: an alias for Reg<SNG_EN_SPEC>

VREF_CHAN (rw) register accessor: an alias for Reg<VREF_CHAN_SPEC>

VREF_CTRL (rw) register accessor: an alias for Reg<VREF_CTRL_SPEC>