Many thanks tenaja for your prompt reply.
Ciao
Leo
Many thanks tenaja for your prompt reply.
Ciao
Leo
Darrel, does your interrupt routine selectively choose which system variables to save, based on which ones are used, to save time? Or, does it save them all, regardless?
Saves them all, no matter what.
Without an external program like VBIS for Proton, there's no way to know which system variables are being used by a particular Handler.
But from what I've seen, while optimizing out what isn't used does increase the maximum interrupt frequency available, it only really helps if you're pushing the limits. For normal everyday interrupts (with Basic Language) the extra saves don't have that much effect, and helps provide stability.
And as always, if you really need the speed ?
The interrupts should be in ASM anyways. (no PBP system variables saved at all)
Which is one of the best parts of DT_INTs.
You can have both ASM and Basic Language interrupts in the same program.
<br>
DT
And all this with a minimum of efforts![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
For the record (partial pasted from other thread):
See Darrel’s solution:
“To get Instant interrupts with Basic Language working on a 12F675 ...”
Open the DT_INTS-14.bas file and comment out the wsave lines. The 675 doesn't have any usable RAM in banks 1,2 or 3
Then in the ReEnterPBP.bas file comment the T?_save variables.Code:' --- IF any of these three lines cause an error ?? ---------------------------- ' Comment them out to fix the problem ---- ' -- It depends on which Chip you are using, as to which variables are needed -- ;wsave1 var byte $A0 SYSTEM ' location for W if in bank1 ;wsave2 var byte $120 SYSTEM ' location for W if in bank2 ;wsave3 var byte $1A0 SYSTEM ' location for W if in bank3 ' ------------------------------------------------------------------------------
Just remember that if you use Instant Interrupts on a different chip later, you will need to un-comment those lines.Code:; T1_Save VAR WORD ; T2_Save VAR WORD ; T3_Save VAR WORD ; T4_Save VAR WORD
HTH,
__________________
DT
http://www.picbasic.co.uk/forum/show...9510#post49510
Ohm it's not just a good idea... it's the LAW !
Hello all
Today I play with " Instant Interrupts" thank's Darrel
For to begin I use blinky program
I want to augment the speed of blink light by loading a value
in TMR1H and TMR1L but the speed does not change
Rq:
I want not to change the value of the prescaler
code:
'********************
TMR1H = %11111111
TMR1L = %11111110
'********************
1CON = %110001 ; Prescaler = 8, TMR1ON
what is wrong please?
Bookmarks