Expand description
ADC Control and Status
Structs§
- CS_SPEC
- ADC Control and Status
Type Aliases§
- AINSEL_
R - Field
AINSELreader - Select analog mux input. Updated automatically in round-robin mode. - AINSEL_
W - Field
AINSELwriter - Select analog mux input. Updated automatically in round-robin mode. - EN_R
- Field
ENreader - Power on ADC and enable its clock.
1 - enabled. 0 - disabled. - EN_W
- Field
ENwriter - Power on ADC and enable its clock.
1 - enabled. 0 - disabled. - ERR_R
- Field
ERRreader - The most recent ADC conversion encountered an error; result is undefined or noisy. - ERR_
STICKY_ R - Field
ERR_STICKYreader - Some past ADC conversion encountered an error. Write 1 to clear. - ERR_
STICKY_ W - Field
ERR_STICKYwriter - Some past ADC conversion encountered an error. Write 1 to clear. - R
- Register
CSreader - READY_R
- Field
READYreader - 1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed.
0 whilst conversion in progress. - RROBIN_
R - Field
RROBINreader - Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable.
Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion.
The first channel to be sampled will be the one currently indicated by AINSEL.
AINSEL will be updated after each conversion with the newly-selected channel. - RROBIN_
W - Field
RROBINwriter - Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable.
Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion.
The first channel to be sampled will be the one currently indicated by AINSEL.
AINSEL will be updated after each conversion with the newly-selected channel. - START_
MANY_ R - Field
START_MANYreader - Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes. - START_
MANY_ W - Field
START_MANYwriter - Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes. - START_
ONCE_ R - Field
START_ONCEreader - Start a single conversion. Self-clearing. Ignored if start_many is asserted. - START_
ONCE_ W - Field
START_ONCEwriter - Start a single conversion. Self-clearing. Ignored if start_many is asserted. - TS_EN_R
- Field
TS_ENreader - Power on temperature sensor. 1 - enabled. 0 - disabled. - TS_EN_W
- Field
TS_ENwriter - Power on temperature sensor. 1 - enabled. 0 - disabled. - W
- Register
CSwriter