Digital excitation control system