Browsing this Thread:
1 Anonymous Users
|
請教PICC的問題
|
|
初級會員
Joined
: 2004/12/27 17:01 最後登入時間
: 2006/5/7 17:50
Group:
註冊會員
Level : 3 HP : 0 / 70 MP : 8 / 4088 EXP : 83
|
剛開始學用HI-TECH的PICC18來寫了一個LCD的驅動程式,可就是通不過,請各位大俠指點。 void IN_LCD() {PORTD=PORTD&0xf8; TRISD=TRISD&00; delay3(0x32); Send_High_4bits(0x30);/*************Warning[000]function declared implicit int*/ delay3(0x0a); Send_High_4bits(0x30); delay2(); Send_High_4bits(0x30); delay2(); Send_High_4bits(0x20); delay2(); Send_Cmd(0x28);/*************Warning[000]function declared implicit int*/ delay2(); Send_Cmd(0x0c); delay2(); Send_Cmd(0x01); delay3(0x05); Send_Cmd(0x06); delay2(); Send_Cmd(0x80); delay2(); Send_Cmd(0x01); delay3(0x32);}
putcLCD(unsigned char c) {unsigned char LCD_byte; LCD_byte=c; Send_High_LCD(LCD_byte);/*************Warning[000]function declared implicit int*/ LCD_byte=LCD_byte>>4; Send_High_LCD(LCD_byte); delay1();}
Send_High_LCD(unsigned char c) {unsigned char LCD_temp;/************Error[000]arguments redeclared */ LCD_temp=c; RD2=0; PORTD=(LCD_temp&0xf0)|(PORTD&0x0f); RD1=1; RD3=1; RD3=0;}
發表於: 2005/11/4 10:38
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.