In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: I need to clarify something that was not made clear in my previous post. The command [CODE]MOV !RB,W[/CODE] is used to read and/or write values to/from many different registers in the SX chips. The value held by the [B]m[/B] register when the command is executed controls the behavior of the command. I should have specified that I believe the problem lies with the simulator's handling of the command when the [B]m[/B] register holds the value [B]$0F[/B]. This should be a "[B]read TRIS_B[/B]" command for the SX 48/52. It is a [B]write[/B] command for the SX 18/20/28. This is where I think the problem likely resides. I do not think the simulator is treating this combination as a [B]read[/B] command for the SX 48/52. It is my expectation that the SX simulator will handle the SX 18/20/28 code properly. To this date I have not tested any other register commands. - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=183046#m184117 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)