In SX Microcontrollers, SX/B Compiler and SX-Key Tool, lboucher wrote: Hey, i think i got it. This is what happens when you use code you didn't write and don't fully understand. The line below in red is making the system expect 1.5 bit periods for the stop bit. (I think) So since I was only setting vixen to 1 bit period for the stop bit, every once in a while the most significant bit would get incorrectly set to one. Thus why I only get flashing and never quick dimming. So i think if i change this from a #6 to a #4 it will work. (But do i really care to take the time to test it when just setting the stop bit to 2 will work. Would up my max channel count to fix it.) Does anyone agree this is probably the source of the problem? bank #rx_count movb c,/rx_pin 'serial receive test rx_count jnz :rxbit 'if not, :bit mov w,#9 'in case start, ready 9 sc 'if start, set rx_count mov rx_count,w [color=red>mov][/color]:rxbit djnz rx_divide,rxdone '8th time through? mov rx_divide,#4'baud dec rx_count 'last bit? sz 'if not, save bit rr rx_byte snz 'if so, set flag setb rx_flag rxdone ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=335848#m336474 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)