block/ADC: description: Analog to digital converter. items: - name: TASKS_START description: Start an ADC conversion. byte_offset: 0 access: Write - name: TASKS_STOP description: Stop ADC. byte_offset: 4 access: Write - name: EVENTS_END description: ADC conversion complete. byte_offset: 256 - name: INTENSET description: Interrupt enable set register. byte_offset: 772 fieldset: INTENSET - name: INTENCLR description: Interrupt enable clear register. byte_offset: 776 fieldset: INTENCLR - name: BUSY description: ADC busy register. byte_offset: 1024 access: Read fieldset: BUSY - name: ENABLE description: ADC enable. byte_offset: 1280 fieldset: ENABLE - name: CONFIG description: ADC configuration register. byte_offset: 1284 fieldset: CONFIG - name: RESULT description: Result of ADC conversion. byte_offset: 1288 access: Read fieldset: RESULT - name: POWER description: Peripheral power control. byte_offset: 4092 fieldset: POWER fieldset/BUSY: description: ADC busy register. fields: - name: BUSY description: ADC busy register. bit_offset: 0 bit_size: 1 enum: BUSY fieldset/CONFIG: description: ADC configuration register. fields: - name: RES description: ADC resolution. bit_offset: 0 bit_size: 2 enum: RES - name: INPSEL description: ADC input selection. bit_offset: 2 bit_size: 3 enum: INPSEL - name: REFSEL description: ADC reference selection. bit_offset: 5 bit_size: 2 enum: REFSEL - name: PSEL description: ADC analog pin selection. bit_offset: 8 bit_size: 8 enum: PSEL - name: EXTREFSEL description: ADC external reference pin selection. bit_offset: 16 bit_size: 2 enum: EXTREFSEL fieldset/ENABLE: description: ADC enable. fields: - name: ENABLE description: ADC enable. bit_offset: 0 bit_size: 2 enum: ENABLE fieldset/INTENCLR: description: Interrupt enable clear register. fields: - name: END description: Disable interrupt on END event. bit_offset: 0 bit_size: 1 enum: INTENCLR_END fieldset/INTENSET: description: Interrupt enable set register. fields: - name: END description: Enable interrupt on END event. bit_offset: 0 bit_size: 1 enum: INTENSET_END fieldset/POWER: description: Peripheral power control. fields: - name: POWER description: Peripheral power control. bit_offset: 0 bit_size: 1 enum: POWER fieldset/RESULT: description: Result of ADC conversion. fields: - name: RESULT description: Result of ADC conversion. bit_offset: 0 bit_size: 10 enum/BUSY: bit_size: 1 variants: - name: Ready description: No ongoing ADC conversion is taking place. ADC is ready. value: 0 - name: Busy description: An ADC conversion is taking place. ADC is busy. value: 1 enum/ENABLE: bit_size: 2 variants: - name: Disabled description: ADC is disabled. value: 0 - name: Enabled description: ADC is enabled. If an analog input pin is selected as source of the conversion, the selected pin is configured as an analog input. value: 1 enum/EXTREFSEL: bit_size: 2 variants: - name: None description: Analog external reference inputs disabled. value: 0 - name: AnalogReference0 description: Use analog reference 0 as reference. value: 1 - name: AnalogReference1 description: Use analog reference 1 as reference. value: 2 enum/INPSEL: bit_size: 3 variants: - name: AnalogInputNoPrescaling description: Analog input specified by PSEL with no prescaling used as input for the conversion. value: 0 - name: AnalogInputTwoThirdsPrescaling description: Analog input specified by PSEL with 2/3 prescaling used as input for the conversion. value: 1 - name: AnalogInputOneThirdPrescaling description: Analog input specified by PSEL with 1/3 prescaling used as input for the conversion. value: 2 - name: SupplyTwoThirdsPrescaling description: Supply voltage with 2/3 prescaling used as input for the conversion. value: 5 - name: SupplyOneThirdPrescaling description: Supply voltage with 1/3 prescaling used as input for the conversion. value: 6 enum/INTENCLR_END: bit_size: 1 variants: - name: Disabled description: Interrupt disabled. value: 0 - name: R_Enabled_W_Clear description: Interrupt enabled. value: 1 enum/INTENSET_END: bit_size: 1 variants: - name: Disabled description: Interrupt disabled. value: 0 - name: R_Enabled_W_Set description: Interrupt enabled. value: 1 enum/POWER: bit_size: 1 variants: - name: Disabled description: Module power disabled. value: 0 - name: Enabled description: Module power enabled. value: 1 enum/PSEL: bit_size: 8 variants: - name: Disabled description: Analog input pins disabled. value: 0 - name: AnalogInput0 description: Use analog input 0 as analog input. value: 1 - name: AnalogInput1 description: Use analog input 1 as analog input. value: 2 - name: AnalogInput2 description: Use analog input 2 as analog input. value: 4 - name: AnalogInput3 description: Use analog input 3 as analog input. value: 8 - name: AnalogInput4 description: Use analog input 4 as analog input. value: 16 - name: AnalogInput5 description: Use analog input 5 as analog input. value: 32 - name: AnalogInput6 description: Use analog input 6 as analog input. value: 64 - name: AnalogInput7 description: Use analog input 7 as analog input. value: 128 enum/REFSEL: bit_size: 2 variants: - name: VBG description: Use internal 1.2V bandgap voltage as reference for conversion. value: 0 - name: External description: Use external source configured by EXTREFSEL as reference for conversion. value: 1 - name: SupplyOneHalfPrescaling description: Use supply voltage with 1/2 prescaling as reference for conversion. Only usable when supply voltage is between 1.7V and 2.6V. value: 2 - name: SupplyOneThirdPrescaling description: Use supply voltage with 1/3 prescaling as reference for conversion. Only usable when supply voltage is between 2.5V and 3.6V. value: 3 enum/RES: bit_size: 2 variants: - name: 8bit description: 8bit ADC resolution. value: 0 - name: 9bit description: 9bit ADC resolution. value: 1 - name: 10bit description: 10bit ADC resolution. value: 2