Rules | Recent posts | topic RSS | Search | Register  | Log in

Using 2 Interrupts

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Hobby Circuits and Small Projects Problems
Author Message
qmriso



Joined: 30 Nov 2006
Posts: 81
Helped: 1


Post07 Dec 2006 7:24   Using 2 Interrupts

hello

I am using two interrupts in my program,one is reception interrupt and one more is timer interrupt.
I am using timer interrupt for generating PWM waveforms.I want to give priority to timer interrupt.so i have to make timer pripority inerrupt bit high.Other then this setting any other setting i have to make or it's not required
Back to top
mayu_wakui



Joined: 18 Feb 2004
Posts: 121
Helped: 7


Post07 Dec 2006 7:39   Using 2 Interrupts

Set your IVT first..that way you could priortize your interrupts..
Back to top
Eugen_E



Joined: 29 Nov 2004
Posts: 326
Helped: 30


Post13 Dec 2006 0:04   Re: Using 2 Interrupts

What microcontroller are you using?
If the uC has a compare/ PWM generation unit, it can generate the PWM with a duty cycle determined by the value in the compare unit registers. In this case, you don't need interrupts for the PWM generation, you need only to set the compare/PWM value in your program.
But if you generate PWM in software you may need some interrupt. To set a priority, you can globaly disable the interrupts in the service routine that has priority.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Hobby Circuits and Small Projects Problems
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap