ATSAMV71Q21RT AFEC0 registers

The 29 registers of AFEC0 (Analog Front-End Controller), from 0x4003C000, with their reset value and every field. The ATSAMV71Q21RT has 3003 registers in 69 peripherals, one page each.

AFEC0 Analog Front-End Controller

AFEC_CRAFEC Control Register

Address
0x4003C000
Reset
0x00000000
Access
write only
Size
32-bit
2 fields
FieldBitsWhat it does
START1Start Conversion
SWRST0Software Reset

AFEC_MRAFEC Mode Register

Address
0x4003C004
Reset
0x00000000
Access
read/write
Size
32-bit
11 fields
FieldBitsWhat it does
TRANSFER29:28Transfer Period
TRACKTIM27:24Tracking Time
ONE23One
STARTUP19:16Start-up Time
  • 0 0 periods of AFE clock
  • 1 8 periods of AFE clock
  • 2 16 periods of AFE clock
  • 3 24 periods of AFE clock
  • 4 64 periods of AFE clock
  • 5 80 periods of AFE clock
  • 6 96 periods of AFE clock
  • 7 112 periods of AFE clock
  • 8 512 periods of AFE clock
  • 9 576 periods of AFE clock
  • 10 640 periods of AFE clock
  • 11 704 periods of AFE clock
  • 12 768 periods of AFE clock
  • 13 832 periods of AFE clock
  • 14 896 periods of AFE clock
  • 15 960 periods of AFE clock
PRESCAL15:8Prescaler Rate Selection
FREERUN7Free Run Mode
  • 0 Normal mode
  • 1 Free Run mode: Never wait for any trigger.
FWUP6Fast Wake-up
  • 0 Normal Sleep mode: The sleep mode is defined by the SLEEP bit.
  • 1 Fast wake-up Sleep mode: The voltage reference is ON between conversions and AFE is OFF.
SLEEP5Sleep Mode
  • 0 Normal mode: The AFE and reference voltage circuitry are kept ON between conversions.
  • 1 Sleep mode: The AFE and reference voltage circuitry are OFF between conversions.
TRGSEL3:1Trigger Selection
  • 0 AFE0_ADTRG for AFEC0 / AFE1_ADTRG for AFEC1
  • 1 TIOA Output of the Timer Counter Channel 0 for AFEC0/TIOA Output of the Timer Counter Channel 3 for AFEC1
  • 2 TIOA Output of the Timer Counter Channel 1 for AFEC0/TIOA Output of the Timer Counter Channel 4 for AFEC1
  • 3 TIOA Output of the Timer Counter Channel 2 for AFEC0/TIOA Output of the Timer Counter Channel 5 for AFEC1
  • 4 PWM0 event line 0 for AFEC0 / PWM1 event line 0 for AFEC1
  • 5 PWM0 event line 1 for AFEC0 / PWM1 event line 1 for AFEC1
  • 6 Analog Comparator
TRGEN0Trigger Enable
  • 0 Hardware triggers are disabled. Starting a conversion is only possible by software.
  • 1 Hardware trigger selected by TRGSEL field is enabled.
USEQ31User Sequence Enable
  • 0 Normal mode: The controller converts channels in a simple numeric order.
  • 1 User Sequence mode: The sequence respects what is defined in AFEC_SEQ1R and AFEC_SEQ1R.

AFEC_EMRAFEC Extended Mode Register

Address
0x4003C008
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
SIGNMODE29:28Sign Mode
  • 0 Single-Ended channels: Unsigned conversions.Differential channels: Signed conversions.
  • 1 Single-Ended channels: Signed conversions.Differential channels: Unsigned conversions.
  • 2 All channels: Unsigned conversions.
  • 3 All channels: Signed conversions.
STM25Single Trigger Mode
TAG24TAG of the AFEC_LDCR
RES18:16Resolution
  • 0 12-bit resolution, AFE sample rate is maximum (no averaging).
  • 2 13-bit resolution, AFE sample rate divided by 4 (averaging).
  • 3 14-bit resolution, AFE sample rate divided by 16 (averaging).
  • 4 15-bit resolution, AFE sample rate divided by 64 (averaging).
  • 5 16-bit resolution, AFE sample rate divided by 256 (averaging).
