Energy management and control of a PV array and a battery based DC Microgrid is presented in this paper. Design and operation of PV and battery DC-DC converters are discussed in detail. Radiation input to the solar array is an actual variation which was measured in a normal sunny day. Battery is the main component responsible of keeping the DC bus voltage at a constant value by charging or discharging while serving the dynamic load. There are standard built-in models for solar PV and battery in PSCAD/EMTDC, the software which is used for the microgrid simulation. It is observable that the microgrid energy management and control works as expected.