When a square wave of angular frequency ω=qB/m is applied between the two sides of the magnetic poles, the charge will be boosted again at just the right time to accelerate it across the gap. Thus the constant cyclotron frequency can continue to accelerate the charge (so long as it is not relativistic).