The frequency limit for the L293D is 5kHz !!

see Datasheet !