5 years, 10 months ago.

Any known issue with LPC 1768 analogOut (p18) freezing up?

Are there any known issue with LPC 1768 analogOut (p18) freezing up? Everything else is running but stops responding to writes out.

1 Answer

5 years, 10 months ago.

Hi Kevin,

How are you writing to your AnalogOut pin? The following code is working on my LPC1768 without freezing up:

#include "mbed.h"

AnalogOut  aout(p18);

int main(void)
{
    while (1) {
        for (float i = 0.0f; i < 1.0f; i += 0.1f) {
            aout = i;
            printf("aout = %1.2f volts\n", aout.read() * 3.3f);
            wait(1.0f);
        }
    }
}

I would also suggest updating your LPC1768's firmware as well: https://os.mbed.com/handbook/Firmware-LPC1768-LPC11U24

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!