Generation of Optimal Voltage Reference for Digital Control-Based Switching Power Supply