if I willing to use PWM command to control speed of motor fan, meaning accelerate or de-accelerate it, can I do that?
If you mean PWM instead of HPWM you'll be disapointed, PWM do only few cycle and don't run in background. AND MORE, the signal generated is quite poor. This is really not what you need.
If your PIC don't have any PWM module, you can still use timer interrupt to generate the PWM signal.
HPWM is the way to go. It could be as simple as...
Code:
START:
ADCIN 0,MotorSpeed
HPWM MotorSpeed
'
' Other code here
'
GOTO START
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks