Skip to content

ADC on lpc546xx not working? #5304

@gorazdko

Description

@gorazdko

Description

  • Type: Question

I am running an example with AnalogIn API to read external voltage (with P0_16 or any analog pin) on my custom lpc54606 board. The program hangs because ADC_GetChannelConversionResult is returning false.

mbed-os sha:
df88a9d

Question

Can anyone confirm the example is working on LPC54608?

#include "mbed.h"

AnalogIn   ain(P0_16);

int main(void)
{
    while (1) {
       
        ain.read();               
        wait(1);
    }
}

@mmahadevan108

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions