Sei sulla pagina 1di 3

Ex.

No: 02

SYSTEM DESIGN USING MSP430

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.

Linker Output Others

5. Debugger Driver FET Debugger


6. Project Rebuild All Led.c

II.

Execution Procedure
1. Connect the power card to the development board.

2. Connect the serial cable between the PC and development board.


3. Switch on the power supply.
4. Open MSP FET.exe GUI for hex file downloading.
5. Go to Tools Setup select BSL
6. File Open Auto Reset

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.

Potrebbero piacerti anche