I have asked this before (some time back) on the list but never came up with a solution. What I need is a 256 byte table for a s-curve to convert a (linear) dim level (0=off, 255=full) into a value to use as a phase control variable in my lamp dimmer. Harold H posted a formula for it a while back but it goes way over my head I'm afraid. I searched the archives but there's no straight forward answer in there. A Google search did not reveal anything useful either. I was hoping that a Piclister had done this before & is willing to post it. I only need the table - not the phase control code any anything else. The rest of my code works fine. :-) Thanks... -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.