Expand description
ADC Control and Status
Structs§
- ADC Control and Status
Type Aliases§
- Field
AINSELreader - Select analog mux input. Updated automatically in round-robin mode. - Field
AINSELwriter - Select analog mux input. Updated automatically in round-robin mode. - Field
ENreader - Power on ADC and enable its clock.
1 - enabled. 0 - disabled. - Field
ENwriter - Power on ADC and enable its clock.
1 - enabled. 0 - disabled. - Field
ERRreader - The most recent ADC conversion encountered an error; result is undefined or noisy. - Field
ERR_STICKYreader - Some past ADC conversion encountered an error. Write 1 to clear. - Field
ERR_STICKYwriter - Some past ADC conversion encountered an error. Write 1 to clear. - Register
CSreader - Field
READYreader - 1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed.
0 whilst conversion in progress. - 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. - 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. - Field
START_MANYreader - Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes. - Field
START_MANYwriter - Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes. - Field
START_ONCEreader - Start a single conversion. Self-clearing. Ignored if start_many is asserted. - Field
START_ONCEwriter - Start a single conversion. Self-clearing. Ignored if start_many is asserted. - Field
TS_ENreader - Power on temperature sensor. 1 - enabled. 0 - disabled. - Field
TS_ENwriter - Power on temperature sensor. 1 - enabled. 0 - disabled. - Register
CSwriter