PWM pin for driving motor speed.

Hi everyone,I have read the way of driving motor(speed and direction) with H-bridge IC(L293NE or SN754410). Some said, Arduino’s PWM pin is attached to L293NE’s pin NO.1(Enable pin/1,2EN) and other said, attached to one of Logic pin on H-bridge IC(PinNO.2 or 7) for controlling speed. Which one is correct.

Thanks.

Both can be correct. It depends on the rest of the circuit.

Driving the enable using PWM will modulate the transistor in and out of high-z. Driving the enable also effects two channels (at least for the SN75)

Driving the control signal using PWM will open and close the transistor for that specific channel.

Hi fll-freak,Thanks for your reply.