Temporarily disable MIBAM


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    22

    Default Temporarily disable MIBAM

    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...

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    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.
    Charles Linquist

  3. #3
    Join Date
    Jan 2009
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    Yup, that works fine.

    But:

    T1CON.0=0
    .....
    Your serial routines here
    ......
    T1CON.0=1

    works and saves one byte variable!

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts