Thanks Alain for the details. I'll take care of that 20mA.

Dwayne, I'm thinking about the FOR loop. I want to generate a sine wave. If I use a FOR loop I'll have to change the pause between all increment otherwise I'll get a triangular wave that will not be very good for the filter.

I'll make some others tests with all your advices.

thanks.

I'll keep you informed with these tests.