EasyVR Bridge Program to connect to PC using mbed and download custom sound tables at 115200 baud

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
4180_1
Date:
Sun May 22 01:05:50 2011 +0000
Commit message:

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 a67c69cfafb9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun May 22 01:05:50 2011 +0000
@@ -0,0 +1,23 @@
+
+    //EasyVR Bridge Program to connect to PC using mbed and download custom sound tables
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
+Serial device(p13, p14);  // tx, rx
+
+int main() {
+// higher baud rate is used only to download new sound tables
+// also need to put a 100ohm pullup on /XM pin (>3V) and cycle power first.
+// in download dialog box, must click the slow transfer check box.
+    device.baud(115200);
+    pc.baud(115200);
+    while(1) {
+        if(pc.readable()) {
+            device.putc(pc.getc());
+        }
+        if(device.readable()) {
+            pc.putc(device.getc());
+        }
+    }
+}
+
diff -r 000000000000 -r a67c69cfafb9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun May 22 01:05:50 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912