Greg Steiert
/
MAX3232_DEMO
Demonstration program for the MAX3232PMB1 Peripheral Module with the MAXREFDES72# Arduino to Pmod Adapter
main.cpp
- Committer:
- gsteiert
- Date:
- 2014-04-26
- Revision:
- 0:803011eae289
- Child:
- 1:6f1c3cb10608
File content as of revision 0:803011eae289:
#include "mbed.h" #include "MAX14661.h" MAX14661 mux(D14, D15); DigitalOut pinRTS(D13); DigitalIn pinRX(D0); // Set as input to remove load from mbedTX DigitalIn pinTX(D1); // Set as input to remove load from mbedRX int main() { pinRTS=0; // Not Ready to Send // D0 (mbedTX) + PA2 (TXD) D1 (mbedRX) + PA3 (RXD) mux.setAB((MAX14661::SW01 | MAX14661::SW13), (MAX14661::SW02 | MAX14661::SW12)); pinRTS=1; // Ready to Send }