design and construction of a digital frequency