\n
address_offset : 0x0 Bytes (0x0)
    size : 0xFFF byte (0x0)
    mem_usage : registers
    protection : not protected
    
    A/D Control Register. The ADCR register must be written to select the operating mode before A/D conversion can occur.
    address_offset : 0x0 Bytes (0x0)
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
SEL : Selects which of the AD7:0 pins is (are) to be sampled and converted. Bit 0 selects Pin AD0, bit 1 selects pin AD1,..., and bit 7 selects pin AD7. In software-controlled mode (BURST = 0), only one channel can be selected, i.e. only one of these bits should be 1. In hardware scan mode (BURST = 1), any numbers of channels can be selected, i.e any or all bits can be set to 1. If all bits are set to 0, channel 0 is selected automatically (SEL = 0x01).
    bits : 0 - 7 (8 bit)
CLKDIV : The APB clock (PCLK) is divided by CLKDIV +1 to produce the clock for the ADC, which should be less than or equal to 4.5 MHz. Typically, software should program the smallest value in this field that yields a clock of 4.5 MHz or slightly less, but in certain cases (such as a high-impedance analog source) a slower clock may be desirable.
    bits : 8 - 23 (16 bit)
BURST : Burst mode
    bits : 16 - 32 (17 bit)
 Enumeration: test
 0 : SWMODE 
    
 Software-controlled mode: Conversions are software-controlled and require 11 clocks. 
 1 : HWMODE 
    
 Hardware scan mode: The AD converter does repeated conversions at the rate selected by the CLKS field, scanning (if necessary) through the pins selected by 1s in the SEL field. The first conversion after the start corresponds to the least-significant bit set to 1 in the SEL field, then the next higher bits (pins) set to 1 are scanned if applicable. Repeated conversions can be terminated by clearing this bit, but the conversion in progress when this bit is cleared will be completed. Important: START bits must be 000 when BURST = 1 or conversions will not start. 
End of enumeration elements list.
CLKS : This field selects the number of clocks used for each conversion in Burst mode, and the number of bits of accuracy of the result in the LS bits of ADDR, between 11 clocks (10 bits) and 4 clocks (3 bits).
    bits : 17 - 36 (20 bit)
 Enumeration: test
 0x0 : 10BIT 
    
 11 clocks / 10 bits 
 0x1 : 9BIT 
    
 10 clocks / 9 bits 
 0x2 : 8BIT 
    
 9 clocks / 8 bits 
 0x3 : 7BIT 
    
 8 clocks / 7 bits 
 0x4 : 6BIT 
    
 7 clocks / 6 bits 
 0x5 : 5BIT 
    
 6 clocks / 5 bits 
 0x6 : 4BIT 
    
 5 clocks / 4 bits 
 0x7 : 3BIT 
    
 4 clocks / 3 bits 
End of enumeration elements list.
START : When the BURST bit is 0, these bits control whether and when an A/D conversion is started:
    bits : 24 - 50 (27 bit)
 Enumeration: test
 0x0 : STOP 
    
 No start (this value should be used when clearing PDN to 0). 
 0x1 : START 
    
 Start conversion now. 
 0x2 : EDGEPIO0_2 
    
 Start conversion when the edge selected by bit 27 occurs on PIO0_2/SSEL/CT16B0_CAP0. 
 0x3 : EDGEPIO1_5 
    
 Start conversion when the edge selected by bit 27 occurs on PIO1_5/DIR/CT32B0_CAP0. 
 0x4 : EDGECT32B0_MAT0_1 
    
 Start conversion when the edge selected by bit 27 occurs on CT32B0_MAT0[1]. 
 0x5 : EDGECT32B0_MAT1_1 
    
 Start conversion when the edge selected by bit 27 occurs on CT32B0_MAT1[1]. 
 0x6 : EDGECT16B0_MAT0_1 
    
 Start conversion when the edge selected by bit 27 occurs on CT16B0_MAT0[1]. 
 0x7 : EDGECT16B0_MAT1_1 
    
 Start conversion when the edge selected by bit 27 occurs on CT16B0_MAT1[1]. 
