Kategori arşivi: MSP430

MSP430 With 5110 screen

In my this project i will use an 5110 mobile phone’s LCD screen with msp430g2553.
All we need is an msp430, cables and 5110 screen.
5110 screen has PCD8544 controller.
I used an created library for my project that i found from web.

My project is about and traffic light system.
The processor counts from 60 to 0. at that time interval vehicles can pass from their way.
after that counter start counting from 30 to 0. At this time interval pedestrians can use the way.
This project can be improve that i will. But for now this is the end of that project.

MSP430 With 5110 screen

MSP430 With 5110 screen



I won’t give all the codes but i will give the important codes.

For example;

LCD_gotoXY(40,1); // means go the 40. pixel at x direction and 2nd row
// rows starts from 0 (zero)
LCD_writeString(“Walker”); // after selecting the position we can write our string
// that is defined before at “PCD8544.h”
__delay_cycles(1000000); // you can use this function from “msp430.h”
// it means: divide 1 to your clock speed (1/(clock speed) )
// then multiply with the number in paranthesis

I hope this post would be helpful to you.

Good Luck.

Blinking LED By MSP430

At my this project i used ” __delay_cycles(); ” function it is very useful function.
Theme of the program is; i press the P1.3 as HIGH (3.3V) (not from the button) LEDs will
be on sequencely one after the other one and slower than the buttons not pressed case. collage_20141109213010857_20141109213019746

Main goal at this programme for me, i learned from that S2 is connected to the P1.3
and S2’s other pin is connected to the ground. I discovered that by using AVOmeter’s
short circuit channel.

#include <msp430.h>
#define B1 0x08
void main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1SEL = 0x00;
P1DIR = 0x41; // SET LED1 and LED2 as output , S1 as input
//P1REN = 0x08;
for(;;) {
while ( ( P1IN & B1 ) == B1 ){
P1OUT = 0x01;
P1OUT = 0x40;

P1OUT = 0x01;
P1OUT = 0x40;



A Small Step Through MSP430


MSP430 LaunchPad

MSP430 LaunchPad

I have been using Arduino for along time. For one of my lessons, i have to use MSP430 Launchpad so i ordered from http://www.ti.com. It cost me about $10 includes with shipping. i thinks that is so cheap, in the package it comes with 2 processors, data cable and sticker.

At my first project I wrote an code for blinking a LED. It was can be an easy beginning for you but it is entertaining.
that photo is from my workshop.


The MSP-EXP430G2 LaunchPad is an easy-to-use flash programmer and debugging tool for the MSP430G2xx Value Line microcontrollers. It features everything you need to start developing on an MSP430 microcontroller device. It has on-board emulation for programming and debugging and features a 14/20-pin DIP socket, on-board buttons and LEDs & BoosterPack-compatible pinouts that support a wide range of plug-in modules for added functionality such as wireless, displays & more.

My Workshop at MSP430 LaunchPad

My Workshop at MSP430 LaunchPad

#include <MSP430.h>;

unsigned short wGecikme;
void main()
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1SEL &amp;= (~BIT0); // Set P1.0 SEL for GPIO
P1DIR |= BIT0; // Set P1.0 as Output
P1OUT = 0x01; // Set P1.0 HIGH
P1OUT = 0x00; // Set P1.0 HIGH