EasyManuals Logo

Texas Instruments MSP430 User Manual

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
Page #273 background imageLoading...
Page #273 background image
273
void LCD_clear_home(void);
void LCD_goto(unsigned char x_pos, unsigned char y_pos);
lcd.c
#include "lcd.h"
void SIPO(void)
{
unsigned char bit = 0;
unsigned char clk = 8;
unsigned char temp = 0;
temp = data_value;
STB_LOW;
while(clk > 0)
{
bit = ((temp & 0x80) >> 0x07);
bit &= 0x01;
switch(bit)
{
case 0:
{
SDO_LOW;
break;
}
default:
{
SDO_HIGH;
break;
}
}
SCK_HIGH;
temp <<= 1;
clk--;
SCK_LOW;
}
STB_HIGH;
}
void LCD_init(void)
{
unsigned char t = 0x0A;
data_value = 0x08;
SIPO();
while(t > 0x00)
{
delay_ms(dly);

Table of Contents

Other manuals for Texas Instruments MSP430

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments MSP430 and is the answer not in the manual?

Texas Instruments MSP430 Specifications

General IconGeneral
BrandTexas Instruments
ModelMSP430
CategoryMicrocontrollers
LanguageEnglish

Related product manuals