Andy: Thank you, appreciate your help. It works (I should have studied the docs more carefull). It anybody need a three phase square wave generator, I can mail the "quick'n dirty" code, IF you mail me private. /Bjarne Nebelong nebelong@algonet.se