Quote:
Originally Posted by Ether
When you do it that way, how do you ask the FPGA to give you the rising-falling and rising-rising from the same cycle?
|
You can't do it atomically to my knowledge. But rising-rising is pretty much constant from one sample to the next (the oscillator is thermally sensitive, so it changes slowly).
We initially implemented it as two semi-period counters (one for T(on) and one for T(off)), and as you'd imagine, there were synchronization issues near the rollover point...