Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
No: 02
Date:
AIM:
To design & implement the MSP430 Microcontroller to interfacing of LED using
Embedded C program
APPARATUS REQUIRED:
Hardware:
1. VPUT-01 Universal PIC Embedded Trainer
2. VPUT-01 MSP430 controller Piggy Back
3. Serial Cable
4. Personal Computer
Software:
1. IAR MSP430
2. MSP FET
3. Operating System Windows Xp,W7
PROCEDURE:
I.
Developing Procedure
i.
For C Project
1. Open IAR MSP430 Software.
2. For creating project Project Create New Project C Main
then browse the location, gave the name of project and save it.
3. Choose LED-Debug: Options --> General Options:32 Bit
4.
II.
Execution Procedure
1. Connect the power card to the development board.
THEORY:
The Texas Instruments MSP430 family of ultralow power microcontrollers consist of
several devices featuring different sets of peripherals targeted for various applications. The
architecture, combined with five low power modes is optimized to achieve extended battery
life in portable measurement applications. The device features a powerful 16-bit RISC CPU,
16-bit registers, and constant generators that contribute to maximum code efficiency. The
digitally controlled oscillator (DCO) allows wake-up from low-power modes to active mode
in less than 6 s. The MSP430F15x/16x/161x series are microcontroller configurations with
two built-in 16-bit timers, a fast 12-bit A/D converter, dual 12-bit D/A converter, one or two
universal serial synchronous/asynchronous communication interfaces (USART), I 2C, DMA,
and 48 I/O pins. In addition, the MSP430F161x series offers extended RAM addressing for
memory-intensive applications and large C-stack requirements. Typical applications include
sensor systems, industrial control applications, hand-held meters, etc.
PROGRAM:
#include "msp430x16x.h"
void delay()
{
for(int i=0;i<8;i++)
for( int j=0;j<600;j++);
}
void main()
{
// P2SEL = 0x00;
P2DIR = 0xff;
while(1)
{
P2OUT = 0x55;
delay();
P2OUT = 0xAA;
delay();
}
}
OUTPUT:
For C Code Alternative LEDs are continuously flashed.
RESULT:
Thus the MSP430 Microcontroller to interfacing of LED using Embedded C program
is designed and implemented.