Code:
#pragma interrupt rx_handler
void rx_handler (void)
{
unsigned char c;
/* Get the character received from the USART */
c = ReadUSART();
if (IPR1bits.RCIP)
{
/* Display value received on LEDs */
PORTB = c;
//putsUSART (data[c]);// writes string of character from data[c]
}
else
{
putsUSART (data[11]);
/* Display value received on LEDs */
PORTB = c;
}
/* Clear the interrupt flag */
PIR1bits.RCIF = 0;
}
hi all is there any specific setting that i need to do so that my values from hyperterm would be display in int c as it a ReadUSART() which captures from it...?