In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Dunnsept wrote: I'm adding a serial graphics LCD to my project. The help file says to disable interrupts before using serout but I can't find in the docs the best way to do this. Can I set OPTION at any time in code? would something such as this work: [code] start: OPTION = $86 'int enable, prescalar = 128 main: 'blah blah 'blah 'oops need serout OPTION = $C6 'option reg stays same except bit 6 (RTI) is now 1 serout txpin,baud,"hi" OPTION = $86 're-enable interrupts 'do stuff goto main [/code]right now I'm using the RTCC as a sort of timer.. even if my time periods wind up off by a few seconds because of this, if it works, I don't mind.. I can adjust the time periods anyway. thanks! ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=129727 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)