HELP motor speed control using 89C2051

Status
Not open for further replies.

novschopin

Junior Member level 1
Joined
Mar 1, 2006
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,514
can anyone here please tell me how to write the full code of 89C2051 to control the speed of the motor? how to write the code for pwm? thanks.
motor forward when p3.4 and p3.5 on, p3.3 and p3.7 off.
motor reverse when p3.3 and p3.7 on, p3.4 and p3.5 off.
below is my schematic
 

I think you should start with just PWM and then modify program to control a motor ..
Here is an example on how to generate PWM with 2051 (8051) microcontroller:
https://www.iguanalabs.com/pwm.htm

Regards,
IanP
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…