In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Rob, The "MOV W,PWM_Count" is not needed. The very next instruction "MOV FSR,#PWM_Value" will clobber W anyway. The code will work ** IF ** PWM_Count happens to be in the global RAM area (that is it's address is <$10). If PWM_Count is NOT in the global RAM area, when FSR is changed PWM_Count will not be accessable. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=150806#m151149 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)