Hi - I've been out of the digital world for a while now and I just want to confirm my thoughts/understanding.
I want to measure the outlet frequency:
-I plan to use a transformer to first step down voltage and then recitify it to a square wave.
*Here is where I want to confirm my understanding*
An oscillator will essentially act as the reference clock
The rectified square wave will be compared to the oscillator
Every clock cycle, it will look for a rising edge
If a rising edge is detected, a counter will be incremented
When the preset sampling period is over, the number of rising edges (count) will be divided by the sampling period (seconds)
Reset counter and loop again
This is obviously high level, but am I right in my understanding of frequency count and oscillators?
Thanks!
I want to measure the outlet frequency:
-I plan to use a transformer to first step down voltage and then recitify it to a square wave.
*Here is where I want to confirm my understanding*
An oscillator will essentially act as the reference clock
The rectified square wave will be compared to the oscillator
Every clock cycle, it will look for a rising edge
If a rising edge is detected, a counter will be incremented
When the preset sampling period is over, the number of rising edges (count) will be divided by the sampling period (seconds)
Reset counter and loop again
This is obviously high level, but am I right in my understanding of frequency count and oscillators?
Thanks!