Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] VICIntEnable Problem

2005-02-21 by Milos Prokic

VICIntSelect &= ~( 0x0006);

VICIntEnable |= 0x0004;

VICVectAddrX = ( long ) UART0___ISR;

VICVectCntlX = 0x0006| 0x0002;

 

You can use the program in the "files" section to verify if have set up the
rest of the registers correctly.

 

Cheers,

m.

 

  _____  

From: mobilsiten [mailto:petertholander@...] 
Sent: Monday, February 21, 2005 10:28 AM
To: lpc2000@yahoogroups.com
Subject: [lpc2000] VICIntEnable Problem

 


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








  _____  

Yahoo! Groups Links

*	To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2000/
  
*	To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
<mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  
*	Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



[Non-text portions of this message have been removed]

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.