EasyManua.ls Logo

Texas Instruments MSP430

Texas Instruments MSP430
413 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
62
LCD_send((0x80 | 0x40 | x_pos), CMD);
}
}
void toggle_EN_pin(void)
{
LCD_EN_HIGH;
delay_ms(2);
LCD_EN_LOW;
delay_ms(2);
}
void toggle_io(unsigned char lcd_data, unsigned char bit_pos, unsigned char
pin_num)
{
unsigned char temp = 0x00;
temp = (0x01 & (lcd_data >> bit_pos));
switch(temp)
{
case 0:
{
LCD_PORT &= ~pin_num;
break;
}
default:
{
LCD_PORT |= pin_num;
break;
}
}
}
main.c
#include <msp430.h>
#include "delay.h"
#include "lcd.h"
void GPIO_graceInit(void);
void BCSplus_graceInit(void);
void System_graceInit(void);
void WDTplus_graceInit(void);
void main(void)
{
unsigned char s = 0;
const char txt1[] = {"MICROARENA"};
const char txt2[] = {"SShahryiar"};
const char txt3[] = {"MSP-EXP430G2"};
const char txt4[] = {"Launchpad!"};

Table of Contents

Other manuals for Texas Instruments MSP430

Related product manuals