SAM4S ADC

Analog-to-digital Converter (ADC) User Interface

Registers

Register Mapping
Address Register Name Access Reset
0x40038000 Control Register ADC_CR write-only -
0x40038004 Mode Register ADC_MR read-write 0x00000000
0x40038008 Channel Sequence Register 1 ADC_SEQR1 read-write 0x00000000
0x4003800C Channel Sequence Register 2 ADC_SEQR2 read-write 0x00000000
0x40038010 Channel Enable Register ADC_CHER write-only -
0x40038014 Channel Disable Register ADC_CHDR write-only -
0x40038018 Channel Status Register ADC_CHSR read-only 0x00000000
0x40038020 Last Converted Data Register ADC_LCDR read-only 0x00000000
0x40038024 Interrupt Enable Register ADC_IER write-only -
0x40038028 Interrupt Disable Register ADC_IDR write-only -
0x4003802C Interrupt Mask Register ADC_IMR read-only 0x00000000
0x40038030 Interrupt Status Register ADC_ISR read-only 0x00000000
0x4003803C Overrun Status Register ADC_OVER read-only 0x00000000
0x40038040 Extended Mode Register ADC_EMR read-write 0x00000000
0x40038044 Compare Window Register ADC_CWR read-write 0x00000000
0x40038048 Channel Gain Register ADC_CGR read-write 0x00000000
0x4003804C Channel Offset Register ADC_COR read-write 0x00000000
0x40038050 Channel Data Register ADC_CDR[16] read-only 0x0
0x40038094 Analog Control Register ADC_ACR read-write 0x00000100
0x400380E4 Write Protect Mode Register ADC_WPMR read-write 0x00000000
0x400380E8 Write Protect Status Register ADC_WPSR read-only 0x00000000
0x40038100 Receive Pointer Register ADC_RPR read-write 0x00000000
0x40038104 Receive Counter Register ADC_RCR read-write 0x00000000
0x40038110 Receive Next Pointer Register ADC_RNPR read-write 0x00000000
0x40038114 Receive Next Counter Register ADC_RNCR read-write 0x00000000
0x40038120 Transfer Control Register ADC_PTCR write-only 0x00000000
0x40038124 Transfer Status Register ADC_PTSR read-only 0x00000000

Register Fields

ADC Control Register

Name: ADC_CR

Access: write-only

Address: 0x40038000

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - - -
7 6 5 4 3 2 1 0
- - - - AUTOCAL - START SWRST

ADC Mode Register

Name: ADC_MR

Access: read-write

Address: 0x40038004

31 30 29 28 27 26 25 24
USEQ - TRANSFER TRACKTIM
23 22 21 20 19 18 17 16
ANACH - SETTLING STARTUP
15 14 13 12 11 10 9 8
PRESCAL
7 6 5 4 3 2 1 0
FREERUN FWUP SLEEP LOWRES TRGSEL TRGEN

ADC Channel Sequence Register 1

Name: ADC_SEQR1

Access: read-write

Address: 0x40038008

31 30 29 28 27 26 25 24
- USCH8 - USCH7
23 22 21 20 19 18 17 16
- USCH6 - USCH5
15 14 13 12 11 10 9 8
- USCH4 - USCH3
7 6 5 4 3 2 1 0
- USCH2 - USCH1

ADC Channel Sequence Register 2

Name: ADC_SEQR2

Access: read-write

Address: 0x4003800C

31 30 29 28 27 26 25 24
- USCH16 - USCH15
23 22 21 20 19 18 17 16
- USCH14 - USCH13
15 14 13 12 11 10 9 8
- USCH12 - USCH11
7 6 5 4 3 2 1 0
- USCH10 - USCH9

ADC Channel Enable Register

Name: ADC_CHER

Access: write-only

Address: 0x40038010

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8
7 6 5 4 3 2 1 0
CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0

ADC Channel Disable Register

Name: ADC_CHDR

Access: write-only

Address: 0x40038014

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8
7 6 5 4 3 2 1 0
CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0

ADC Channel Status Register

Name: ADC_CHSR

Access: read-only

Address: 0x40038018

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
CH15 CH14 CH13 CH12 CH11 CH10 CH9 CH8
7 6 5 4 3 2 1 0
CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0

ADC Last Converted Data Register

Name: ADC_LCDR

Access: read-only

Address: 0x40038020

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
CHNB LDATA
7 6 5 4 3 2 1 0
LDATA

ADC Interrupt Enable Register

Name: ADC_IER

Access: write-only

Address: 0x40038024

31 30 29 28 27 26 25 24
- - - RXBUFF ENDRX COMPE GOVRE DRDY
23 22 21 20 19 18 17 16
EOCAL - - - - - - -
15 14 13 12 11 10 9 8
EOC15 EOC14 EOC13 EOC12 EOC11 EOC10 EOC9 EOC8
7 6 5 4 3 2 1 0
EOC7 EOC6 EOC5 EOC4 EOC3 EOC2 EOC1 EOC0

ADC Interrupt Disable Register

Name: ADC_IDR

Access: write-only

Address: 0x40038028

31 30 29 28 27 26 25 24
- - - RXBUFF ENDRX COMPE GOVRE DRDY
23 22 21 20 19 18 17 16
EOCAL - - - - - - -
15 14 13 12 11 10 9 8
EOC15 EOC14 EOC13 EOC12 EOC11 EOC10 EOC9 EOC8
7 6 5 4 3 2 1 0
EOC7 EOC6 EOC5 EOC4 EOC3 EOC2 EOC1 EOC0

ADC Interrupt Mask Register

Name: ADC_IMR

Access: read-only

Address: 0x4003802C

