PDA

View Full Version : Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal regs



longpole001
- 24th January 2014, 06:18
Hi guys ,
i am about to start using the interrupt priority of interrupts on a 18f67k22. for timer 0 , timer 1, timer 2,
where timer 0 is low priority , timer 1 high , timer 2 low ,

this chip incorporates a high/ low level priority for most of the interrupt sources and was wondering if using DT_IN_18LP.bas does the same thing as setting up the registers manually or do i need to do both ?

Regards

Sheldon.

longpole001
- 24th January 2014, 06:36
correction - ReEnterPBP-18LP.bas

HenrikOlsson
- 24th January 2014, 08:37
Hi,
Have you looked at Darrels example (http://darreltaylor.com/DT_INTS-18/LowPriority.html) for using high and low priority interrupts? It's been a while since I did it but it looks like DT-Ints handles setting the priority bits for you.

/Henrik.

Demon
- 24th January 2014, 13:14
Yup, everything is done for you. Just make sure to follow Darrel's instructions.

I had one program using high and low with 3 timers.

Robert


EDIT: I was using 18F4xK22 and 18F2xK22 models which must be close to yours.

longpole001
- 24th January 2014, 19:38
thanks that is good to hear

yes i have read darrel's examples , and they look straight forward to follow ,

the 18f67k22 has 2 serial ports which upon design review will be needed as well for priority low interupts

i think the first serial is covered looking at his examples , cant see if the 2nd is so far