jai patel
Newbie level 3
- Joined
- Mar 18, 2014
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 26
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.