傻逼了,用28335驱动一个1602,竟然没搞定。
#include "DSP2833x_Device.h" // DSP2833x Headerfile Include File
#include "DSP2833x_Examples.h" // DSP2833x Examples Include File
void LCD_Init(void)
{
LCD_delay(1000);
LCD_delay(1000);
LCD_delay(1000);
LCD_Send(0,0x30); //selcete lcd data bus in 8-bit, display in two lines,display in 5*10 way
LCD_delay(1000);
LCD_Send(0,0x30);
LCD_delay(1000);
LCD_Send(0,0x30);
LCD_delay(1000);
LCD_Send(0,0x38);
LCD_delay(1000);
LCD_Send(0,0x08);
LCD_delay(1000);
LCD_Send(0,0x01); //set cours move direction right, disable display move
LCD_delay(1000);
LCD_Send(0,0x06);
LCD_delay(1000);
LCD_Send(1,0x41);
}
//====================================================
//name : void LCD_Send(uint16 di,LCD_Data data)
//func : send data or instruction to lcd displayer
//di:H send data di:L send instruction
//====================================================
void LCD_Send(Uint16 di,Uint32 data)
{