sioux
04-01-05, 07:37 AM
I have some problem with PWM control of a DC-motor.
I have modified the example program h803.c to suit my IsoPod V2 using NMIH-0010 bridge.
The motor that I'm using has inputs: Motor +, Motor -, gnd and V+.
Motor + and Motor - is connected to PWMA0 and PWMA1. By using PWMA0 the motor is running in one direction and by swith to PWMA1 the motor should start to run in the other direction.
When I'm configuring PMOUT register, I write 0x830x depending on which pin I would like to activate. In this way it would be possible to make the motor change the direction but this never happens..
I'm actually not even able to turn PWMA0 off. What could be wrong?
I have modified the example program h803.c to suit my IsoPod V2 using NMIH-0010 bridge.
The motor that I'm using has inputs: Motor +, Motor -, gnd and V+.
Motor + and Motor - is connected to PWMA0 and PWMA1. By using PWMA0 the motor is running in one direction and by swith to PWMA1 the motor should start to run in the other direction.
When I'm configuring PMOUT register, I write 0x830x depending on which pin I would like to activate. In this way it would be possible to make the motor change the direction but this never happens..
I'm actually not even able to turn PWMA0 off. What could be wrong?