jai patel
Newbie level 3
Hello
I am try to receiving sequence of fixed length by below function. so, can anyone say that what I have to pass in below function at the place of Output.
I am using PIC16F887 and hi tech c compiler with MPLAB X IDE.
I am try to receiving sequence of fixed length by below function. so, can anyone say that what I have to pass in below function at the place of Output.
Code:
/******************************************************************************/
/* Read data from UART */
/*****************************************************************************/
char UART_Read() {
while (!RCIF);
return RCREG;
}
void UART_Read_Text(char *Output, unsigned int length) {
int i;
for (int i = 0; i < length; i++)
Output[i] = UART_Read();
}
I am using PIC16F887 and hi tech c compiler with MPLAB X IDE.