如题,,下面附上端口设置
ANSELA = 0X00;
ANSELE = 0X00;
ANSELF = 0X00;
ANSELG = 0X00;
TRISA = 0X00;
TRISB = 0X00;
TRISC = 0X00;
TRISD = 0X00;
TRISE = 0X00;
TRISF = 0X00;
TRISG = 0X00;
PORTA = 0X00;
PORTB = 0X00;
PORTC = 0X00;
PORTD = 0X00;
PORTE = 0X00;
PORTF = 0X00;
PORTG = 0X00;
TRISB0 = 1;
TRISG5 = 1;
TRISB6 = 1;
TRISB7 = 1;
TRISA4 = 0;
RA4 = 0;
T1CON = 0X8f;
LCDPS = 0X13;
LCDCON = 0X87;
LCDSE1 = 0X80;
LCDSE2 = 0Xfc;
LCDSE3 = 0x07;
LCDSE4 = 0x0e;
LCDSE5 = 0x3e;
TRISD0 = 0;
RD0 = 0;
TRISD1 = 0;
RD1 = 0;