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: 2019-04-02
Package Version: 1.0.0.1
mikroSDK Library: 1.0.0.0
Category: ADC
Downloaded: 4828 times
Followed by: 4 users
License: MIT license
Comparator click can be used with a single or dual power supply. If a single power supply is used, the offset voltage can be as low as 2.0 mV, with a range from 2.0 VDC to 36 VDC. For dual supplies, the range is from ±1.0 VDC to ±18 VDC. The resulting output is compatible with TTL, DTL, ECL, MOS and CMOS logic systems.
Do you want to subscribe in order to receive notifications regarding "Comparator click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Comparator click" changes.
Do you want to report abuse regarding "Comparator click".
Library Description
The library covers all the necessary functions to control the Comparator click board. Comparator click communicates with the device via GPIO driver. This library contains drivers for check state of the OUT1 and OUT2 pin function.
Key functions:
Examples description
The application is composed of three sections:
void applicationTask() { outStateOne = comparator_checkOutputOne(); outStateTwo = comparator_checkOutputTwo(); mikrobus_logWrite( " Output One : ", _LOG_TEXT ); if ( outStateOne ) mikrobus_logWrite( "High", _LOG_LINE ); else mikrobus_logWrite( "Low", _LOG_LINE ); mikrobus_logWrite( " Output Two : ", _LOG_TEXT ); if ( outStateTwo ) mikrobus_logWrite( "High", _LOG_LINE ); else mikrobus_logWrite( "Low", _LOG_LINE ); mikrobus_logWrite( "-------------------", _LOG_LINE ); Delay_1sec(); }
Other mikroE Libraries used in the example:
GPIO
UART​
Conversion
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