UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
6,887 Views
Registered: ‎06-25-2015

Trouble with PLL configuration

Hi, I am working with the Opal Kelly 3010s1500. I trying to configure the PLL through matlab using the api. Below is the following code that I am using in Matlab:

 

ref = calllib('okFrontPanel', 'okPLL22393_SetReference', xem.ptr, 200*10^6);

calllib('okFrontPanel', 'okPLL22393_SetPLLParameters', xem.ptr, 0, 6, 2, true);

calllib('okFrontPanel','okPLL22393_SetOutputSource',xem.ptr, 1, 'ok_ClkSrc22393_PLL0_0')

calllib('okFrontPanel','okPLL22393_SetOutputDivider',xem.ptr, 1, 2)

calllib('okFrontPanel','okPLL22393_SetOutputEnable',xem.ptr,1,true)

calllib('okFrontPanel', 'okFrontPanel_SetPLL22393Configuration', xem.ptr, 1)

out_freq = calllib('okFrontPanel', 'okPLL22393_GetOutputFrequency',xem.ptr,1)

 

This runs without errors and I get the expected value for out_freq.

 

However, I do not understand which sysClk on the xem3010 is being selected, I believe that I am selecting sysClk2 but when I attach the associated pin to an oscilloscope, I do not see the clock signal. (I have linked this internal pin to an external pin in vhdl.)  Could someone let me know if my thinking is correct or how I can send the PLL configuration to a clock pin.

 

Also I know that I can do this through the frontpanel, however I need to set the PLL using the api.

 

Thanks in advance.

 

Adam G.

 

 

Tags (1)
0 Kudos
1 Reply
Moderator
Moderator
6,817 Views
Registered: ‎02-16-2010

Re: Trouble with PLL configuration

How does this relate to Xilinx devices?
------------------------------------------------------------------------------
Don't forget to reply, give kudo and accept as solution
------------------------------------------------------------------------------