void main(void)
{
/* put your own code here */
EnableInterrupts;
setbusclock();
Port_Init();
LCD_Init(); //清除显示
for(;;)
{
Char_Set_XY(0,0,"FreescaleS12");
Char_Set_XY(1,1,"matlab");
Char_Set_XY(2,0,"Please wait!");
Char_Set_XY(3,4,"Ver 1.0");
}
} /* wait forever */
/* please make sure that you never leave this function */
串行发送 复位时不能整屏快速显示 只能逐行显出
void Write_8bits(uint a)
{
char i,d;
for(i=0;i<8;i++)
{
CS=1;
SCLK=0;
delay_nus(600);