And viola, it's fixed. That's an annoying doc oversight, thanks for the tip! piclist@XARGS.COM wrote: > On Thu, 26 Feb 2004, Nick Veys wrote: > > >>void initInterrupts() { >> IPEN = 1; // enable interrupt priorities >> >> TMR0IP = 0; // TMR0 is low priority >> TMR0IE = 1; // enable TRM0 interrupt >> TMR0IF = 0; // clear pending interrupts >> >> GIEL = 1; // enable low priority interrupts >>} > > >>This is my first venture into 18-series and interrupt priorities, so I'm >>hoping I'm missing something, but the datasheet simply says to set the >>priority, masking and enable low-priority interrupts and it should be >>working, which makes sense, yet nothing it happening. > > > You need to set GIEH. The datasheet is lacking, if not completely > erroneous in this area. You might want to refer to the 18C family > document for more details. > > 10.3.1.2 Low Priority Interrupts > > [ ... ] > > The GIE/GIEH bit's function has not changed in that it still > enables/disables all interrupts, however, it is only cleared by > hardware when servicing a high priority interrupt. > > -- > John W. Temples, III > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics