PLL - Phase Comparator

Post any examples or modules that you want to share here
Post Reply
steph_tsf
Posts: 249
Joined: Sun Aug 15, 2010 10:26 pm

PLL - Phase Comparator

Post by steph_tsf »

Hello,

I'm trying to emulate the CD4046 integrated circuit using Flowstone DSP.
See the two attached .fsm.
Both are working, however there is room for improvement.
I'm not fluent with Flowstone DSP code, especially when there is conditional and sequential logic.
I have a difficulty emulating the XOR gate making the CD4046 Phase Comparator I.
I have a difficulty emulating the flip-flops and the tri-state output making the CD4046 Phase Comparator II.

With a better DSP implementation of the CD4046 Phase Comparator II, one can build a simple and robust frequency meter for periodic waveforms like sinus, squarewave, triangle, sawtooth, etc.

Will somebody help me improving the Phase Comparator II implementation?

Steph
Attachments
CD4066 (400).png
CD4066 (400).png (72.8 KiB) Viewed 11195 times
PLL 02.fsm
(17.32 KiB) Downloaded 1589 times
PLL 01.fsm
(21.75 KiB) Downloaded 1538 times
Post Reply