CMPFILTER13:12Compare Event Filtering
CMPALL9Compare All Channels
CMPSEL7:3Comparison Selected Channel
CMPMODE1:0Comparison Mode
  • 0 Generates an event when the converted data is lower than the low threshold of the window.
  • 1 Generates an event when the converted data is higher than the high threshold of the window.
  • 2 Generates an event when the converted data is in the comparison window.
  • 3 Generates an event when the converted data is out of the comparison window.

AFEC_SEQ1RAFEC Channel Sequence 1 Register

Address
0x4003C00C
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
USCH627:24User Sequence Number 6
USCH523:20User Sequence Number 5
USCH419:16User Sequence Number 4
USCH315:12User Sequence Number 3
USCH211:8User Sequence Number 2
USCH17:4User Sequence Number 1
USCH03:0User Sequence Number 0
USCH731:28User Sequence Number 7

AFEC_SEQ2RAFEC Channel Sequence 2 Register

Address
0x4003C010
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
USCH1115:12User Sequence Number 11
USCH1011:8User Sequence Number 10
USCH97:4User Sequence Number 9
USCH83:0User Sequence Number 8

AFEC_CHERAFEC Channel Enable Register

Address
0x4003C014
Reset
0x00000000
Access
write only
Size
32-bit
12 fields
FieldBitsWhat it does
CH1111Channel 11 Enable
CH1010Channel 10 Enable
CH99Channel 9 Enable
CH88Channel 8 Enable
CH77Channel 7 Enable
CH66Channel 6 Enable
CH55Channel 5 Enable
CH44Channel 4 Enable
CH33Channel 3 Enable
CH22Channel 2 Enable
CH11Channel 1 Enable
CH00Channel 0 Enable

AFEC_CHDRAFEC Channel Disable Register

Address
0x4003C018
Reset
0x00000000
Access
write only
Size
32-bit
12 fields
FieldBitsWhat it does
CH1111Channel 11 Disable
CH1010Channel 10 Disable
CH99Channel 9 Disable
CH88Channel 8 Disable
CH77Channel 7 Disable
CH66Channel 6 Disable
CH55Channel 5 Disable
CH44Channel 4 Disable
CH33Channel 3 Disable
CH22Channel 2 Disable
CH11Channel 1 Disable
CH00Channel 0 Disable

AFEC_CHSRAFEC Channel Status Register

Address
0x4003C01C
Reset
0x00000000
Access
read only
Size
32-bit
12 fields
FieldBitsWhat it does
CH1111Channel 11 Status
CH1010Channel 10 Status
CH99Channel 9 Status
CH88Channel 8 Status
CH77Channel 7 Status
CH66Channel 6 Status
CH55Channel 5 Status
CH44Channel 4 Status
CH33Channel 3 Status
CH22Channel 2 Status
CH11Channel 1 Status
CH00Channel 0 Status

AFEC_LCDRAFEC Last Converted Data Register

Address
0x4003C020
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
CHNB27:24Channel Number
LDATA15:0Last Data Converted

AFEC_IERAFEC Interrupt Enable Register

Address
0x4003C024
Reset
0x00000000
Access
write only
Size
32-bit
16 fields
FieldBitsWhat it does
TEMPCHG30Temperature Change Interrupt Enable
COMPE26Comparison Event Interrupt Enable
GOVRE25General Overrun Error Interrupt Enable
DRDY24Data Ready Interrupt Enable
EOC1111End of Conversion Interrupt Enable 11
EOC1010End of Conversion Interrupt Enable 10
EOC99End of Conversion Interrupt Enable 9
EOC88End of Conversion Interrupt Enable 8
EOC77End of Conversion Interrupt Enable 7
EOC66End of Conversion Interrupt Enable 6
EOC55End of Conversion Interrupt Enable 5
EOC44End of Conversion Interrupt Enable 4
EOC33End of Conversion Interrupt Enable 3
EOC22End of Conversion Interrupt Enable 2
EOC11End of Conversion Interrupt Enable 1
EOC00End of Conversion Interrupt Enable 0

AFEC_IDRAFEC Interrupt Disable Register

Address
0x4003C028
Reset
0x00000000
Access
write only
Size
32-bit
16 fields
FieldBitsWhat it does
TEMPCHG30Temperature Change Interrupt Disable
COMPE26Comparison Event Interrupt Disable
GOVRE25General Overrun Error Interrupt Disable
DRDY24Data Ready Interrupt Disable
EOC1111End of Conversion Interrupt Disable 11
EOC1010End of Conversion Interrupt Disable 10
EOC99End of Conversion Interrupt Disable 9
EOC88End of Conversion Interrupt Disable 8
EOC77End of Conversion Interrupt Disable 7
EOC66End of Conversion Interrupt Disable 6
EOC55End of Conversion Interrupt Disable 5
EOC44End of Conversion Interrupt Disable 4
EOC33End of Conversion Interrupt Disable 3
EOC22End of Conversion Interrupt Disable 2
EOC11End of Conversion Interrupt Disable 1
EOC00End of Conversion Interrupt Disable 0

AFEC_IMRAFEC Interrupt Mask Register

Address
0x4003C02C
Reset
0x00000000
Access
read only
Size
32-bit
16 fields
FieldBitsWhat it does
TEMPCHG30Temperature Change Interrupt Mask
COMPE26Comparison Event Interrupt Mask
GOVRE25General Overrun Error Interrupt Mask
DRDY24Data Ready Interrupt Mask
EOC1111End of Conversion Interrupt Mask 11
EOC1010End of Conversion Interrupt Mask 10
EOC99End of Conversion Interrupt Mask 9
EOC88End of Conversion Interrupt Mask 8
EOC77End of Conversion Interrupt Mask 7
EOC66End of Conversion Interrupt Mask 6
EOC55End of Conversion Interrupt Mask 5
EOC44End of Conversion Interrupt Mask 4
EOC33End of Conversion Interrupt Mask 3
EOC22End of Conversion Interrupt Mask 2
EOC11End of Conversion Interrupt Mask 1
EOC00End of Conversion Interrupt Mask 0

AFEC_ISRAFEC Interrupt Status Register

Address
0x4003C030
Reset
0x00000000
Access
read only
Size
32-bit
16 fields
FieldBitsWhat it does
TEMPCHG30Temperature Change (cleared on read)
COMPE26Comparison Error (cleared by reading AFEC_ISR)
GOVRE25General Overrun Error (cleared by reading AFEC_ISR)
DRDY24Data Ready (cleared by reading AFEC_LCDR)
EOC1111End of Conversion 11 (cleared by reading AFEC_CDRx)
EOC1010End of Conversion 10 (cleared by reading AFEC_CDRx)
EOC99End of Conversion 9 (cleared by reading AFEC_CDRx)
EOC88End of Conversion 8 (cleared by reading AFEC_CDRx)
EOC77End of Conversion 7 (cleared by reading AFEC_CDRx)
EOC66End of Conversion 6 (cleared by reading AFEC_CDRx)
EOC55End of Conversion 5 (cleared by reading AFEC_CDRx)
EOC44End of Conversion 4 (cleared by reading AFEC_CDRx)
EOC33End of Conversion 3 (cleared by reading AFEC_CDRx)
EOC22End of Conversion 2 (cleared by reading AFEC_CDRx)
EOC11End of Conversion 1 (cleared by reading AFEC_CDRx)
EOC00End of Conversion 0 (cleared by reading AFEC_CDRx)

AFEC_OVERAFEC Overrun Status Register

Address
0x4003C04C
Reset
0x00000000
Access
read only
Size
32-bit
12 fields
FieldBitsWhat it does
OVRE1111Overrun Error 11
OVRE1010Overrun Error 10
OVRE99Overrun Error 9
OVRE88Overrun Error 8
OVRE77Overrun Error 7
OVRE66Overrun Error 6
OVRE55Overrun Error 5
OVRE44Overrun Error 4
OVRE33Overrun Error 3
OVRE22Overrun Error 2
OVRE11Overrun Error 1
OVRE00Overrun Error 0

AFEC_CWRAFEC Compare Window Register

Address
0x4003C050
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
LOWTHRES15:0Low Threshold
HIGHTHRES31:16High Threshold

AFEC_CGRAFEC Channel Gain Register

Address
0x4003C054
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
GAIN1123:22Gain for Channel 11
GAIN1021:20Gain for Channel 10
GAIN919:18Gain for Channel 9
GAIN817:16Gain for Channel 8
GAIN715:14Gain for Channel 7
GAIN613:12Gain for Channel 6
GAIN511:10Gain for Channel 5
GAIN49:8Gain for Channel 4
GAIN37:6Gain for Channel 3
GAIN25:4Gain for Channel 2
GAIN13:2Gain for Channel 1
GAIN01:0Gain for Channel 0

