All active electronic devices require a source of constant dc that can be supplied by a battery or a dc power…