Society of Robots - Robot Forum

Software => Software => Topic started by: aruna1 on August 01, 2009, 09:23:39 PM

Title: interrupt priority order in 12F675
Post by: aruna1 on August 01, 2009, 09:23:39 PM
guys is there interrupt priority order in 12F675? like if both external interrupt and timer interrupt occur same time which interrupt service will run first?
is there anyway we can set priorities?

and can we use comparator interrupt as zero voltage detector?

thanks
Title: Re: interrupt priority order in 12F675
Post by: Admin on August 13, 2009, 10:35:16 AM
I don't know about priorities, but when an interrupt is called, an mcu could be told to temporarily disable all other interrupts until the original interrupt code is finished.
Title: Re: interrupt priority order in 12F675
Post by: aruna1 on August 13, 2009, 11:38:24 AM
found that interrupt priorities can be set using command in CCS C :)
#PRIORITY

example

#PRIORITY ext,rb