31 30 29 28 27 26 25 24
- - - RXBUFF ENDRX COMPE GOVRE DRDY
23 22 21 20 19 18 17 16
EOCAL - - - - - - -
15 14 13 12 11 10 9 8
EOC15 EOC14 EOC13 EOC12 EOC11 EOC10 EOC9 EOC8
7 6 5 4 3 2 1 0
EOC7 EOC6 EOC5 EOC4 EOC3 EOC2 EOC1 EOC0

ADC Interrupt Status Register

Name: ADC_ISR

Access: read-only

Address: 0x40038030

31 30 29 28 27 26 25 24
- - - RXBUFF ENDRX COMPE GOVRE DRDY
23 22 21 20 19 18 17 16
EOCAL - - - - - - -
15 14 13 12 11 10 9 8
EOC15 EOC14 EOC13 EOC12 EOC11 EOC10 EOC9 EOC8
7 6 5 4 3 2 1 0
EOC7 EOC6 EOC5 EOC4 EOC3 EOC2 EOC1 EOC0

ADC Overrun Status Register

Name: ADC_OVER

Access: read-only

Address: 0x4003803C

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
OVRE15 OVRE14 OVRE13 OVRE12 OVRE11 OVRE10 OVRE9 OVRE8
7 6 5 4 3 2 1 0
OVRE7 OVRE6 OVRE5 OVRE4 OVRE3 OVRE2 OVRE1 OVRE0

ADC Extended Mode Register

Name: ADC_EMR

Access: read-write

Address: 0x40038040

31 30 29 28 27 26 25 24
- - - - - - - TAG
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - CMPALL -
7 6 5 4 3 2 1 0
CMPSEL - - CMPMODE

ADC Compare Window Register

Name: ADC_CWR

Access: read-write

Address: 0x40038044

31 30 29 28 27 26 25 24
- - - - HIGHTHRES
23 22 21 20 19 18 17 16
HIGHTHRES
15 14 13 12 11 10 9 8
- - - - LOWTHRES
7 6 5 4 3 2 1 0
LOWTHRES

ADC Channel Gain Register

Name: ADC_CGR

Access: read-write

Address: 0x40038048

31 30 29 28 27 26 25 24
GAIN15 GAIN14 GAIN13 GAIN12
23 22 21 20 19 18 17 16
GAIN11 GAIN10 GAIN9 GAIN8
15 14 13 12 11 10 9 8
GAIN7 GAIN6 GAIN5 GAIN4
7 6 5 4 3 2 1 0
GAIN3 GAIN2 GAIN1 GAIN0

ADC Channel Offset Register

Name: ADC_COR

Access: read-write

Address: 0x4003804C

31 30 29 28 27 26 25 24
DIFF15 DIFF14 DIFF13 DIFF12 DIFF11 DIFF10 DIFF9 DIFF8
23 22 21 20 19 18 17 16
DIFF7 DIFF6 DIFF5 DIFF4 DIFF3 DIFF2 DIFF1 DIFF0
15 14 13 12 11 10 9 8
OFF15 OFF14 OFF13 OFF12 OFF11 OFF10 OFF9 OFF8
7 6 5 4 3 2 1 0
OFF7 OFF6 OFF5 OFF4 OFF3 OFF2 OFF1 OFF0

ADC Channel Data Register

Name: ADC_CDR[0:15]

Access: read-only

Address: 0x40038050

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - DATA
7 6 5 4 3 2 1 0
DATA

ADC Analog Control Register

Name: ADC_ACR

Access: read-write

Address: 0x40038094

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - IBCTL
7 6 5 4 3 2 1 0
- - - TSON - - - -

ADC Write Protect Mode Register

Name: ADC_WPMR

Access: read-write

Address: 0x400380E4

31 30 29 28 27 26 25 24
WPKEY
23 22 21 20 19 18 17 16
WPKEY
15 14 13 12 11 10 9 8
WPKEY
7 6 5 4 3 2 1 0
- - - - - - - WPEN

ADC Write Protect Status Register

Name: ADC_WPSR

Access: read-only

Address: 0x400380E8

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
WPVSRC
15 14 13 12 11 10 9 8
WPVSRC
7 6 5 4 3 2 1 0
- - - - - - - WPVS

ADC Receive Pointer Register

Name: ADC_RPR

Access: read-write

Address: 0x40038100

31 30 29 28 27 26 25 24
RXPTR
23 22 21 20 19 18 17 16
RXPTR
15 14 13 12 11 10 9 8
RXPTR
7 6 5 4 3 2 1 0
RXPTR

ADC Receive Counter Register

Name: ADC_RCR

Access: read-write

Address: 0x40038104

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
RXCTR
7 6 5 4 3 2 1 0
RXCTR

ADC Receive Next Pointer Register

Name: ADC_RNPR

Access: read-write

Address: 0x40038110

31 30 29 28 27 26 25 24
RXNPTR
23 22 21 20 19 18 17 16
RXNPTR
15 14 13 12 11 10 9 8
RXNPTR
7 6 5 4 3 2 1 0
RXNPTR

ADC Receive Next Counter Register

Name: ADC_RNCR

Access: read-write

Address: 0x40038114

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
RXNCTR
7 6 5 4 3 2 1 0
RXNCTR

ADC Transfer Control Register

Name: ADC_PTCR

Access: write-only

Address: 0x40038120

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - TXTDIS TXTEN
7 6 5 4 3 2 1 0
- - - - - - RXTDIS RXTEN

ADC Transfer Status Register

Name: ADC_PTSR

Access: read-only

Address: 0x40038124

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - - TXTEN
7 6 5 4 3 2 1 0
- - - - - - - RXTEN