Bogdan,
I have an old software version 4.23. In Melabs.com they have a free download for the latest Beta v4.32 software. I will install it and will post back with results.
Mister_e,
Yes, I know that I have to fix that problem with the interrupts to make the sensors work properly with MPASM. Now, I am using ON INTERRUPT GOTO ISR to handle the ISR. There are many lines of code that need to get done in the ISR routine. So, if I have many lines of PBP in the ISR routine, what method should I use?
Should I go with something like this?
Code:
@myint ; create myint label
.......
@ retfie FAST ; Return with 'auto restore' of WREG, STATUS and BSR
Or, should I do something like this with DTs interrupts?
Code:
INCLUDE "DT_INTS-14.bas" ' Base Interrupt System
INCLUDE "ReEnterPBP.bas" ' Include if using PBP interrupts
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler TMR0_INT, _MyInterrupt, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM
@ INT_ENABLE TMR0_INT ; enable Timer 0 interrupts
.....
MyInterrupt:
.....
@ INT_RETURN
Bookmarks