Author Topic: Lattice PLL settings  (Read 1596 times)

0 Members and 1 Guest are viewing this topic.

Offline DajgoroTopic starter

  • Frequent Contributor
  • **
  • Posts: 322
  • Country: hr
    • hackaday.io
Lattice PLL settings
« on: August 11, 2018, 05:32:32 pm »
Hi,

I'm trying to get the PLL in the XO2 - 7000 working properly, but I'm having some odd issues.
On page 24: http://www.latticesemi.com/~/media/LatticeSemi/Documents/ApplicationNotes/MO/MachXO2sysCLOCKPLLDesignandUsageGuide.pdf?document_id=39080
It is shown the PLL config window, and whatever settings I type in there the frequency I get out is about 10x less than what the dialog shows.
So if I set 100 and if it says "actual frequency" to be 100 as well, I see 10Hz on my scope. What could be causing this.
The PLL pins are directly mapped to the output pins, there is no other HDL code.
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: Lattice PLL settings
« Reply #1 on: August 11, 2018, 08:33:14 pm »
What is your CLKI frequency?
 

Offline DajgoroTopic starter

  • Frequent Contributor
  • **
  • Posts: 322
  • Country: hr
    • hackaday.io
Re: Lattice PLL settings
« Reply #2 on: August 11, 2018, 08:45:23 pm »
Quote
What is your CLKI frequency?
I'm actually not sure, I did not set any settings for it, so it must be some sort of default value.
How do I access the settings for the CLKI?
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: Lattice PLL settings
« Reply #3 on: August 11, 2018, 09:13:57 pm »
CLKI is the input clock you feed a PLL module with, such you get a CLKOP  out of it.
PLL module only multiplies the CLKI by X.

You have to connect an external oscillator (3.3V level) to the CLKI, or use an internal clock source, if any, and connect it to the CLKI.

In the configurator you have to input the actual CLKI frequency, for example 20MHz.
« Last Edit: August 11, 2018, 09:20:58 pm by imo »
 

Offline DajgoroTopic starter

  • Frequent Contributor
  • **
  • Posts: 322
  • Country: hr
    • hackaday.io
Re: Lattice PLL settings
« Reply #4 on: August 11, 2018, 09:37:53 pm »
If I did not connect any input clock, why is it working at all.
I will look into that, try to give it a proper clock source.

Also why at certain frequencies some division ratios are not possible, for example divide by 15 only works at less than 60?
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: Lattice PLL settings
« Reply #5 on: August 12, 2018, 08:31:04 am »
Best is to read the app notes..
 
The following users thanked this post: kony


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf