[SOLVED] Problem with power supply - Voltage drop

You're right, this time I forgot to change NextUpdate as well. It's working fine now.

Although I don't see the problem with using int. The counter would always reach 32767 and start again from -32768, and repeat. Anyway, I guess this works better. Thanks Mike