End of enumeration elements list.
EDGE : This bit is significant only when the START field contains 010-111. In these cases: Start conversion on a falling edge on the selected CAP/MAT signal.
    bits : 27 - 54 (28 bit)
 Enumeration: test
 0 : RISING 
    
 Start conversion on a rising edge on the selected CAP/MAT signal. 
 1 : FALLING 
    
 Start conversion on a rising edge on the selected CAP/MAT signal. 
End of enumeration elements list.
RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
    bits : 28 - 59 (32 bit)
RESERVED : Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined.
    bits : 28 - 59 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x10 Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x14 Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x18 Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x1C Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x20 Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x24 Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x28 Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Channel n Data Register. This register contains the result of the most recent conversion completed on channel n.
    address_offset : 0x2C Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin, divided by the voltage on the VREF pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VREF, while 0x3FF indicates that the voltage on AD input was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : These bits always read as zeroes.
    bits : 16 - 45 (30 bit)
RESERVED : These bits always read as zeroes. 
    bits : 16 - 45 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.This bit is cleared by reading this register.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read.
    bits : 31 - 62 (32 bit)
    A/D Status Register. This register contains DONE and OVERRUN flags for all of the A/D channels, as well as the A/D interrupt flag.
    address_offset : 0x30 Bytes (0x0)
    access : read-only
    reset_value : 0x0
    reset_Mask : 0x0
    
DONE : These bits mirror the DONE status flags that appear in the result register for each A/D channel n.
    bits : 0 - 7 (8 bit)
OVERRUN : These bits mirror the OVERRRUN status flags that appear in the result register for each A/D channel n. Reading ADSTAT allows checking the status of all A/D channels simultaneously.
    bits : 8 - 23 (16 bit)
ADINT : This bit is the A/D interrupt flag. It is one when any of the individual A/D channel Done flags is asserted and enabled to contribute to the A/D interrupt via the ADINTEN register.
    bits : 16 - 32 (17 bit)
RESERVED : Unused, always 0.
    bits : 17 - 48 (32 bit)
    A/D Global Data Register. Contains the result of the most recent A/D conversion.
    address_offset : 0x4 Bytes (0x0)
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
V_VREF : When DONE is 1, this field contains a binary fraction representing the voltage on the ADn pin selected by the SEL field, divided by the voltage on the VDD pin. Zero in the field indicates that the voltage on the ADn pin was less than, equal to, or close to that on VSS, while 0x3FF indicates that the voltage on ADn was close to, equal to, or greater than that on VREF.
    bits : 6 - 21 (16 bit)
RESERVED : Reserved. These bits always read as zeroes.
    bits : 16 - 39 (24 bit)
CHN : These bits contain the channel from which the result bits V_VREF were converted.
    bits : 24 - 50 (27 bit)
RESERVED : Reserved. These bits always read as zeroes.
    bits : 27 - 56 (30 bit)
RESERVED : Reserved. These bits always read as zeroes.
    bits : 27 - 56 (30 bit)
OVERRUN : This bit is 1 in burst mode if the results of one or more conversions was (were) lost and overwritten before the conversion that produced the result in the V_VREF bits.
    bits : 30 - 60 (31 bit)
DONE : This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read and when the ADCR is written. If the ADCR is written while a conversion is still in progress, this bit is set and a new conversion is started.
    bits : 31 - 62 (32 bit)
    A/D Interrupt Enable Register. This register contains enable bits that allow the DONE flag of each A/D channel to be included or excluded from contributing to the generation of an A/D interrupt.
    address_offset : 0xC Bytes (0x0)
    size : -1 bit
    access : read-write
    reset_value : 0x0
    reset_Mask : 0x0
    
ADINTENn : These bits allow control over which A/D channels generate interrupts for conversion completion. When bit 0 is one, completion of a conversion on A/D channel 0 will generate an interrupt, when bit 1 is one, completion of a conversion on A/D channel 1 will generate an interrupt, etc.
    bits : 0 - 7 (8 bit)
ADGINTEN : When 1, enables the global DONE flag in ADDR to generate an interrupt. When 0, only the individual A/D channels enabled by ADINTEN 7:0 will generate interrupts.
    bits : 8 - 16 (9 bit)
RESERVED : Unused, always 0.
    bits : 9 - 40 (32 bit)
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.
Embeetle, an IDE designed from scratch for embedded software developers.