pll
2.0.0.0
|
PLL click is a frequency multiplier which uses the Phase-Locked Loop (PLL) techniques to provide a high-frequency clock output from a cheap, standard fundamental mode crystal oscillator.
We provide a library for the Pll Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Pll Click driver.
void pll_cfg_setup ( pll_cfg_t *cfg );
void pll_default_cfg ( pll_t *ctx );
void pll_set_clock_output ( pll_t *ctx, uint8_t mode );
void pll_set_pll_4x ( pll_t *ctx );
void pll_set_pll_6x ( pll_t *ctx );
This app sets PLL signals.
The demo application is composed of two sections :
Initializes device.
Every 2 seconds, the PLL increases the input clock in the order of x4, x5, x6 and x8.
If you use PLL x4, x5, x6 or x8, set S0 (RST pin) and S1 (AN pin) as OUTPUT. If you use PLL x3.125 or x6.25, set S1 ( AN pin ) as INPUT and S0( RST pin ) as OUTPUT. If you use PLL x3 or x5.3125, set S0 ( RST pin ) as INPUT and S1 ( AN pin ) as OUTPUT.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.