In SX Microcontrollers, SX/B Compiler and SX-Key Tool, CounterRotatingProps wrote: yllawwally, aren't we great!? I gave you a hint, hoping you might see the answer - and then Natpie not only answered it, but gave you code too :)) Please don't take it as condescending if I say that it helps to hand-write or print out these basic logic tables and pin them on the wall (or what ever works for you) until you've got them memorized. They will come up again and again: in the logic of code flow control, in 'bit-twiddling' values as you need to do, and down in the hardware of chips you'll have to interface. XOR and NAND are the easiest to get wrong or misapply. cheers! -Howard ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=367991#m368009 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)