title: Setting up UART interrupt to trigger when character is received
body: <p>i am trying to setup an UART interrupt to trigger when a character is entered on the UART screen. The thing is the way i have set it up it seems that the interrupt triggers when transmitting and receiving. I have read the data sheet and it doesnt really say if it can be done and how. Its just says that a interrupt for serial port is avaiable.
  This is how i have set up the uart</p>
  
  <pre><code>S0CON   =   0x50;      
  PCON    |=  0x80;       /* Double Baud rate */
  ADCON0  |=  0x80;       /* Use baudrate generator */
  S0RELL  =   0xCC;       /* Baudrate = 9614 Baud @ 16Mhz */
  S0RELH  =   0x03;
  TI0     =   1;                /* Ready to transmit */
  ES0 =1;
  </code></pre>
  
  <p>Does anyone possibly have any idea how this can be accomplished??
  I am using Keil compiler and the Infineon C509
  <a href="http://www.keil.com/dd/chip/2957.htm" rel="nofollow">Datasheet</a> **link fixed</p>
  
  <p>Thank you</p>