Hi All, i have a piece of code for measuring frequency with a 16c84. Some parts are not from myself. Anyway, the code works fine. The last extension i want to make is to output the measured frequency as a square wave via a port. To generate a square wave it's easy, but i need a wave which have exact the same frequency like the measured frequency (16 or 24 bit). And additional, the wave schould not be interrupted for a longer time during the program runs. Is this possible with a 16c84? Have anybody any suggestions? Thanks Ralf