We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-01-22
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Clock generator
Downloaded: 3147 times
Not followed.
License: MIT license
One Shot click is a is a monostable multivibrator (also known as a “one-shot†pulse generator) with a programmable pulse width of 1μs to 33.6 seconds.
Do you want to subscribe in order to receive notifications regarding "One Shot click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "One Shot click" changes.
Do you want to report abuse regarding "One Shot click".
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.Examples description
The application is composed of three sections :
void applicationTask()
{
oneshot_setTrig( 0 );
}
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.