Skip to content

Reading Analog Inputs with 12-bit resolution not working on SAMD51 #342

Open
@DevonReynolds

Description

@DevonReynolds

adc->CTRLA.bit.ENABLE = 0x00; // Disable ADC

The board i'm using is a Grand Central.

In analogRead it enables the adc, reads the value then disables the adc. In 10 bit mode this works fine. In 12 bit resolution this approach somehow changes it to 11-bit resolution. The lowest bit is never set. If the adc is left enabled it works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions