ADC and DAC of FRDM Board. PTE20 is input than can take maximum 3.3v and minimum 0.0v PTE30 is output

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
laxmimerit
Date:
Sun Oct 04 11:37:05 2015 +0000
Commit message:
ADC and DAC of FRDM Board

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r c7bd9a3bc33a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 04 11:37:05 2015 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+// The sinewave is created on this pin
+AnalogOut aout(PTE30);
+AnalogIn   ain(PTE20);
+ 
+DigitalOut myled(LED1);
+int i;
+int main() {
+    while(1) {
+        i = ain.read_u16();
+        aout.write_u16(i);
+    }
+}
diff -r 000000000000 -r c7bd9a3bc33a mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Oct 04 11:37:05 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file