历史上的今天

今天是:2024年10月17日(星期四)

正在发生

2018年10月17日 | MSP430F5529液晶SPI通信协议

发布者:zhuanshi 来源: eefocus关键字:MSP430F5529  液晶  SPI  通信协议 手机看文章 扫描二维码
随时随地手机看文章

#include

uchar  ascii_table_8x16[95][16];

uchar  ascii_table_5x7[95][5];

void delay(int i)

{

 int j,k;

 for(j=0;j

 for(k=0;k<110;k++);

}

void transfer_command(int data1)

{

     char i;

     cs0;

     cd0;

     for(i=0;i<8;i++)

     {

          sclk0;

          if(data1&0x80) sda1;

          else sda0;

          sclk1;

          data1=data1<<=1;

     }

}

void transfer_data(int data1)

{

     char i;

     cs0;

     cd1;

     for(i=0;i<8;i++)

     {

          sclk0;

          if(data1&0x80) sda1;

          else sda0;

          sclk1;

          data1=data1<<=1;

     }

}

void LCD_init()

{

     cs0;

     reset0;        

     delay(100);

     reset1;          

     delay(20);

     transfer_command(0xe2);  

     delay(5);

     transfer_command(0x2c);  

     delay(5);

     transfer_command(0x2e);  

     delay(5);

     transfer_command(0x2f);  

     delay(5);

     transfer_command(0x23);  

     transfer_command(0x81);  

     transfer_command(0x28);  

     transfer_command(0xa2);  

     transfer_command(0xc8);  

     transfer_command(0xa0);  

     transfer_command(0x40);  

     transfer_command(0xaf);  

     cs1;

}

void lcd_address(uchar page,uchar column)

{

     cs0;

     column=column-1;                            //我们平常所说的第 1 列,在 LCD 驱动 IC 里是第 0 列。所以在这里减去1

     page=page-1;

     transfer_command(0xb0+page);

               //设置页地址。每页是 8 行。一个画面的 64 行被分成 8 个页。我们平常所说的第 1页,在 LCD 驱动 IC 里是第 0 页,所以在这里减去 1*/

     transfer_command(((column>>4)&0x0f)+0x10);     //设置列地址的高 4 位

     transfer_command(column&0x0f);                  //设置列地址的低 4 位

}

void clear_screen()

{

     unsigned char i,j;

     cs0;

     for(i=0;i<9;i++)

     {

          lcd_address(1+i,1);

          for(j=0;j<132;j++)

          {

               transfer_data(0x00);

          }

     }

     cs1;

}

//==================display a piture of 128*64 dots================

void full_display()

{

     int i,j;

     for(i=0;i<8;i++)

     {

          cs0;

          lcd_address(i+1,0);

          for(j=0;j<128;j++)

          {

               transfer_data(0xff);

          }

     }

}

void display_graphic_32x32(uchar page,uchar column,uchar *dp)

{

     uchar i,j;

     cs0;

     for(j=0;j<4;j++)

     {

          lcd_address(page+j,column);

          for (i=0;i<31;i++)

          {

               transfer_data(*dp);        

               dp++;

          }

     }

     cs1;

}

void display_graphic_16x16(uchar page,uchar column,uchar *dp)

{

     uchar i,j;

     cs0;

     for(j=0;j<2;j++)

     {

          lcd_address(page+j,column);

          for (i=0;i<16;i++)

          {

               transfer_data(*dp);        

               dp++;

          }

     }

     cs1;

}

void display_graphic_8x16(uchar page,uchar column,uchar *dp)

{

     uchar i,j;

     cs0;

     for(j=0;j<2;j++)

     {

          lcd_address(page+j,column);

          for (i=0;i<8;i++)

          {

               transfer_data(*dp);              

               dp++;

          }

     }

     cs1;

}

void display_string_8x16(uint page,uint column,uchar *text)

{

     uint i=0,j,k,n;

     cs0;

     while(text[i]>0x00)

     {

          if((text[i]>=0x20)&&(text[i]<=0x7e))

          {

               j=text[i]-0x20;

               for(n=0;n<2;n++)

               {

                    lcd_address(page+n,column);

                    for(k=0;k<8;k++)

                    {

                         transfer_data(ascii_table_8x16[j][k+8*n]);

                    }

               }

               i++;

               column+=8;

          }

          else

          i++;

     }

}

void display_string_5x7(uint page,uint column,uchar *text)

{

     uint i=0,j,k;

     cs0;

     while(text[i]>0x00)

     {

          if((text[i]>=0x20)&&(text[i]<0x7e))

          {

               j=text[i]-0x20;

               lcd_address(page,column);

               for(k=0;k<5;k++)

               {

                    transfer_data(ascii_table_5x7[j][k]);

               }

               i++;

               column+=6;

          }

          else

          i++;

     }

}

void Num_String(double change_num,int precision,char *change_array)

{

    char p[50]="",p1[50]="",k=0;

    char i=0,b=0;

    double z;

    unsigned long y;

    if(change_num<0)  //判断是否为负数

    {

        p[k]='-';

        change_num=0-change_num;

        k++;

    }

    y=(unsigned long)change_num;

    z=change_num-y;

    if(y)   //反序整数部分p1[]

    {

      while(y)

      {

           p1[b]=y+0x30;

           y/=10;

           b++;

      }

    }

    else

        p1[0]=0+0x30;

    b=strlen(p1);  //正序整数部分到p[]

    for(i=0;i

        p[k]=p1[b-1];

    for(i=0;i<50;i++)

        p1[i]=0;

    k=0;

    i=0;

    p1[k]='.';   //加小数点

    k++;

    while(i!=precision+1) //正序小数部分p1[]

    {

      z=z*10;

      y=(int)(z);

      z-=y;

      p1[k]=y+0x30;

      k++;

      i++;

    }

    p1[strlen(p1)-1]='\0';

    strcat(p,p1);

    strcat(change_array,p);

}

void display_number_8x16(uint page,uint column,double Number,int precision)

{

   char String[20]="";  //必须为空

   Num_String(Number,precision,String);   //精度7位

   //(const char*)String;

   display_string_8x16(page,column,(unsigned char*)String);   // uchar *text _____________无符号类型

}

void display_number_5x7(uint page,uint column,double Number,int precision)

{

    char String[20]="";  //必须为空

    Num_String(Number,precision,String);   //精度7位

    //(const char*)String;

    display_string_5x7(page,column,(unsigned char*)String);   // uchar *text _____________无符号类型

}

uchar  ascii_table_8x16[95][16]={

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x30,0x00,0x00,0x00,

0x00,0x10,0x0C,0x06,0x10,0x0C,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x40,0xC0,0x78,0x40,0xC0,0x78,0x40,0x00,0x04,0x3F,0x04,0x04,0x3F,0x04,0x04,0x00,

0x00,0x70,0x88,0xFC,0x08,0x30,0x00,0x00,0x00,0x18,0x20,0xFF,0x21,0x1E,0x00,0x00,

0xF0,0x08,0xF0,0x00,0xE0,0x18,0x00,0x00,0x00,0x21,0x1C,0x03,0x1E,0x21,0x1E,0x00,

0x00,0xF0,0x08,0x88,0x70,0x00,0x00,0x00,0x1E,0x21,0x23,0x24,0x19,0x27,0x21,0x10,

0x10,0x16,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0xE0,0x18,0x04,0x02,0x00,0x00,0x00,0x00,0x07,0x18,0x20,0x40,0x00,

0x00,0x02,0x04,0x18,0xE0,0x00,0x00,0x00,0x00,0x40,0x20,0x18,0x07,0x00,0x00,0x00,

0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00,

0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x1F,0x01,0x01,0x01,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xB0,0x70,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x04,0x00,0x60,0x18,0x06,0x01,0x00,0x00,0x00,

0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,

0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,

0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,

0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,

0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,

0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,

0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,

0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,

0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,

0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,

0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x00,0x00,0x00,0x00,

0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x00,

0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x00,

0x00,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x20,0x10,0x08,0x04,0x02,0x01,0x00,

0x00,0x70,0x48,0x08,0x08,0x08,0xF0,0x00,0x00,0x00,0x00,0x30,0x36,0x01,0x00,0x00,

0xC0,0x30,0xC8,0x28,0xE8,0x10,0xE0,0x00,0x07,0x18,0x27,0x24,0x23,0x14,0x0B,0x00,

0x00,0x00,0xC0,0x38,0xE0,0x00,0x00,0x00,0x20,0x3C,0x23,0x02,0x02,0x27,0x38,0x20,

0x08,0xF8,0x88,0x88,0x88,0x70,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x11,0x0E,0x00,

0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00,

0x08,0xF8,0x08,0x08,0x08,0x10,0xE0,0x00,0x20,0x3F,0x20,0x20,0x20,0x10,0x0F,0x00,

0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x20,0x23,0x20,0x18,0x00,

0x08,0xF8,0x88,0x88,0xE8,0x08,0x10,0x00,0x20,0x3F,0x20,0x00,0x03,0x00,0x00,0x00,

0xC0,0x30,0x08,0x08,0x08,0x38,0x00,0x00,0x07,0x18,0x20,0x20,0x22,0x1E,0x02,0x00,

0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x20,0x3F,0x21,0x01,0x01,0x21,0x3F,0x20,

0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

0x00,0x00,0x08,0x08,0xF8,0x08,0x08,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,0x00,

0x08,0xF8,0x88,0xC0,0x28,0x18,0x08,0x00,0x20,0x3F,0x20,0x01,0x26,0x38,0x20,0x00,

0x08,0xF8,0x08,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x20,0x20,0x20,0x30,0x00,

0x08,0xF8,0xF8,0x00,0xF8,0xF8,0x08,0x00,0x20,0x3F,0x00,0x3F,0x00,0x3F,0x20,0x00,

0x08,0xF8,0x30,0xC0,0x00,0x08,0xF8,0x08,0x20,0x3F,0x20,0x00,0x07,0x18,0x3F,0x00,

0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x10,0x20,0x20,0x20,0x10,0x0F,0x00,

0x08,0xF8,0x08,0x08,0x08,0x08,0xF0,0x00,0x20,0x3F,0x21,0x01,0x01,0x01,0x00,0x00,

0xE0,0x10,0x08,0x08,0x08,0x10,0xE0,0x00,0x0F,0x18,0x24,0x24,0x38,0x50,0x4F,0x00,

0x08,0xF8,0x88,0x88,0x88,0x88,0x70,0x00,0x20,0x3F,0x20,0x00,0x03,0x0C,0x30,0x20,

0x00,0x70,0x88,0x08,0x08,0x08,0x38,0x00,0x00,0x38,0x20,0x21,0x21,0x22,0x1C,0x00,

0x18,0x08,0x08,0xF8,0x08,0x08,0x18,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00,

0x08,0xF8,0x08,0x00,0x00,0x08,0xF8,0x08,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00,

0x08,0x78,0x88,0x00,0x00,0xC8,0x38,0x08,0x00,0x00,0x07,0x38,0x0E,0x01,0x00,0x00,

0xF8,0x08,0x00,0xF8,0x00,0x08,0xF8,0x00,0x03,0x3C,0x07,0x00,0x07,0x3C,0x03,0x00,

0x08,0x18,0x68,0x80,0x80,0x68,0x18,0x08,0x20,0x30,0x2C,0x03,0x03,0x2C,0x30,0x20,

0x08,0x38,0xC8,0x00,0xC8,0x38,0x08,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,0x00,

0x10,0x08,0x08,0x08,0xC8,0x38,0x08,0x00,0x20,0x38,0x26,0x21,0x20,0x20,0x18,0x00,

0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00,

0x00,0x0C,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x38,0xC0,0x00,

0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,

0x00,0x00,0x04,0x02,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,

0x00,0x02,0x02,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20,

0x08,0xF8,0x00,0x80,0x80,0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00,

0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00,

0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x20,0x20,0x10,0x3F,0x20,

0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x22,0x22,0x22,0x22,0x13,0x00,

0x00,0x80,0x80,0xF0,0x88,0x88,0x88,0x18,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x6B,0x94,0x94,0x94,0x93,0x60,0x00,

0x08,0xF8,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20,

0x00,0x80,0x98,0x98,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

0x00,0x00,0x00,0x80,0x98,0x98,0x00,0x00,0x00,0xC0,0x80,0x80,0x80,0x7F,0x00,0x00,

0x08,0xF8,0x00,0x00,0x80,0x80,0x80,0x00,0x20,0x3F,0x24,0x02,0x2D,0x30,0x20,0x00,

0x00,0x08,0x08,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,

0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x20,0x3F,0x20,0x00,0x3F,0x20,0x00,0x3F,

0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x3F,0x21,0x00,0x00,0x20,0x3F,0x20,

0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x1F,0x20,0x20,0x20,0x20,0x1F,0x00,

0x80,0x80,0x00,0x80,0x80,0x00,0x00,0x00,0x80,0xFF,0xA1,0x20,0x20,0x11,0x0E,0x00,

0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x0E,0x11,0x20,0x20,0xA0,0xFF,0x80,

0x80,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x20,0x20,0x3F,0x21,0x20,0x00,0x01,0x00,

0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x33,0x24,0x24,0x24,0x24,0x19,0x00,

0x00,0x80,0x80,0xE0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x1F,0x20,0x20,0x00,0x00,

0x80,0x80,0x00,0x00,0x00,0x80,0x80,0x00,0x00,0x1F,0x20,0x20,0x20,0x10,0x3F,0x20,

0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x00,0x01,0x0E,0x30,0x08,0x06,0x01,0x00,

0x80,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x0F,0x30,0x0C,0x03,0x0C,0x30,0x0F,0x00,

0x00,0x80,0x80,0x00,0x80,0x80,0x80,0x00,0x00,0x20,0x31,0x2E,0x0E,0x31,0x20,0x00,

0x80,0x80,0x80,0x00,0x00,0x80,0x80,0x80,0x80,0x81,0x8E,0x70,0x18,0x06,0x01,0x00,

0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x21,0x30,0x2C,0x22,0x21,0x30,0x00,

0x00,0x00,0x00,0x00,0x80,0x7C,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x3F,0x40,0x40,

0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,

0x00,0x02,0x02,0x7C,0x80,0x00,0x00,0x00,0x00,0x40,0x40,0x3F,0x00,0x00,0x00,0x00,

0x00,0x06,0x01,0x01,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

};

uchar  ascii_table_5x7[95][5]={

0x00,0x00,0x00,0x00,0x00,//space

0x00,0x00,0x4f,0x00,0x00,//!

0x00,0x07,0x00,0x07,0x00,//"

0x14,0x7f,0x14,0x7f,0x14,//#

0x24,0x2a,0x7f,0x2a,0x12,//$

0x23,0x13,0x08,0x64,0x62,//%

0x36,0x49,0x55,0x22,0x50,//&

0x00,0x05,0x07,0x00,0x00,//]

0x00,0x1c,0x22,0x41,0x00,//(

0x00,0x41,0x22,0x1c,0x00,//)

0x14,0x08,0x3e,0x08,0x14,/

0x00,0x41,0x41,0x7f,0x00,//]

0x04,0x02,0x01,0x02,0x04,//^

0x40,0x40,0x40,0x40,0x40,//_

0x01,0x02,0x04,0x00,0x00,//`

0x20,0x54,0x54,0x54,0x78,//a

0x7f,0x48,0x48,0x48,0x30,//b

0x38,0x44,0x44,0x44,0x44,//c

0x30,0x48,0x48,0x48,0x7f,//d

0x38,0x54,0x54,0x54,0x58,//e

0x00,0x08,0x7e,0x09,0x02,//f

0x48,0x54,0x54,0x54,0x3c,//g

0x7f,0x08,0x08,0x08,0x70,//h

0x00,0x00,0x7a,0x00,0x00,//i

0x20,0x40,0x40,0x3d,0x00,//j

0x7f,0x20,0x28,0x44,0x00,//k

0x00,0x41,0x7f,0x40,0x00,//l

0x7c,0x04,0x38,0x04,0x7c,//m

0x7c,0x08,0x04,0x04,0x78,//n

0x38,0x44,0x44,0x44,0x38,//o

0x7c,0x14,0x14,0x14,0x08,//p

0x08,0x14,0x14,0x14,0x7c,//q

0x7c,0x08,0x04,0x04,0x08,//r

0x48,0x54,0x54,0x54,0x24,//s

0x04,0x04,0x3f,0x44,0x24,//t

0x3c,0x40,0x40,0x40,0x3c,//u

0x1c,0x20,0x40,0x20,0x1c,//v

0x3c,0x40,0x30,0x40,0x3c,//w

0x44,0x28,0x10,0x28,0x44,//x

0x04,0x48,0x30,0x08,0x04,//y

0x44,0x64,0x54,0x4c,0x44,//z

0x08,0x36,0x41,0x41,0x00,//{

0x00,0x00,0x77,0x00,0x00,//|

0x00,0x41,0x41,0x36,0x08,//}

0x04,0x02,0x02,0x02,0x01,//~

};

extern uchar  zhuang1[]={

0x08,0x30,0x00,0xFF,0x20,0x20,0x20,0x20,0xFF,0x20,0xE1,0x26,0x2C,0x20,0x20,0x00,

0x04,0x02,0x01,0xFF,0x40,0x20,0x18,0x07,0x00,0x00,0x03,0x0C,0x30,0x60,0x20,0x00};

extern uchar  zhuang2[]={

0x00,0x08,0x30,0x00,0xFF,0x20,0x20,0x20,

0x20,0xFF,0x20,0x20,0x22,0x2C,0x20,0x00,

0x04,0x04,0x02,0x01,0xFF,0x80,0x40,0x30,

0x0E,0x01,0x06,0x18,0x20,0x40,0x80,0x00,

};


关键字:MSP430F5529  液晶  SPI  通信协议 引用地址:MSP430F5529液晶SPI通信协议

上一篇:msp430f5419/38学习笔记之USCI:UART模式
下一篇:基于MSP430F5529的金属循迹小车

推荐阅读

1、时钟源在STM32中,一共有5个时钟源,分别是HSI、HSE、LSI、LSE、PLL 。 ①HSI 是高速内部时钟, RC 振荡器,频率为8MHz ;②HSE 是高速外部时钟,可接石英 / 陶瓷谐振器,或者接外部时钟源,频率范围是4MHz – 16MHz ; ③LSI 是低速内部时钟,RC振荡器,频率为40KHz; ④LSE 是低速外部时钟,接频率为32.768KHz的石英晶体; ⑤PLL 为锁相环倍频输出...
准确度更高、识别度更高、清晰度更高,传输速度更快,工作效率得到提升,安全上了一个新台阶……日前,特高压±800千伏中州换流站开启为期十天的年度检修,和以往不同,该站在检修中首次运用5G技术,开全国先河。 中州换流站此次检修所使用的5G技术依托华中院设计的5G网络在电力通信网络中的应用技术设计,检修呈现出来的良好效果充分展现了华中院的技...
“欧洲新能源汽车销量反超中国,今年已经是铁定的事实。”不久前,宁德时代新能源科技股份有限公司董事长曾毓群此话一出,便引起行业高度重视,关于中外新能源汽车产业的高下之争,就此拉开帷幕。进入2020年,全球新能源汽车及动力电池产业都进入了新的转折点。中国《新能源汽车产业发展规划》已经编制完成,新能源汽车产业外商投资全面放开,动力电池“白...
博主@数码闲聊站爆料,明年是联发科冲击高端市场的关键一年,联发科下一代旗舰芯片将是前期唯一一款基于台积电4nm工艺打造的产品。此前披露的信息显示,联发科下一代旗舰Soc可能会命名为天玑2000。据爆料,天玑2000将采用超大核+大核+小核的三丛核架构,其中超大核为Cortex X2,与目前的Cortex-X1相比,Cortex-X2在指令集升级为ARMv9-A的同时,还针对分支...

史海拾趣

问答坊 | AI 解惑

MEMS系统资料汇聚

微机电系统MEMS(Micro-Electro-Mechanical Systems)是一种全新的必须同时考虑多种物理场混合作用的研发领域,相对于传统的机械,它们的尺寸更小,最大的不超过一个厘米,甚至仅仅为几个微米,其厚度就更加微小。采用以硅为主的材料,电气性能优良, ...…

查看全部问答∨

经典:电子书《linux程序设计》第4版

电子书《linux程序设计》第4版,英文 …

查看全部问答∨

使用反向门极驱动光电耦合器进行变速电机驱动的设计考量

使用反向门极驱动光电耦合器进行变速电机驱动的设计考量…

查看全部问答∨

有个小电路谁能帮我分析一下?

您帮我看一下,这里的Q1到底有什么作用?…

查看全部问答∨

零起点学习STM32F107开发第6讲( 用DMA实现ADC采样)

       各位支持本教程的朋友们,我很抱歉的通知各位,从该期开始奖不再有教程了。因为本人就要开始找工作了。谢谢你们一直以来的支持。       不过我会上传相应的例程,有问题的请 ...…

查看全部问答∨

SD卡出错,如何修复??

今天有个SD卡,做的U3盘,一直正常使用。 过很长时间再运行,出现SD 卡没有格式化, 将其格式FAT16 容量少了一半, 现在不能写入, 出现“加密数字存储设备” 经查 格式文件为“RAV? 请教大家如何修复??…

查看全部问答∨

AT91RM9200 SDRAM flash 启动问题

环境:AT91Rm9200 +S29Gl064A R6 SDRAM MT48LC16  U-boot +linux系统 问题: 板卡从内部rom启动后,下载uboot能够通过命令,向flash正常写数据! 烧写完boot.bin+u-boot.bin.gz+kernelimage 文件后,启动正常。 但如果在Hit any key t ...…

查看全部问答∨

大家有没有判别一个函数对内存通信量大小的方法

我现在需要将函数分为对内存访问量大和对内存访问量小的二类,可以从函数的软件实现或硬件实现来分析 现在要给出分类方法以及评价体系,希望大家能给点建议噢   谢谢…

查看全部问答∨

如何使操作系统接受两个VID和PID完全一样的HID设备?

项目描述: 1。采用芯片HT82M99E 2。用途:模拟键盘,上传到PC少量数据。 3。所有产品的VID和PID相同。 问题描述: 1。假设有两个HID设备产品A,B。两台电脑甲乙丙。 2。AB均连接到电脑甲,AB工作都正常,但是AB都连接到电脑乙上时,出现操作 ...…

查看全部问答∨

几种保护电路

本帖最后由 jameswangsynnex 于 2015-3-3 20:01 编辑 视频数据线具有高数据传输率,(其数据传输率高达480 Mbps,有的视频数据传输率达到1G 以上),因而要选择低电容LCTVS,通常是将一个低电容二极管与TVS 二极管串联,以降低整个线路的电容(可低 ...…

查看全部问答∨
小广播
设计资源 培训 开发板 精华推荐

最新单片机文章
何立民专栏 单片机及嵌入式宝典

北京航空航天大学教授,20余年来致力于单片机与嵌入式系统推广工作。

换一换 更多 相关热搜器件
更多往期活动
随便看看

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved