The viper22a is a low-power single-chip power supply IC, and the uc3842 is a high-performance power PWM controller.
The two are completely different and not interchangeable.