jim hamblen
/
EasyVR_SoundTableBridge
EasyVR Bridge Program to connect to PC using mbed and download custom sound tables at 115200 baud
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 00002 //EasyVR Bridge Program to connect to PC using mbed and download custom sound tables 00003 #include "mbed.h" 00004 00005 Serial pc(USBTX, USBRX); // tx, rx 00006 Serial device(p13, p14); // tx, rx 00007 00008 int main() { 00009 // higher baud rate is used only to download new sound tables 00010 // also need to put a 100ohm pullup on /XM pin (>3V) and cycle power first. 00011 // in download dialog box, must click the slow transfer check box. 00012 device.baud(115200); 00013 pc.baud(115200); 00014 while(1) { 00015 if(pc.readable()) { 00016 device.putc(pc.getc()); 00017 } 00018 if(device.readable()) { 00019 pc.putc(device.getc()); 00020 } 00021 } 00022 } 00023
Generated on Fri Jul 15 2022 00:49:09 by 1.7.2