AFEC_DIFFRAFEC Channel Differential Register

Address
0x4003C060
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
DIFF1111Differential inputs for channel 11
DIFF1010Differential inputs for channel 10
DIFF99Differential inputs for channel 9
DIFF88Differential inputs for channel 8
DIFF77Differential inputs for channel 7
DIFF66Differential inputs for channel 6
DIFF55Differential inputs for channel 5
DIFF44Differential inputs for channel 4
DIFF33Differential inputs for channel 3
DIFF22Differential inputs for channel 2
DIFF11Differential inputs for channel 1
DIFF00Differential inputs for channel 0

AFEC_CSELRAFEC Channel Selection Register

Address
0x4003C064
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
CSEL3:0Channel Selection

AFEC_CDRAFEC Channel Data Register

Address
0x4003C068
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
DATA15:0Converted Data

AFEC_COCRAFEC Channel Offset Compensation Register

Address
0x4003C06C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
AOFF9:0Analog Offset

AFEC_TEMPMRAFEC Temperature Sensor Mode Register

Address
0x4003C070
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
TEMPCMPMOD5:4Temperature Comparison Mode
  • 0 Generates an event when the converted data is lower than the low threshold of the window.
  • 1 Generates an event when the converted data is higher than the high threshold of the window.
  • 2 Generates an event when the converted data is in the comparison window.
  • 3 Generates an event when the converted data is out of the comparison window.
RTCT0Temperature Sensor RTC Trigger Mode

AFEC_TEMPCWRAFEC Temperature Compare Window Register

Address
0x4003C074
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
TLOWTHRES15:0Temperature Low Threshold
THIGHTHRES31:16Temperature High Threshold

AFEC_ACRAFEC Analog Control Register

Address
0x4003C094
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
IBCTL9:8AFE Bias Current Control
PGA1EN3PGA1 Enable
PGA0EN2PGA0 Enable

AFEC_SHMRAFEC Sample & Hold Mode Register

Address
0x4003C0A0
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
DUAL1111Dual Sample & Hold for channel 11
DUAL1010Dual Sample & Hold for channel 10
DUAL99Dual Sample & Hold for channel 9
DUAL88Dual Sample & Hold for channel 8
DUAL77Dual Sample & Hold for channel 7
DUAL66Dual Sample & Hold for channel 6
DUAL55Dual Sample & Hold for channel 5
DUAL44Dual Sample & Hold for channel 4
DUAL33Dual Sample & Hold for channel 3
DUAL22Dual Sample & Hold for channel 2
DUAL11Dual Sample & Hold for channel 1
DUAL00Dual Sample & Hold for channel 0

AFEC_COSRAFEC Correction Select Register

Address
0x4003C0D0
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
CSEL0Sample & Hold unit Correction Select

AFEC_CVRAFEC Correction Values Register

Address
0x4003C0D4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
OFFSETCORR15:0Offset Correction
GAINCORR31:16Gain Correction

AFEC_CECRAFEC Channel Error Correction Register

Address
0x4003C0D8
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
ECORR1111Error Correction Enable for channel 11
ECORR1010Error Correction Enable for channel 10
ECORR99Error Correction Enable for channel 9
ECORR88Error Correction Enable for channel 8
ECORR77Error Correction Enable for channel 7
ECORR66Error Correction Enable for channel 6
ECORR55Error Correction Enable for channel 5
ECORR44Error Correction Enable for channel 4
ECORR33Error Correction Enable for channel 3
ECORR22Error Correction Enable for channel 2
ECORR11Error Correction Enable for channel 1
ECORR00Error Correction Enable for channel 0

AFEC_WPMRAFEC Write Protection Mode Register

Address
0x4003C0E4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
WPEN0Write Protection Enable
WPKEY31:8Write Protect KEY
  • 4277315 Writing any other value in this field aborts the write operation of the WPEN bit. Always reads as 0.

AFEC_WPSRAFEC Write Protection Status Register

Address
0x4003C0E8
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
WPVSRC23:8Write Protect Violation Source
WPVS0Write Protect Violation Status