README 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Hardware UART example for MSP430 using mps430-gcc on Linux
  2. sw@kaltpost.de
  3. http://gpio.kaltpost.de/
  4. Introduction
  5. ------------
  6. This example shows how to use hardware UART through USCI_A on the TI Launchpad with a MSP430G2553 MCU.
  7. Hardware Setup
  8. --------------
  9. The wiring for this example is as follows:
  10. MSP430 To
  11. ----------------------------------------
  12. RXD P1.1 TXD serial line
  13. TXD P1.2 RXD serial line
  14. NOTE: When using the TI Launchpad, "/dev/ttyACM0" could be used as serial port at 9600 Bauds, but RX/TX must be crossed on the jumper bridge of the Launchpad.
  15. Compilation
  16. ------------
  17. This project is written for msp430-gcc on Linux (I used v4.5.3 which is available as package on ubuntu). For flashing the "mspdebug" tool was used (also from the Ubuntu package).
  18. To compile the source just issue a:
  19. make
  20. This builds the firmware in the "bin" subdirectory in various formats.
  21. Flashing
  22. ------------
  23. To flash the firmware to your Launchpad you could use the "flash-target" make target:
  24. make flash-target
  25. Doxygen Docs
  26. ------------
  27. If you installed doxygen on your system, you could generate the HTML-based documentation by calling:
  28. make gen-docs
  29. This will create the documentation under "doc/gen/html".
  30. Usage
  31. ------------
  32. Connecting your Launchpad should give you a new serial device "/dev/ttyACM0". Connect to this port at 9600 bauds - e.g. by using screen:
  33. screen /dev/ttyACM0 9600
  34. A greeter is shown on the serial line, and you are prompted to press any key to start the echo demo. After the first keypress, "OK" is printed, and from then on, every character you type is echoed back. Every time, a character is received, the red LED on the launchpad is toggled. The green LED stadily blinks.