1
\$\begingroup\$

I have a stepper motor(with STR2 Step Motor Drive) which needs npn sinking signal to operate. dsPIC33EP512mu810 is capable of generating high resolution pwm. However, the PWM signal can only turn on a LED but not the motor.

It works if I manully switch a pin on and off with some delay to operate the motor. I've searched through data sheet and app notes but PWM output type is not mentioned. Any suggestion on PWM signal type and how to convert PWM into npn sinking signal?

\$\endgroup\$
1
\$\begingroup\$

Page 208 shows the block diagram of a typical I/O port.

enter image description here

The PWM peripheral communicates with the output drivers via the output multiplexers. Therefore the sink/source capabilities in PWM mode are the same as when they're in GPIO mode, which for this device is either 15mA or 20mA.

You may need to use an external driver fed from the PWM signal if you need strong sinking and sourcing capabilities.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.