Hi!
I want to enable the interrupt for UART1 but I cant find a table for
VICIntEnable so I can set the right bit.
This is my init_serial function:
void init_serial (void) /* Initialize Serial Interface */
{
WORD baud = 19200, baud_rate;
baud_rate = UART_BAUD(baud);
VICVectAddr4 = (unsigned)ElsyIRQ;
VICVectCntl4 = 0x000000FF; //Set channel
VICIntEnable|= ???; //Enable the interrupt
U1IER = 1;
PINSEL0 = 0x00050000; /* Enable RxD1 and
TxD1 */
U1LCR = 0x00000083; /* 8 bits, no Parity, 1
Stop bit */
U1DLL = (CHAR)(baud_rate); //LSB
U1DLM = (CHAR)((baud_rate) >> 8); //MSB
U1LCR = 0x00000003; /* DLAB = 0
*/
}
Can someone help me to get this to work correctly....
I want a interrupt on Rx
ThanksMessage
VICIntEnable Problem
2005-02-21 by mobilsiten
Attachments
- No local attachments were found for this message.