TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136807 times)
  2. FAT32 Library (69983 times)
  3. Network Ethernet Library (55951 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41892 times)
  6. FT800 Library (41191 times)
  7. GSM click (28990 times)
  8. PID Library (26420 times)
  9. mikroSDK (26376 times)
  10. microSD click (25382 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

SPI Isolator 3 click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.10

mikroSDK Library: 2.0.0.0

Category: SPI

Downloaded: 70 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "SPI Isolator 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "SPI Isolator 3 click" changes.

Do you want to report abuse regarding "SPI Isolator 3 click".

  • Information
  • Comments (0)

mikroSDK Library Blog


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.

spi_isolator_3_click.png

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 :

  • spiisolator3_cfg_setup Config Object Initialization function.

    void spiisolator3_cfg_setup ( spiisolator3_cfg_t *cfg );
  • spiisolator3_init Initialization function.

    SPIISOLATOR3_RETVAL spiisolator3_init ( spiisolator3_t *ctx, spiisolator3_cfg_t *cfg );
  • spiisolator3_default_cfg Click Default Configuration function.

    void spiisolator3_default_cfg ( spiisolator3_t *ctx );

Example key functions :

  • spiisolator3_generic_write SPI Isolator 3 data writing function.

    SPIISOLATOR3_RETVAL spiisolator3_generic_write ( spiisolator3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len );
  • spiisolator3_generic_read SPI Isolator 3 data reading function.

    SPIISOLATOR3_RETVAL spiisolator3_generic_read ( spiisolator3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len );
  • spiisolator3_get_fault SPI Isolator 3 get fault state function.

    uint8_t spiisolator3_get_fault ( spiisolator3_t *ctx );

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;                    /**< Logger config object. */
    spiisolator3_cfg_t spiisolator3_cfg;  /**< Click config object. */

    /** 
     * Logger initialization.
     * Default baud rate: 115200
     * Default log level: LOG_LEVEL_DEBUG
     * @note If USB_UART_RX and USB_UART_TX 
     * are defined as HAL_PIN_NC, you will 
     * need to define them manually for log to work. 
     * See @b LOG_MAP_USB_UART macro definition for detailed explanation.
     */
    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 );
}

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 ) {
    get_device_id( );
    log_printf( &logger, " Device ID : 0x%.8LX\r\n", device_id ); 
    Delay_ms ( 1000 );
}

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.


ALSO FROM THIS AUTHOR

Smart Buck click

0

Smart Buck click is the two-channel step-down DC/DC converter and regulator, with plenty of additional functions. It can provide voltage measurement at each of its two programmable voltage outputs, as well as the measurement of the current consumption. In addition, it can also provide power consumption measurements of the Click board™ itself, both at the mikroBUS™ +5V power rail, and the external voltage input terminal. Finally, there is 2kbit of EEPROM at disposal, which can be used for logging the measurements, storage of the working parameters, or any other type of general purpose data.

[Learn More]

H-Bridge 5 click

0

The H-Bridge 5 Click is designed for control DC motors and inductiv loads. This Click board™ contains the MP6515GF-Z, a H-bridge motor driver from MPS, It features an Full H-Bridge driver with Internal safety features include over-current protection, input over-voltage protection, under voltage lockout (UVLO), and thermal shutdown.

[Learn More]

5G NB IoT click

5

5G NB IoT Click is a Click boardâ„¢ based on Gemalto's Cinterion ENS22 NB-IoT Wireless Module platform that boosts highly efficient future 5G connectivity for the IoT.

[Learn More]