I'm new to PIC programming, and having trouble getting getting it control a DC motor. It's a PIC18F25K22, and a TI L293D driver. Power is suppliued by a 5V linear regulator connected to a desktop power supply. I've setup the PWM correctly, and it drives when I directly connected to the ground and power rails, however I get strange behavior when I connect PIC pins to the control pins of the L293D. A circuit diagram is shown below.
When unconnected, pin RC1 is low, and pin RC3 is high (0.0V and 5.0V respectively). When connected, RC1 rises to about 0.25V and RC3 falls significantly to 0.42V, as my multimeter says. The L293D has internal diodes, and I've put capacitors on either side of the motor to ground. The pins on the L293D draw a max of half the current a PIC pin can supply. I'm new to both PICs and motors, so it could be either.
Update
I connected the inputs and enables of the other half of the L293D to ground, and used ground and power to control and enable to half I am using. This produced expected results. Leaving the 1,2EN pin connected to 5V, I connected the PIC pins again. This time, the motor turns, but sluggishly. I recorded the following voltages
1Y = 1.03V 2Y = 0.34V 1A = 0.84V (PIC pin, set high) 2A = 0.0V (PIC pin, set low)
This is being built on a breadboard currently.