A low level radio frequency (LLRF) control system is designed and constructed at Peking University, which is for the DC-SRF photo injector operating at 2K. Besides with continuous wave (CW), the system is also reliable with pulsed RF and pulsed beam, the stability of amplitude and phase can achieve 0.13% and 0.1{deg}respectively. It is worth noting that the system works perfectly when the cavity is driven at both generator driven resonator (GDR) and self-excited loop (SEL), the latter is useful in measuring the performance of the cavity.