View Full Version : Temporarily disable MIBAM
gmglickman
- 4th April 2010, 18:17
What's the best way to temporarily disable MIBAM? I need to allow SEROUT to a serial LCD, then re-enable. I'll tolerate the flicker, unless there's another option...
Charles Linquis
- 4th April 2010, 19:12
Darrel probably has a better answer but I would use..
INTSAVE = INTCON
INTCON = 0
.....
Your serial routines here
......
INTCON = INTSAVE
This disables interrupts while you do Serout and restores them to exactly
what they were afterward.
gmglickman
- 9th April 2010, 02:19
Yup, that works fine.
But:
T1CON.0=0
.....
Your serial routines here
......
T1CON.0=1
works and saves one byte variable!
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.