RP2040_SVD.ADC

Entities

Record Types

Subtypes

Variables

Description

------------- Registers -- -------------

ADC_Periph

ADC_Periph : aliased ADC_Peripheral
  with Import, Address => ADC_Base;

ADC_Peripheral

type ADC_Peripheral is record
   CS     : aliased CS_Register;
   RESULT : aliased RESULT_Register;
   FCS    : aliased FCS_Register;
   FIFO   : aliased FIFO_Register;
   DIV    : aliased DIV_Register;
   INTR   : aliased INTR_Register;
   INTE   : aliased INTE_Register;
   INTF   : aliased INTF_Register;
   INTS   : aliased INTS_Register;
end record;
Record fields
CS

Result of most recent ADC conversion

RESULT

FIFO control and status

FCS

Conversion result FIFO

FIFO

Clock divider. If non-zero, CS_START_MANY will start conversions\n at regular intervals rather than back-to-back.\n The divider is reset when either of these fields are written.\n Total period is 1 + INT + FRAC / 256

DIV

Raw Interrupts

INTR

Interrupt Enable

INTE

Interrupt Force

INTF

Interrupt status after masking & forcing

INTS

CS_AINSEL_Field

subtype CS_AINSEL_Field is HAL.UInt3;

CS_Register

type CS_Register is record
   EN             : Boolean := False;
   TS_EN          : Boolean := False;
   START_ONCE     : Boolean := False;
   START_MANY     : Boolean := False;
   Reserved_4_7   : HAL.UInt4 := 16#0#;
   READY          : Boolean := False;
   ERR            : Boolean := False;
   ERR_STICKY     : Boolean := False;
   Reserved_11_11 : HAL.Bit := 16#0#;
   AINSEL         : CS_AINSEL_Field := 16#0#;
   Reserved_15_15 : HAL.Bit := 16#0#;
   RROBIN         : CS_RROBIN_Field := 16#0#;
   Reserved_21_31 : HAL.UInt11 := 16#0#;
end record;
Record fields
EN

Power on temperature sensor. 1 - enabled. 0 - disabled.

TS_EN

After a write operation all bits in the field are cleared (set to zero). Start a single conversion. Self-clearing. Ignored if start_many is asserted.

START_ONCE

Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes.

START_MANY

unspecified

Reserved_4_7

Read-only. 1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed.\n 0 whilst conversion in progress.

READY

Read-only. The most recent ADC conversion encountered an error; result is undefined or noisy.

ERR

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Some past ADC conversion encountered an error. Write 1 to clear.

ERR_STICKY

unspecified

Reserved_11_11

Select analog mux input. Updated automatically in round-robin mode.

AINSEL

unspecified

Reserved_15_15

Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable.\n Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion.\n The first channel to be sampled will be the one currently indicated by AINSEL.\n AINSEL will be updated after each conversion with the newly-selected channel.

RROBIN

unspecified

Reserved_21_31

CS_RROBIN_Field

subtype CS_RROBIN_Field is HAL.UInt5;

DIV_FRAC_Field

subtype DIV_FRAC_Field is HAL.UInt8;

DIV_INT_Field

subtype DIV_INT_Field is HAL.UInt16;

DIV_Register

type DIV_Register is record
   FRAC           : DIV_FRAC_Field := 16#0#;
   INT            : DIV_INT_Field := 16#0#;
   Reserved_24_31 : HAL.UInt8 := 16#0#;
end record;
Record fields
FRAC

Integer part of clock divisor.

INT

unspecified

Reserved_24_31

FCS_LEVEL_Field

subtype FCS_LEVEL_Field is HAL.UInt4;

FCS_Register

type FCS_Register is record
   EN             : Boolean := False;
   SHIFT          : Boolean := False;
   ERR            : Boolean := False;
   DREQ_EN        : Boolean := False;
   Reserved_4_7   : HAL.UInt4 := 16#0#;
   EMPTY          : Boolean := False;
   FULL           : Boolean := False;
   UNDER          : Boolean := False;
   OVER           : Boolean := False;
   Reserved_12_15 : HAL.UInt4 := 16#0#;
   LEVEL          : FCS_LEVEL_Field := 16#0#;
   Reserved_20_23 : HAL.UInt4 := 16#0#;
   THRESH         : FCS_THRESH_Field := 16#0#;
   Reserved_28_31 : HAL.UInt4 := 16#0#;
end record;
Record fields
EN

If 1: FIFO results are right-shifted to be one byte in size. Enables DMA to byte buffers.

SHIFT

If 1: conversion error bit appears in the FIFO alongside the result

ERR

If 1: assert DMA requests when FIFO contains data

DREQ_EN

unspecified

Reserved_4_7

Read-only.

EMPTY

Read-only.

FULL

Write data bit of one shall clear (set to zero) the corresponding bit in the field. 1 if the FIFO has been underflowed. Write 1 to clear.

UNDER

Write data bit of one shall clear (set to zero) the corresponding bit in the field. 1 if the FIFO has been overflowed. Write 1 to clear.

OVER

unspecified

Reserved_12_15

Read-only. The number of conversion results currently waiting in the FIFO

LEVEL

unspecified

Reserved_20_23

DREQ/IRQ asserted when level >= threshold

THRESH

unspecified

Reserved_28_31

FCS_THRESH_Field

subtype FCS_THRESH_Field is HAL.UInt4;

FIFO_Register

type FIFO_Register is record
   VAL            : FIFO_VAL_Field;
   Reserved_12_14 : HAL.UInt3;
   ERR            : Boolean;
   Reserved_16_31 : HAL.UInt16;
end record;
Record fields
VAL

unspecified

Reserved_12_14

Read-only. 1 if this particular sample experienced a conversion error. Remains in the same location if the sample is shifted.

ERR

unspecified

Reserved_16_31

FIFO_VAL_Field

subtype FIFO_VAL_Field is HAL.UInt12;

INTE_Register

type INTE_Register is record
   FIFO          : Boolean := False;
   Reserved_1_31 : HAL.UInt31 := 16#0#;
end record;
Record fields
FIFO

unspecified

Reserved_1_31

INTF_Register

type INTF_Register is record
   FIFO          : Boolean := False;
   Reserved_1_31 : HAL.UInt31 := 16#0#;
end record;
Record fields
FIFO

unspecified

Reserved_1_31

INTR_Register

type INTR_Register is record
   FIFO          : Boolean;
   Reserved_1_31 : HAL.UInt31;
end record;
Record fields
FIFO

unspecified

Reserved_1_31

INTS_Register

type INTS_Register is record
   FIFO          : Boolean;
   Reserved_1_31 : HAL.UInt31;
end record;
Record fields
FIFO

unspecified

Reserved_1_31

RESULT_Register

type RESULT_Register is record
   RESULT         : RESULT_RESULT_Field;
   Reserved_12_31 : HAL.UInt20;
end record;
Record fields
RESULT

unspecified

Reserved_12_31

RESULT_RESULT_Field

subtype RESULT_RESULT_Field is HAL.UInt12;