Prototype of Ultra-Fast X-Ray Camera Controller working in a single photon counting mode and based on ASIC has been presented in this paper. An ASIC architecture has been discussed with special attention to digital part. We present the Custom Soft Processor as an ASIC control sequences generator. The Processor allows for dynamic program downloading and generating control sequences with up to 80MHz clock rate (preliminary results). Assembler with a very simple syntax has been defined to speed up Processor programs development. Discriminators threshold dispersion correction has been performed to confirm proper Camera Controller operation.