project with 89s52

Thread Starter


Joined Jun 1, 2009
Hello guys!
I have to control a servo Futaba S3003 with the help of 89s52 controller.The goal of the project is to make the servo rotate to 90 degrees and after a period of time to go back to its initial position.From what i read online this can be done with the help of PWM technique but this tipe of uC does not have dedicated pwm registers.So i need someone to guide me through the steps of writing assembler code for this(should i use timers,interupts??).


Joined Mar 7, 2007
If you are already familiar with the Atmel AT89S52, why not try the Atmel AT89C5131? The latter has a programmable counter array (pca) which might makes generating PWM a little easier than the basic AT89C52.