spiisolator3 2.0.0.0
Main Page

SPI Isolator 3 click

SPI Isolator 3 Click is a compact add-on board that contains a digital isolator optimized for a serial peripheral interface. This board features the MAX14483, a 6-channel 3.75kVRMS digital galvanic isolator with a very low propagation delay on the SDI, SDO, and SCLK channels from Maxim Integrated. Besides a second enable control input, which allows MAX14483 to isolate multiple SPI devices, and an auxiliary channel available for passing timing or control signals from the master side to the slave side, the MAX14483 also possesses power monitors provided for both power domains to signal if the opposite side of the isolator is ready for operation.

click Product page


Click library

  • Author : Nenad Filipovic
  • Date : Apr 2021.
  • Type : SPI type

Software Support

We provide a library for the SpiIsolator3 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.

Library Description

‍This library contains API for SpiIsolator3 Click driver.

Standard key functions :

Example key functions :

Example Description

‍This library contains API for the SPI Isolator 3 click driver. This demo application shows an example of an SPI Isolator 3 click wired to the nvSRAM 4 click for reading Device ID.

The demo application is composed of two sections :

Application Init

‍Initialization of SPI module and log UART. After driver initialization, the app sets the default configuration.

void application_init ( void ) {
log_cfg_t log_cfg;
spiisolator3_cfg_t spiisolator3_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
spiisolator3_cfg_setup( &spiisolator3_cfg );
SPIISOLATOR3_MAP_MIKROBUS( spiisolator3_cfg, MIKROBUS_1 );
err_t init_flag = spiisolator3_init( &spiisolator3, &spiisolator3_cfg );
if ( init_flag == SPI_MASTER_ERROR ) {
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
spiisolator3_default_cfg ( &spiisolator3 );
log_info( &logger, " Application Task " );
Delay_ms ( 100 );
}
#define SPIISOLATOR3_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition spiisolator3.h:95
void application_init(void)
Definition main.c:50

Application Task

‍This is an example that shows the use of an SPI Isolator 3 click boardâ„¢. Logs Device ID of the nvSRAM 4 click wired to the SPI Isolator 3 boardâ„¢.
Results are being sent to the Usart Terminal where you can track their changes.

void application_task ( void ) {
log_printf( &logger, " Device ID : 0x%.8LX\r\n", device_id );
Delay_ms ( 1000 );
}
void application_task(void)
Definition main.c:84
void get_device_id(void)
Definition main.c:36

Additional Function

  • get_device_id Get Device ID function.
    void get_device_id ( void );

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:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.SpiIsolator3

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.