opto7
2.1.0.0
|
Opto 7 Click is a compact add-on board that provides uncomplicated safety isolation from high voltage. This board features two ISOM8710, high-speed single-channel opto-emulators from Texas Instruments. The ISOM8710 opto-emulator has a diode-emulator input and digital output
We provide a library for the Opto 7 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 Opto 7 Click driver.
opto7_cfg_setup
Config Object Initialization function. opto7_init
Initialization function. opto7_generic_write
Opto 7 data writing function. opto7_set_gp1_pin
Opto 7 set GP1 pin function. opto7_get_gp2_pin
Opto 7 get GP2 pin function. This example demonstrates the use of Opto 7 Click board by processing
the incoming data and displaying them on the USB UART.
The demo application is composed of two sections :
Initialization of UART LOG and GPIO pin, and UART drivers.
This example is made of two parts: GPIO Example - The output pin is toggled every 5 seconds and input pin state is being tracked. UART Example - Device assigned as transmitter is sending message and receiver is reading it and displaying it on 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.