Internal combustion-alike DC motor rev limiter

Morning all,

I have made an arduino slot car throttle with adjustable brakes etc.

I'm looking to make a "burnout mode" just for kicks... and want to emulate how an ICE bounces off the rev limiter. I figure that max voltage combined with throttle "dips" of a few mS may help the tyres break traction.

I'm thinking of adding a button which, when pressed causes the throttle to run a loop which switches the motor between 255 (PWM) and (0) for the effect, but think that may just cause running at half speed.

Another issue is that my motor controller needs to have one side switched low to allow coasting, otherwise the back EMF of the motor causes braking - and cycling between max throttle and braking isn't really what I'm after.

So far I'm thinking (in Pseudocode)

while (button is pressed)
{
get time using millis

if (time => duration)
{
PWM to motor controller set at 255
}

else
{
Write MC low (coast)
}
set duration (millis) variable

}

Would that have the desired effect? Any other simple concepts I can hi-jack to acheeive this? for example I'm already testing a simple PWM fade (of varying durations) to act as traction control.