ADC example on AIN_0

Dependencies:   max32630fthr mbed

Files at this revision

API Documentation at this revision

Comitter:
j3
Date:
Tue Feb 21 19:42:15 2017 +0000
Parent:
0:ecc75690fcf5
Commit message:
added additional comments

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ecc75690fcf5 -r 047c43d8b360 main.cpp
--- 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);