PDA

View Full Version : instant Interrupts



Timmoore
- 25th October 2009, 08:36
Hi All,

Just getting into using Darrell Taylors Instant interrupts with 18f4580

Had about half a dozen compile errors initially but quickly resolved them. However there is one final error which I am stumped by

C:\PBP\PBPPIC18.LIB 1205 : Symbol not previously defined (INT_ENTRY_H)

Here is my configuration code - using low priority interrupt only RX_INT

DEFINE USE_LOWPRIORITY 1
INCLUDE "DT_INTS-18.bas" ; Base Interrupt System
INCLUDE "ReEnterPBP-18.bas" ; Include if using PBP interrupts
INCLUDE "ReEnterPBP-18LP.bas" ; Include if using Low Pr. PBP INTS

;----[High Priority Interrupts]-----------------------------------------------
ASM


;----[Low Priority Interrupts]------------------------------------------------
INT_LIST_L macro ; IntSource, Label, Type, ResetFlag?
INT_Handler RX_INT, _RX232 , PBP, no
endm
INT_CREATE_L ; Creates the Low Priority interrupt processor
ENDASM


Any suggestions ?

Darrel Taylor
- 25th October 2009, 17:06
Low priority interrupts are optional, but high priority must be used.

In effect, if Low priority interrupts are the only ones being used.
Then they would really be High Priority, since nothing could interrupt them.

So either move them to the high priority list, or add at least one int source to the H.P. ints.
<br>

Timmoore
- 27th October 2009, 06:07
Hi Darrel

Thank you for the prompt reply, it was very helpful.

The code is now working very nicely.

By the number of posts, instant interrupts are very popular. I have a number of projects which I will revisit and improve.

Many Thanks

Tim