This paper discusses the phenomenon associated with the forced synchronization (“entrainment of a self-sustained oscillator by an external force”) in a relay system with hysteresis, which manifests itself in the occurrence of periodic motions close to the rhythmic activity of neurons, when packets of fast oscillations are interspersed with intervals of the slow dynamics. To study this phenomenon, we introduce a circle mapping, which, depending on the parameters, can be a circle diffeomorphism or discontinuous map (“gap map”). In both cases, this mapping demonstrates the so-called period-adding bifurcation structure. It is demonstrated that packets number of fast oscillations in the period of periodic motion is determined by the rotation number, and the length of the intervals between the packets may be found of the boundaries of the absorbing interval. The change in the number of pulses in the packet occurs through the border-collision bifurcation.