Altera_Forum
Honored Contributor
15 years agoPhase lock loop
I want to implement a phase lock loop in fpga , altera(cyclone II). The internal clock is 50 MHZ. but my input clock is 60 HZ. How i should implement pll in this case???
I want to implement a phase lock loop in fpga , altera(cyclone II). The internal clock is 50 MHZ. but my input clock is 60 HZ. How i should implement pll in this case???
Thank u so much for your reply. I am bit confused by your answer, since i am new to altera.
I have an analog input signal of 60 Hz. I should lock the input signal with same phase and frequency and get the output in digital form. I should multiply the output(digital pulse with 60 HZ) to get in MHz. Then i should perform pulse width modulation based on the sine wave table and the final pulse i should feed in inverter. This is my overall task. Should i give the analog input signal of 60 Hz in 40 pin input/output port . Then by using vhdl code i should convert 60 HZ analog to digital.I'm not sure, if you necessarily need a PLL for synchronizing a PWM generator to a 60 Hz input. If the 60 Hz input is from the mains power line, the frequency variations will be very low. So generating the PWM timing from a crystal and only synchronizing it to the 60 Hz reference should be sufficient.
The frequency variations will be very low. To get exact pwm with reference to the input , pll is needed.
I just want to know how to convert my analog input to digital . it can be implemented only vhdl code or any other inbuilt adc is available in altera fpga. Your help is really appreciatedNo Altera FPGA has built-in ADC. As I mentioned, some development kits have an ADC, but because of the large range of differenr requirements and different available devices, designer use to select them according to the application.
--- Quote Start --- To get exact pwm with reference to the input , pll is needed. --- Quote End --- I don't generally agree. But many inverter control concepts are possible.Since my input is in 60 Hz will below PDF block diagram works for me to get synchronization of the input.
http://users.ece.gatech.edu/~jskenney/l080-adpll(2up).pdf (http://users.ece.gatech.edu/%7ejskenney/l080-adpll%282up%29.pdf) file:///C:/DOCUME%7E1/kvvani/LOCALS%7E1/Temp/moz-screenshot.jpg In attached pdf on (page file:///C:/DOCUME%7E1/kvvani/LOCALS%7E1/Temp/moz-screenshot-1.jpg 080-18) example 1 . Kindly help meSounds like a fun project. Generally, the PLL phase detector types are chosen for their characteristics in an analog PLLs. For a digital PLL you can implement whatever works in your design. If you have an ADC input, you will have to use an average of the input for the zero crossing. If you are using a comparitor, the input will be a simple zero or one. These outputs can be further filtered to reduce noise. From these inputs you can implement the logic of any of the phase detector types.
Texas instruments has some documentation on their sn74ls297, which is a diigital PLL part. This is really a control problem and should be properly characterized as such. Especially you if you need zero phase difference between the input/output.