If you have PBP lines in your ISR, I'd say go for your second example.
What kind of interrrupt it is? Remember that ON INTERRUPT will jump in your ISR ONLY after finishing a x current job. So if you have, say PAUSE 5000, in your main loop, it may take up to 5 secondes to jump in the ISR (assuming your main loop is actually doing the PAUSE). Maybe why your sensor doesn't work that good. Now why better on PM than MPASM, I don't know.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks