Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 9 months ago.
MAX32630FTHR ADC
I am trying to work with the ADC. I define the analog inputs as follows:
AnalogIn ch0(AIN_0); ADC input AnalogIn ch1(AIN_1); ADC input AnalogIn ch2(AIN_2); ADC input AnalogIn ch3(AIN_3); ADC input
I get the following compiler error:
I could not find an example, so I am basically porting mBed ADC code that works on other mBed enabled platforms. Is there something different on the MAX32630FTHR?
Question relating to:
2 Answers
7 years, 9 months ago.
Bill, The path in your error message calls out an old development library. Please change to the official mbed-os library. Our latest examples at our MAX32630FTHR APPS wiki page all use the official library now.
This example uses the analog inputs:
Import programFTHR_OLED
Adafruit FeatherOLED example for the MAX32630FTHR board
7 years, 9 months ago.
Hello Bill,
Please see the following example, https://developer.mbed.org/users/j3/code/MAX32630FTHR_ADC_Example/file/047c43d8b360/main.cpp
Links to analogin_api.c for both mbed-os and mbed-2.0 showing the configuration of an ADC channel when using the mbed API.
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_Maxim/TARGET_MAX32630/analogin_api.c
I hope this helps.
Thanks, Justin