Ok, here's the modification of MIBAM for use with 16F1's.
It also works with 14-bit cores (12F, 16F) and 18F's.
I've tested it on 16F1827, 16F1947, 16F877A and 18F4550.
Sorry, I don't have a 12F1822.
One problem I spent a lot of time trying to figure out ended up being caused by the statements ...
T1CON.0 = 0 'disable mibam
T1CON.0 = 1 'enable mibam
I really thought that would work to stop interrupts from occuring during the DEBUG statements.
But it turns out that 1 interrupt can still happen after you stop the timer.
I have yet to understand how that happens, but it does.
If you use these statements instead ...
GIE = 0 'disable mibam
GIE = 1 'enable mibam
then no further interrupts occur to disturb the DEBUG's.
They are actions of the chips themselves, not MIBAM.
MIBAM seems stable at this point, but let me know if you have any problems.




Bookmarks