\n
address_offset : 0x0 Bytes (0x0)
size : 0x1000 byte (0x0)
mem_usage : registers
protection : not protected
ADC Control and Status
address_offset : 0x0 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : Power on ADC and enable its clock.
1 - enabled. 0 - disabled.
bits : 0 - 0 (1 bit)
access : read-write
TS_EN : Power on temperature sensor. 1 - enabled. 0 - disabled.
bits : 1 - 1 (1 bit)
access : read-write
START_ONCE : Start a single conversion. Self-clearing. Ignored if start_many is asserted.
bits : 2 - 2 (1 bit)
access : read-write
START_MANY : Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes.
bits : 3 - 3 (1 bit)
access : read-write
READY : 1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed.
0 whilst conversion in progress.
bits : 8 - 8 (1 bit)
access : read-only
ERR : The most recent ADC conversion encountered an error result is undefined or noisy.
bits : 9 - 9 (1 bit)
access : read-only
ERR_STICKY : Some past ADC conversion encountered an error. Write 1 to clear.
bits : 10 - 10 (1 bit)
access : read-write
AINSEL : Select analog mux input. Updated automatically in round-robin mode.
bits : 12 - 14 (3 bit)
access : read-write
RROBIN : 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.
bits : 16 - 20 (5 bit)
access : read-write
Clock divider. If non-zero, CS_START_MANY will start conversions
at regular intervals rather than back-to-back.
The divider is reset when either of these fields are written.
Total period is 1 + INT + FRAC / 256
address_offset : 0x10 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FRAC : Fractional part of clock divisor. First-order delta-sigma.
bits : 0 - 7 (8 bit)
access : read-write
INT : Integer part of clock divisor.
bits : 8 - 23 (16 bit)
access : read-write
Raw Interrupts
address_offset : 0x14 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FIFO : Triggered when the sample FIFO reaches a certain level.
This level can be programmed via the FCS_THRESH field.
bits : 0 - 0 (1 bit)
access : read-only
Interrupt Enable
address_offset : 0x18 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FIFO : Triggered when the sample FIFO reaches a certain level.
This level can be programmed via the FCS_THRESH field.
bits : 0 - 0 (1 bit)
access : read-write
Interrupt Force
address_offset : 0x1C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FIFO : Triggered when the sample FIFO reaches a certain level.
This level can be programmed via the FCS_THRESH field.
bits : 0 - 0 (1 bit)
access : read-write
Interrupt status after masking & forcing
address_offset : 0x20 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
FIFO : Triggered when the sample FIFO reaches a certain level.
This level can be programmed via the FCS_THRESH field.
bits : 0 - 0 (1 bit)
access : read-only
Result of most recent ADC conversion
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
RESULT :
bits : 0 - 11 (12 bit)
access : read-only
FIFO control and status
address_offset : 0x8 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EN : If 1: write result to the FIFO after each conversion.
bits : 0 - 0 (1 bit)
access : read-write
SHIFT : If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.
bits : 1 - 1 (1 bit)
access : read-write
ERR : If 1: conversion error bit appears in the FIFO alongside the result
bits : 2 - 2 (1 bit)
access : read-write
DREQ_EN : If 1: assert DMA requests when FIFO contains data
bits : 3 - 3 (1 bit)
access : read-write
EMPTY :
bits : 8 - 8 (1 bit)
access : read-only
FULL :
bits : 9 - 9 (1 bit)
access : read-only
UNDER : 1 if the FIFO has been underflowed. Write 1 to clear.
bits : 10 - 10 (1 bit)
access : read-write
OVER : 1 if the FIFO has been overflowed. Write 1 to clear.
bits : 11 - 11 (1 bit)
access : read-write
LEVEL : The number of conversion results currently waiting in the FIFO
bits : 16 - 19 (4 bit)
access : read-only
THRESH : DREQ/IRQ asserted when level >= threshold
bits : 24 - 27 (4 bit)
access : read-write
Conversion result FIFO
address_offset : 0xC Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
VAL :
bits : 0 - 11 (12 bit)
access : read-only
ERR : 1 if this particular sample experienced a conversion error. Remains in the same location if the sample is shifted.
bits : 15 - 15 (1 bit)
access : read-only
Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !
This website is sponsored by Embeetle, an IDE designed from scratch for embedded software developers.