In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: I would do it as a LOOKUP table. LOOKUP counter,%00000001,%00000010,%00000100,%00001000,%00010000,%00100000,%01000000,%10000000,LED For larger tables use DATA and READ Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=93983#m93985 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)