Just saw that I messed up the bits :-) in enable and cntl.
VICIntSelect &= ~( 0x0006);
VICIntEnable |= 0x0040;
VICVectAddrX = ( long ) UART0___ISR;
VICVectCntlX = 0x0006| 0x0020;
_____
From: Milos Prokic [mailto:mproki@...]
Sent: Monday, February 21, 2005 11:36 AM
To: lpc2000@yahoogroups.com
Subject: RE: [lpc2000] VICIntEnable Problem
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]
Yahoo! Groups Sponsor
<http://us.ard.yahoo.com/SIG=129j0nr0b/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109090242/A=2343726/R=0/SIG=12iih9oue/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109003842134978>
<http://us.ard.yahoo.com/SIG=129j0nr0b/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109090242/A=2343726/R=1/SIG=12iih9oue/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109003842134978>
Get unlimited calls to
<http://us.ard.yahoo.com/SIG=129j0nr0b/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109090242/A=2343726/R=1/SIG=12iih9oue/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109003842134978>
U.S./Canada
<http://us.ard.yahoo.com/SIG=129j0nr0b/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109090242/A=2343726/R=1/SIG=12iih9oue/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109003842134978>
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=11090038
42134978>
<http://us.adserver.yahoo.com/l?M=324658.6070095.7083352.3001176/D=groups/S=
:HM/A=2343726/rand=318467785>
_____
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]Message
RE: [lpc2000] VICIntEnable Problem
2005-02-21 by Milos Prokic
Attachments
- No local attachments were found for this message.