Horloge Gen 6 Click Board
Horloge Gen 6 Click Board
Key Features
- Faible consommation d'énergie, haute précision, fonctionnement d'oscillateur astable, sortie programmable, fonction d'activation/réinitialisation, etc.
- Basé sur l'oscillateur RC MIC1557 de Microchip Technology
- Peut être utilisé pour des applications telles que la génération d'impulsions, la minuterie de précision, la génération de temporisation, etc.
- mikroBUS : interfaces SPI et GPIO
Overview
La carte Click Board™ Clock Gen 6 est une carte complémentaire compacte représentant une solution d'oscillateur numérique. Cette carte comprend le MIC1557, un oscillateur CMOS RC IttyBitty conçu pour fournir des impulsions rail-to-rail pour une temporisation précise ou une génération de fréquence de Microchip Technology. Le MIC1557 possède une connexion de seuil et de déclenchement unique, connectée en interne, pour un fonctionnement astable (oscillateur) uniquement. Il dispose également d'un signal de commande d'activation/réinitialisation acheminé vers la broche RST de la prise mikroBUS™, qui contrôle l'alimentation de polarisation vers les circuits internes de l'oscillateur et optimise la consommation d'énergie utilisée pour la mise sous/hors tension de l'oscillateur. De plus, il offre la possibilité de sélectionner la fréquence souhaitée programmée via un potentiomètre numérique, le MAX5401. Cette carte Click™ convient à la génération d'impulsions, à la minuterie de précision, à la génération de temporisation et à des applications similaires.
La carte Click™ Clock Gen 6 est prise en charge par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette carte Click™ est livrée sous la forme d'un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
How Does The Clock Gen 6 Click Board™ Work?
The Clock Gen 6 Click Board™ as its foundation uses the MIC1557, a low-power digital frequency solution providing the logic for creating a simple RC oscillator circuit from Microchip Technology. The MIC1557 offers rail-to-rail pulses for precise frequency generation alongside a single threshold and trigger connection, internally connected, for astable (oscillator) operation only with programmable output frequency and enable/reset control signal intended as an oscillator with a Shutdown capability.
As mentioned before, the astable oscillator switches between two states, ON and OFF, producing a continuous square wave. The MIC1557 is optimized for this function by tying the two comparator inputs together, the threshold and trigger pins (THR and TRG), forming a T/T pin. The external capacitor charges slowly through the external resistor presented in the form of a digital potentiometer by which the user can pass through the frequency range and thus adjust the desired output.
By replacing the resistor with a digital potentiometer, the user can easily program frequency output as performed on this Click board™. For this purpose, the digital potentiometer MAX5401, which communicates with the MCU via 3-Wire SPI serial interface, is used to set the resistance on the MIC1557 OUT line, adjusting the frequency up to 5MHz.
Alongside SPI communication, this Click board™ also uses one additional pin. The Enable pin, labelled as EN and routed to the RST pin of the mikroBUS™ socket, optimizes power consumption and is used for power ON/OFF purposes (controls the bias supply to the oscillator's internal circuitry). When the MIC1557 is deselected, the supply current is less than 1μA, and the device is placed in a Shutdown state. Forcing the EN pin low resets the device by setting the flip flop, causing the output to a low logic state.
ThClock Gen 6 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | Clock generator |
Applications | Can be used for applications such as pulse generation, precision timer, time-delay generation, and more |
On-board modules | MIC1557 - RC oscillator from Microchip Technology |
Key Features | Low power consumption, high precision, astable oscillator operation, programmable output, enable/reset feature, and more |
Interface | GPIO,SPI |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout on Clock Gen 6 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
Enable | EN | 2 | RST | INT | 15 | NC | |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | NC | |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
CLOCK GEN 6 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Frequency Range | - | - | 5 | MHz |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
Software Support
We provide a library for the Clock Gen 6 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the Clock Gen 6 Click Board™ driver.
Key functions
-
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.
Example Description
This example demonstrates the use of the Clock Gen 6 Click Board™ which acts as an astable oscillator.
void application_task ( void )
{
for ( int16_t pos = CLOCKGEN6_DIGIPOT_POSITION_MAX; pos >= CLOCKGEN6_DIGIPOT_POSITION_MIN; )
{
if ( CLOCKGEN6_OK == clockgen6_set_digipot ( &clockgen6, pos ) )
{
log_printf( &logger, " DIGIPOT position: %urn", pos );
Delay_ms ( 1000 );
pos -= 5;
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.ClockGen6
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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.
MIKROSDK
The Clock Gen 6 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
Software Support
We provide a library for the Clock Gen 6 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the Clock Gen 6 Click Board™ driver.
Key functions
-
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.
Example Description
This example demonstrates the use of the Clock Gen 6 Click Board™ which acts as an astable oscillator.
void application_task ( void )
{
for ( int16_t pos = CLOCKGEN6_DIGIPOT_POSITION_MAX; pos >= CLOCKGEN6_DIGIPOT_POSITION_MIN; )
{
if ( CLOCKGEN6_OK == clockgen6_set_digipot ( &clockgen6, pos ) )
{
log_printf( &logger, " DIGIPOT position: %urn", pos );
Delay_ms ( 1000 );
pos -= 5;
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.ClockGen6
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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.
MIKROSDK
The Clock Gen 6 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.