Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
Diff: main.cpp
- Revision:
- 0:7e16d7d35a02
diff -r 000000000000 -r 7e16d7d35a02 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed May 04 08:25:44 2016 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "AD7790.h"
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+AD7790 ad7790(1.2,D8); // reference voltage 1.2 V - only used in voltage computations
+
+
+int main() {
+ pc.printf("Hello AD7790 !\r\n");
+ ad7790.reset();
+ while(1) {
+ wait(1);
+ pc.printf("Data register read from the ADC is %x \r\n", ad7790.read_u16());
+ }
+}
+
\ No newline at end of file
Analog Devices AD7790