clockgen6 2.0.0.0
|
Clock Gen 6 Click is a compact add-on board representing a digital oscillator solution. This board features the MIC1557, an IttyBitty CMOS RC oscillator designed to provide rail-to-rail pulses for precise time delay or frequency generation from Microchip Technology. The MIC1557 has a single threshold and trigger connection, internally connected, for astable (oscillator) operation only. It also has an enable/reset control signal routed to the RST pin of the mikroBUS™ socket, which controls the bias supply to the oscillator’s internal circuitry and optimizes power consumption used for oscillator power ON/OFF purposes. In addition, it provides the ability to select the desired frequency programmed via a digital potentiometer, the MAX5401.
We provide a library for the Clock Gen 6 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Clock Gen 6 Click driver.
clockgen6_cfg_setup
Config Object Initialization function. clockgen6_init
Initialization function. clockgen6_default_cfg
This function executes a default configuration of Clock Gen 6 click board. clockgen6_set_digipot
This function sets the digital potentiometer position by using SPI serial interface. clockgen6_enable_output
This function enables the output by setting the EN pin to high logic state. clockgen6_disable_output
This function disables the output by setting the EN pin to low logic state. This example demonstrates the use of Clock Gen 6 click board which acts as an astable oscillator.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the digital potentiometer to max position and enables the clock output.
Changes the clock output frequency by changing the digital potentiometer position every second. The potentiometer position value will be displayed on the USB UART.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.