Thank so much Henrick,
i am so glad that someone understood what i was trying to say. Elated to hear that it is doable even in the ms range.
But to answer some of your questions:
1) By system registers i was thinking that pbp must setup some timers for counting during pause. And this might affect my timers usage.
2) how i am doing my interrupts. I use DEFINE INTHAND _MYISR1
Then after saving contexts in asm i do an endasm and gosub a pbp routine. I don't know how to upload a code yet. I would have shown you.
But at any rate, the results are usually erratic and it seems as if the code is making jumps to the wrong places. On certain ocassions i found out that if i use a timer interupt to delay something rather than pause, the system will work better.
3) Now since pause is blocking, "just like all pbp commands" (never thought if this) if i can get a way to rig up a macro that i can use such as
@ myPAUSE msec,SUBNAME
where msec is the no of ms to delay and SUBNAME is used to keep track of the specific registers to use (i.e the sub that is calling for a delay).
My problem is: can i call a pbp routine inside asm macro.
I like to use pbp if statements to in a state-machine-like manner, makes programming more structured. If i can have another type of PAUSE that will simply load a reg and move... i think this will make code more efficient
Thanks so much.
Bookmarks