One Shot Click Board
One Shot Click Board
The One Shot Click Board™ is equipped with the monostable multivibrator (also known as a “one-shot” pulse generator) with a programmable pulse width of 1μs to 33.6 seconds. The used LTC6993-2 is part of the TimerBlox® family of versatile silicon timing devices, from Analog Devices. In addition to this, the One Shot Click also offers configurability for either positive or negative output pulse, fast recovery time, 70μA supply current, CMOS output driver 20mA sources/sinks and many more useful features, which makes this Click Board™ an ideal choice for applications such as watchdog timers, frequency discriminators, missing pulse detection, envelope detection and more.
The One Shot Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the One Shot Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control One Shot Click. User can use functions to set or check state of AD5241, set or clear trigger pin and check output pin.
Key Functions
void oneshot_setTrig( uint8_t state )
- Changes the state of trigger pin.uint8_t oneshot_checkOut()
- Checks the state of output pin.float oneshot_getR()
- Calculates resistance of AD5241.
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C and LOG structures, sets CS pin as output and RST pin as input.
- Application Initialization - Initialization driver enables I2C and also starts write log.
- Application Task - (code snippet) This example demonstrates the use of One Shot click. When value 0x18 is applied on AD5241, trigger pin is cleared and ressistance between TP1 i TP2 is set to 27 kohm, One Shot click produces one 0.5s pulse.
void applicationTask() { oneshot_setTrig( 0 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other Mikroe Libraries used in the example:
- I2C
- UART
- Conversions
Additional Notes and Information
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.
MIKROSDK
This 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.
One Shot Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.