canisolator2 2.0.0.0
|
CAN Isolator 2 Click is a compact add-on board that provides isolated CAN communication. This board features the ISO1042, an isolated CAN transceiver from Texas Instruments. This galvanically-isolated CAN transceiver meets the ISO11898-2 specifications and offers a +/-70V DC bus fault protection, along with the +/-30V of common mode voltage range. The transceiver supports two CAN modes, with speeds of up to 1Mbps in Classic CAN and flexible data rate (FD) CAN, which allows much faster transfer of payload compared to the classic CAN with up to 5Mbps.
We provide a library for the CanIsolator2 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 CanIsolator2 Click driver.
canisolator2_cfg_setup
Config Object Initialization function. canisolator2_init
Initialization function. canisolator2_default_cfg
Click Default Configuration function. canisolator2_generic_write
CAN Isolator 2 data writing function. canisolator2_generic_read
CAN Isolator 2 data reading function. canisolator2_send_data
CAN Isolator 2 send data function. This example reads and processes data from CAN Isolator 2 clicks.
The demo application is composed of two sections :
Initializes driver and wake-up module.
Transmitter/Receiver task depends on uncommented code. Receiver logging each received byte to the UART for data logging, while transmitted send messages every 2 seconds.
canisolator2_clear_app_buf
CAN Isolator 2 clear app buffer function. canisolator2_process
CAN Isolator 2 process function. 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.