hey i want to control a dc motor using micro controller,for this application i want to generate pwm wave,micro controller having with me is Atmel 89c52,can any one give me the idea for generating pwm using this microcontroller