The article discusses the digital method of forming a scan of a television scanning optical microscope. Known methods use an analog-to-digital converter of a binary code into a voltage, which is fed to a precision voltage-to-current converter. The one actually determines the performance of the microscope. In the work, it is proposed to supply current to the coils of the deflection system from a direct current source through the R-2R resistive matrix. The binary code controls the keys of the weight categories of the resistive matrix and thus determines at each moment of time what part of the source current will pass through the coil of the deflection system, and what will bypass it. At the same time, the total current of the source remains unchanged