In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: The "temp = option" is not valid because the OPTION register is write only. Okay there IS a secret instruction that will read the option registers. Try replacing "temp = option" like this: \ DW $001 ' Put OPTION register into W "secret instruction" \ MOV temp,W temp=temp ^ %01000000 option=temp \ DW $001 ' Put OPTION register into W "secret instruction" \ MOV temp,W temp=temp & %10111111 option=temp I don't know if this will work, but in theory it should. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=198090#m198104 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)