Skip to main content

Serial Communication using MSP430G2x UART (USCI_A) Module

In MSP430, serial communication is handled by an on chip peripheral called USCI (Universal Serial Communications Interface​).The peripheral is designed in such a way that it can handle multiple serial communication formats ,synchronous as well as asynchronous like SPI,I2C,IrDA,UART etc.

Understanding Watch Dog Timer (WDT+) of MSP430G2x

Main function of a watch dog timer is to reset the microcontroller when it gets trapped in an infinite loop or experience a software fault .It is basically a hardware timer which counts up and resets the controller after the specified time has passed.

During normal operation,the running program has to periodically clear the counter so that it doesnt reset the microcontroller .When the program gets stuck in a software loop,WDT is not cleared at the proper time as a result it counts up and resets the controller.

Configuring the I/O Ports of MSP430G2x Microcontroller

MSP430 microcontroller series usually has 8 bit ports numbered as Port 1, Port 2, Port 3 etc.

Ports 1 and 2 have interrupt capabilities and can have internal pullup resistors. Please note that there is no Port 0.

 

Ports of MSP430G2xxx

In the case of MSP430G2553, two 8 bit ports Port1 and Port 2 are available. 

Introduction to MSP430 MicroController Programming using Launchpad Dev Board

MSP430 is developed by Texas Instruments as an extremely low power 16 bit architecture for use in low power, low cost, energy constrained embedded applications. The Hardware used is the MSP430 Launchpad from TI which contains a programmer/Debugger.

Please note that this tutorial is a work in progress so new info will be added as it becomes available.