Container class which holds the appropriate configuration parameters for a Cypress 22150 PLL. More...
This is a container class which holds the appropriate configuration parameters for a Cypress 22150 PLL. The PLL has a single VCO but mutliple outputs with frequencies derived from dividers and switching blocks.
Python Note: Under Python, this class is simply called PLL22150. Therefore, if you import the ok library, you would refer to this class as ok.PLL22150.
Note that this object does not communicate with the XEM. That is, it does not reflect the state of the actual PLL. It is simply a container class used to configure and query the on-board PLL.
Typically, PLL settings will be set with the FrontPanel application and stored in EEPROM. In some cases, however, you may want your code to configure the PLL. Refer to the Cypress documentation to see how the various settings affect the output. The following example configures the VCO to operate at 400 MHz and sets up two outputs at 100 MHz and 50 MHz.
At this point, the pll instance may be passed to okCUsbFrontPanel::SetPLLConfiguration to configure the on-board PLL. You can also use okCPLL22150::GetOutputConfiguration to verify that the output frequency is set properly.