Design of a DSP-based fuzzy controller for a boost conuerter