Even for short space flights, such as manned flights to the Moon back in the 60s, it became extremely obvious that electric batteries are completely unsuitable because of their huge mass needed to store the required supply of onboard energy. Therefore, already in the 60s of the last century, the USA and the USSR took the path of using a hydrogen storage system using hydrogen fuel cells.Solar-hydrogen energy systems for spacecraft reliably provide energy for carrying out various kinds of unscheduled work on board and for eliminating emergency situations. Surplus energy is constantly accumulated on board in the form of the chemical energy of cryogenic hydrogen. The article presents too the result of the development of a solar-hydrogen power supply system for spacecraft, the onboard network of which provides slow and fast processes. This paper delves into designing digital control systems for power conditioning devices on the example of charging-discharging device based on a boost DC-DC converter. The device was implemented to condition a storage battery by properly charging and discharging it. A technique for constructing a small signal model of the converter has been developed. This involves constructing a block diagram using the discontinuous switching functions and analog models of electrical circuit components. The transfer functions of the analog controllers for the two-loop subordinate control system were derived. Then the procedure of a bilinear z-transform to the given transfer functions was applied. As a result, the discrete transfer functions of the digital controllers were obtained. Realization both analog and digital controllers in Matlab Simulink confirmed their identical behavior and stability within the power converter. Experimental studies of the static and dynamic waveforms of the digital control system showed controllability and stability of the charging-discharging device for the storage battery in typical operating modes. Thus, the method of synthesizing digital control systems for energy converters is proved valid and applicable for designing new power conditioning devices within modern power supplies.