Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

VICIntEnable Problem

2005-02-21 by mobilsiten

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

Thanks

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.