The aim of this paper is to present an overcurrent limitation for the digital peak current mode dc-dc converter. The proposed method can detect the overcurrent in real time and it also maintains arbitrary current in the overcurrent limitation mode. It is expected to provide an effective function to protect the renewable energy system. The effectiveness of proposed method is confirmed from both simulated and experimental results.