Programmable fuel injection with over-rev limiter