arduino due and arduino mega analog write

as due voltage operation 3,3v and mega 5volt
i use l298 arduino motor shield for drive my firefighter robo so i need fast clock enough so i use due but when i use analog write 255 the motor speed not fast as fast as on arduino mega

maybe i realize 255 = 3.3v because arduino due voltage operation and arduino mega =5v voltage operation so the speed of motor can be fast

anyone can help my problem?what i should do for up my speed when i using arduino due?

what i should do for up my speed when i using arduino due?

Use the PWM output to trigger a transistor that is connected to a circuit that provides more voltage.

like mosfet transistor?

like mosfet transistor?

A (3.3V) logic level one, yes.