用这个程序12864-12显示不了啊,为什么?请教高手
#include"msp430g2553.h"
#define SENDCOMM 0XF8 //0XF1000
#define READCOMM 0XFC //0XF1100
#define SENDDATA 0XFA //0XF1010
#define READDATA 0XFE //0XF1110
#define E_CLK_0 P2OUT &= ~BIT5 //时钟信号为0
#define E_CLK_1 P2OUT |= BIT5 //时钟信号为1
#define RW_SID_0 P2OUT &= ~BIT4 //数据信号为0
#define RW_SID_1 P2OUT |= BIT4 //数据信号为1
void MCU_initialize(void);
void LCD_send_byte(unsigned char a);
void LCD_comm(unsigned char comm);
void LCD_data(unsigned char lcd_data);
void LCD_setxy(unsigned char x,unsigned char y);
void LCD_WriteStr(unsigned char dis_addr_x,unsigned char dis_addr_y,char* str);
void LCD_init(void);
void main()
{
MCU_initialize();
LCD_init();
LCD_WriteStr(1,1,"浙江");
LCD_WriteStr(1,2,"信电");
while(1);
}
void MCU_initialize(void)
{
WDTCTL = WDTPW + WDTHOLD;
//BCSCTL1 = CALBC1_8MHZ;
//DCOCTL = CALDCO_8MHZ;
P2DIR = 0xFF;
P2OUT = 0x00;
}
void LCD_send_byte(unsigned char a)
{
unsigned char i;
for(i=8;i>0;i--)
{
if(a&(0x01