To enable interrupts, set INTCON,GIE and set the mask bit for whichever device you want to cause the interrupt, ie INTCON,T0IE will cause an interrupt to occur when timer0 overflows. After the interrupt occurs, the flag corresponding to the source will be set, i.e. INTCON,T0IF and software must clear this flag. PICs don't *require* interrupts to operate and I believe the global interrupt enable bit INTCON,GIE is cleared at power-up. ok..jef (k8jef) On Tue, 29 Feb 2000, Andrew T Kelley wrote: > Hello > > Could someone tell me how to turn on interrupts and when to turn them > back on (if needed) in a 16f84? > > I need it to wake up a project from zzzz's. > > Thanks, > Andrew K. > > A.R.S. N1YEW > > PS: the device the pic is used in is a laser (!) communicator.( it uses > morse code(aka CW) not voice )(the pic generates the 'dits' and 'dahs' > ________________________________________________________________ > YOU'RE PAYING TOO MUCH FOR THE INTERNET! > Juno now offers FREE Internet Access! > Try it today - there's no risk! For your FREE software, visit: > http://dl.www.juno.com/get/tagj. > Jeffrey D. Spears University of Michigan College of Engineering ``Double-E, can't spell gEEk without it!'' -Captain Gerald M. Bloomfield II, USMC (my brother)