From: Srinivas [mailto:srinivasmannem@tataelxsi.co.in]
Sent: Tuesday, February 22, 2005 12:37 AM
To: lpc2000@yahoogroups.com
Subject: RE: [lpc2000] Timer 1 Interrupt problem in LPC2106
Hi Milos,
Yes, I have enabled the timer interrupt in timer module.
And i have initialized the VIC registers also.
Please have a look at that register values.
/*Timer initialization */
TIMER1_TCR = 0x0; // Reset
// TIMER1_TC = 0x0; // Timer Counter
TIMER1_PR = 2500; // Prescale register
// TIMER1_PC = 0x0; // Prescale Counter
TIMER1_MR0 =1000; // Match Register
TIMER1_MCR = 0x3; // Generate interrupt and
reset when match occurs.
/* Timer 1 interrupt is an IRQ interrupt */
VICIntSelect &= ~0x20;
/* Enable timer 1 interrupt */
VICIntEnable = 0x20;
/* Use slot 0 for timer 1 interrupt */
VICVectCntl0 = 0x25;
/* Set the address of ISR for slot 0 */
VICVectAddr0 = (unsigned int)IRQHandler;
MSR cpsr_c,#0x13 // This assembly instruction for
enabling the processor
interrupts.
Please have a look at the register values and let me know where i am doing
the mistake.
Thanks in advance.
Regards,
-Srinivas.
Thanks and best regards,
Srinivas,
ARM-ODC,
Tata Elxsi,
Office : +91 80 22979581
Mobile : +91 98802 72705
-----Original Message-----
From: Milos Prokic [mailto:mproki@...]
Sent: Monday, February 21, 2005 9:58 PM
To: lpc2000@yahoogroups.com
Subject: RE: [lpc2000] Timer 1 Interrupt problem in LPC2106
Did you enable the timer interrupt in the timer module?
Did you set the following registers accordingly - VICIntSelect,
VICIntEnable, VICVectAddrX ,VICVectCntlX ?
Did you enable the interrupts globally, ie in the core (status register)?
Cheers,
m.
_____
From: mannem_sri [mailto:mannem_sri@...]
Sent: Monday, February 21, 2005 3:31 AM
To: lpc2000@yahoogroups.com
Subject: [lpc2000] Timer 1 Interrupt problem in LPC2106
Hi,
I am trying to generate an interrupt using Timer1 in LPC2106.
I put 0xff in match register.
The timer is incrementing and restting whenever it matches the match
register value.
But it is not generating the interrupt when match occurs.
I am running my program from SARM. I have done the memory mapping
also.
I have written the program with referrence of AN10254.
I am using arm compilers to build the project.
Please help me in getting the interrupt.
If you have anu exampled programs please send it to me.
Thanks in advance.
Regards,
-Srinivas.
Yahoo! Groups Sponsor
<http://us.ard.yahoo.com/SIG=129s5mq14/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109061053/A=2343726/R=0/SIG=12if5c1ch/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1108974653580313>
<http://us.ard.yahoo.com/SIG=129s5mq14/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109061053/A=2343726/R=1/SIG=12if5c1ch/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1108974653580313>
Get unlimited calls to
<http://us.ard.yahoo.com/SIG=129s5mq14/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109061053/A=2343726/R=1/SIG=12if5c1ch/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1108974653580313>
U.S./Canada
<http://us.ard.yahoo.com/SIG=129s5mq14/M=324658.6070095.7083352.3001176/D=gr
oups/S=1706554205:HM/EXP=1109061053/A=2343726/R=1/SIG=12if5c1ch/*http:/clk.a
tdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1108974653580313>
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=11089746
53580313>
<http://us.adserver.yahoo.com/l?M=324658.6070095.7083352.3001176/D=groups/S=
:HM/A=2343726/rand=260539174>
_____
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 Links
Yahoo! Groups Sponsor
Get unlimited calls to
U.S./Canada
________________________________________
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.