
ADC example on AIN_0
Dependencies: max32630fthr mbed
Diff: main.cpp
- Revision:
- 1:047c43d8b360
- Parent:
- 0:ecc75690fcf5
--- a/main.cpp Tue Feb 21 19:39:04 2017 +0000 +++ b/main.cpp Tue Feb 21 19:42:15 2017 +0000 @@ -42,9 +42,11 @@ while(1) { - //ADC is configured for no input scaling and no input buffer bypass, - //so range is 0 to 1.2V. See 'analogin_api.c' for target and - //user's guide page 567, + //ADC is configured for no input scaling, no input buffer bypass, + //and internal ref of 1.2V + //Default range is 0 to 1.2V. + //See target 'analogin_api.c' for mbed-2.0 and mbed-os. + //Target User's guide page 567 covers ADC //https://www.maximintegrated.com/en/app-notes/index.mvp/id/6349 a0_val = (a0.read() * 1.2F);