The reference design illustrates a method to precisely control the current and voltage of a bidirectional buck converter power stage using a C2000™ real-time microcontroller (MCU) and a precision ADC ADS8588S. The design achieves less than ±10mA current regulation error, and ±1mV voltage regulation error by utilizing a high-resolution pulse-width modulation (PWM) generation peripheral of the C2000 MCU.