MSP430 Embedded Programming Tutorial TUTORIAL
Using Serial Ports
The Serial Port of MSP430 is almost always used in any MSP430 design. The serial port can be used for communication with computer and with other devices supporting serial ports.
Serial Port Transmitter
Let us write a code that will output englisg characters A to Z repeatedly on the Serial Port of the MSP430. If you hook up a Serial TTL to RS232 converter then you should be able to see these characters on the hyperterminal of your computer. If you do not have a TTL to RS232 converter you should be able to monitor the bits going out of MSP430 on a oscilloscope.
|
//****************************************************************************** |
Copy paste this code in your IAR embedder system and run the code. I am assuming that you connect a TTL to RS232 converter between P3.4 and the input ( Pin 2 ) of the DB9 serial port connector of your computer. If you open the hyperterminal then you shoul see something like this on your Hyperterminal
