A setup for electron paramagnetic resonance with narrow band digital detection is described. A low frequency reference tone is added to the radio frequency signal. This reference signal, after digital detection, is used to lock the resonance signal, even in the absence of hardware time locking among the radio frequency generator, the conversion local oscillators, and the sampling stage. Results obtained with 2,2-Diphenyl-1-Pycryl-Hydrazil are presented and discussed.