PRIMARY AND SECONDARY VOLTAGE FREQUENCY CONTROLLER DESIGN FOR ENERGY