PLL implementation
Mik_uOLED
Posts: 7
Hi!
Is anybody knows if there is a way (as simple as possible) to make a software PLL (phase locked loop) implementation with the propeller?
The goal is tracking a square wave of about 100 KHz!
I wish that is possible!
Thank you!
Mik_uOLED
Is anybody knows if there is a way (as simple as possible) to make a software PLL (phase locked loop) implementation with the propeller?
The goal is tracking a square wave of about 100 KHz!
I wish that is possible!
Thank you!
Mik_uOLED
Comments
The difference, in your case, will be that the target oscillator will be one of the Propeller counters, and the reference will be the incoming signal.
Hint: To advance the phase of a counter without changing its frequency, add an increment to its frequency, then subtract it right away. To retard the phase do the opposite: subtract, then add. Do not try to modify the phsx register while the counter is running.
-Phil
That is EXACTLY what I need: great idea and simple solution (sorry, I mean clever solution but for me that is the samething)!
Quite easier than learning Z transform and filter theory!
I will not forget your hint too (I will not touch the phsx while counting)!
You did an excellent work!
Thanks again, I appreciate a lot!
Mik_uOLED