PLL Configuration (from EEPROM)

Opal Kelly devices with on-board PLLs allow PLL settings to be stored into EEPROM. To load the default settings, use the LoadDefaultPLLConfiguration() method. The LoadDefaultPLLConfiguration() method automatically finds the correct location in the EEPROM and configures the PLL on the FPGA according to the stored settings.

Settings stored in EEPROM are not guaranteed to be the recommended settings. The PLL settings in EEPROM can be both read and set, and LoadDefaultPLLConfiguration does not distinguish between factory settings and user-defined settings if they are stored in EEPROM.

C/C++

  OpalKelly::FrontPanelDevices devices;
  auto dev = devices.Open();
  dev->LoadDefaultPLLConfiguration();Code language: PHP (php)

C#

  okCFrontPanelDevices devices = new okCFrontPanelDevices();
  okCFrontPanel dev = devices.Open("");
  dev.LoadDefaultPLLConfiguration();Code language: JavaScript (javascript)

Python

  devices = ok.FrontPanelDevices()
  dev = devices.Open()
  dev.LoadDefaultPLLConfiguration()

Java

  public class Example {
      okCFrontPanelDevices devices;
      okCFrontPanel dev;

      public void LoadDefault() {
          devices = new okCFrontPanelDevices();
          dev = devices.Open("");
          dev.LoadDefaultPLLConfiguration();
      }
  }Code language: PHP (php)

JavaScript

const deviceManager = window.FrontPanelAPI.deviceManager;
const dev = await deviceManager.openDevice("");

try {
	const devicePLL = await dev.getPLL();

	await devicePLL.loadDefaultConfiguration();
}
catch(error) {
	console.error(`Failed to load default PLL configuration: ${error}`);
}Code language: JavaScript (javascript)