Only if you want an answer.should i post the code ?
/*******************************************************************************
* Function Name : LCD_ReadData
* Description : LCD read data
* Input : None
* Output : None
* Return : return data
* Attention : None
*******************************************************************************/
unsigned short LCD_ReadData(void)
{
unsigned short value;
PORTCBITS.RC1=1; //Set_Rs; /* RS high */
PORTCBITS.RC2=1; //Set_nWr; /* Wr high */
PORTCBITS.RC3=0; //Clr_nRd; /* Rd low */
TRISB=1;
value=PORTB;
value=PORTB;
TRISB=0;
PORTCBITS.RC3=1; //Set_nRd; /* Rd high */
return value; /* return data */
}
There is always someone online.I was waiting for someone to get online...that's all
To ensure correct datadark.
I saw that in some of the function you had variable assignment 2 times. Any particular reason for that?
You don't trust your compiler or the MCU?To ensure correct data
I'm sure it is not correct and needs to be cleaned up before any further debugging can occur.Are you sure this is correct. Should it not be like thisRich (BB code):TRISCBITS.TRISC1=0;
TRISCbits.TRISC0 with bits in lower case (marked red)Rich (BB code):TRISCbits.TRISC0;