Hello, Fowler.
I tried using an Arduino Mega and our VNH5019 shield with the dual-vnh5019-motor-shield library and did not get the same results you did. For analogWrite(9, 254), I observed a PWM signal with 99.6% duty cycle at 980 Hz, and analogWrite(9, 256) did not produce a signal. What were you measuring when you got those results? If you have not already, could you try running the code above without including our library and see if you still observe the same signals on pin 9?
By the way, you can find a modified version of the VNH5019 shield library for the Arduino Mega that drive motors with a 20 kHz PWM in this thread.
- Jeremy
