Herbert, just opposite. Andre Abelian -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Herbert Graf Sent: Monday, April 25, 2005 7:31 AM To: Microcontroller discussion list - Public. Subject: Re: [PIC]High or Low priority interrupt? On Mon, 2005-04-25 at 17:15 +1200, Hopkins wrote: > In the 18F series there are High & Low priority interrupts. > > This may seem a bit silly :-) but when should you use each type of > interrupt? I generally think of it this way: high priority interrupts should be used for things that need to be done as quickly and predictably as possible. RS232 rx/tx through software would be a good example, as would PWM. Low priority interrupts are usually for things that COULD be done with simple software polling, but are done with an interrupt for ease of coding. Anything "slow" is usually a good candidate for low priority interrupts, things such as blinking an LED, reading a keyboard, etc. Notice none of this is set in stone, there are cases where blinking an LED might require a high priority interrupt, who knows! :) TTYL ----------------------------- Herbert's PIC Stuff: http://repatch.dyndns.org:8383/pic_stuff/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist