>Roman, >I've got a suspicion: that would be conventional PWM, wouldn't it? Bob:- To me, the unique feature of Walter's suggestion is that it didn't have to be called with an exact time between calls. If you started making it a sawtooth (a counter or whatever) then you have to start worrying about beat frequencies between whatever is going on in the software and the period of the sawtooth. Ugh. As you say, if you call it regularly at fixed times, it's just a software PWM. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics