Dynamic voltage and frequency management for a low-power embedded microprocessor