# Title: 4-20mA T 2 Click Board™ ## Description: How Does The 4-20mA T 2 Click Board™ Work? The 4-20mA T 2 Click Board™ is based on the DAC161S997, a low-power 16-bit ΣΔ digital-to-analog converter (DAC) from Texas Instruments, realized as a ΣΔ modulator. Next to ΣΔ DAC, the DAC161S997 also contains an internal ultra-low power voltage reference and an internal oscillator to reduce power and component count in compact loop-powered applications. This architecture, where DAC's output current represents a multiplied copy of the filtered modulator output, ensures an excellent linearity performance while minimizing the device's power consumption. In addition to an industry-standard 4-20 mA current loop over the LOOP terminal, the DAC161S997 also has the possibility of a simple Highway Addressable Remote Transducer (HART) modulator interfacing through an onboard HART TX terminal. It allows the injection of FSK-modulated digital data into the 4-20mA current loop. The 4-20mA T 2 Click Board™ communicates with MCU using a 4-wire SPI serial interface with a maximum frequency of 10MHz, for data transfer and configuration of the DAC functions. The DAC161S997 supports both Mode 0 and Mode 3 of the SPI protocol. 4-20mA T 2 Click comes with an additional feature, as an interrupt, available on the ERR pin of the mikroBUS™ socket, the loop-error detection/reporting feature. By default, the DAC161S997 detects and reports several types of errors: loop error, SPI timeout error (channel error), frame error, and alarm current. In the case of a fault condition or during the initial Power-Up sequence, the DAC161S997 will output current in either the upper or lower error current band. The band's choice is user-selectable via the appropriate position of an onboard jumper ERRL SEL, while the current error value is programmable through the SPI interface. The 4-20mA T 2 Click Board™ can only operate with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development. SPECIFICATIONS Type Current Applications It can be used for 2-wire 4-20mA current loop transmitters, industrial process control, low-power transmitters, and more On-board modules DAC161S997 - 16-bit DAC for 4-20mA loops from Texas Instruments Key Features High resolution, industry-standard current loop, SPI-programmable, low power consumption, Power-Up programmable output current, loop-error detection and reporting, HART modulator interfacing, and more Interface SPI Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V PINOUT DIAGRAM This table shows how the pinout of the 4-20mA T 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 ERR Loop-Error Interrupt SPI Chip Select CS 3 CS RX 14 NC SPI Clock SCK 4 SCK TX 13 NC SPI Data OUT SDO 5 MISO SCL 12 NC SPI Data IN SDI 6 MOSI SDA 11 NC Power Supply 3.3V 7 3.3V 5V 10 NC Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED Indicator JP1 ERRL SEL Left Power-Up Output Current Level Selection GND/VCC: Left position GND, Right position VCC 4-20MA T 2 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage - 3.3 - V Output Current 4 - 20 mA ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: 4-20mA, Click Board, Current, Interface, SPI ## Price range: 21.0 - 21.0 GBP ## Link: https://thedebugstore.com/products/mikroe-5540-4-20ma-t-2-click-board ## Compare-at price range: 30.0 - 30.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Interface Click Boards™](https://thedebugstore.com/a/llms/collections/interface-click-boards-catalogue) - [Current Interface Click Boards™](https://thedebugstore.com/a/llms/collections/current-interface-click-boards-catalogue) - [SPI Interface Click Boards™](https://thedebugstore.com/a/llms/collections/spi-interface-click-boards-catalogue) - [4-20mA Interface Click Boards™](https://thedebugstore.com/a/llms/collections/4-20ma-interface-click-boards-uk) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-5540, Available: yes, Inventory: 1 ## Metafields - title_tag: MikroE 4-20mA T 2 Click Board™ (MIKROE-5540) - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- key_feature_2: High resolution, industry-standard current loop, SPI-programmable, low power consumption, Power-Up programmable output current, loop-error detection and reporting, HART modulator interfacing, and more - key_feature_3: Based on the DAC161S997 - 16-bit DAC for 4-20mA loops from Texas Instruments - key_feature_4: Can be used for 2-wire 4-20mA current loop transmitters, industrial process control, low-power transmitters, and more - key_feature_5: mikroBUS: SPI Interface - full_description:

How Does The 4-20mA T 2 Click Board™ Work?

The 4-20mA T 2 Click Board™ is based on the DAC161S997, a low-power 16-bit ΣΔ digital-to-analog converter (DAC) from Texas Instruments, realized as a ΣΔ modulator. Next to ΣΔ DAC, the DAC161S997 also contains an internal ultra-low power voltage reference and an internal oscillator to reduce power and component count in compact loop-powered applications. This architecture, where DAC's output current represents a multiplied copy of the filtered modulator output, ensures an excellent linearity performance while minimizing the device's power consumption. In addition to an industry-standard 4-20 mA current loop over the LOOP terminal, the DAC161S997 also has the possibility of a simple Highway Addressable Remote Transducer (HART) modulator interfacing through an onboard HART TX terminal. It allows the injection of FSK-modulated digital data into the 4-20mA current loop.

4-20mA Click Board™_inneri2

The 4-20mA T 2 Click Board™ communicates with MCU using a 4-wire SPI serial interface with a maximum frequency of 10MHz, for data transfer and configuration of the DAC functions. The DAC161S997 supports both Mode 0 and Mode 3 of the SPI protocol. 4-20mA T 2 Click comes with an additional feature, as an interrupt, available on the ERR pin of the mikroBUS™ socket, the loop-error detection/reporting feature. By default, the DAC161S997 detects and reports several types of errors: loop error, SPI timeout error (channel error), frame error, and alarm current.

In the case of a fault condition or during the initial Power-Up sequence, the DAC161S997 will output current in either the upper or lower error current band. The band's choice is user-selectable via the appropriate position of an onboard jumper ERRL SEL, while the current error value is programmable through the SPI interface.

The 4-20mA T 2 Click Board™ can only operate with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development.

SPECIFICATIONS

Type Current
Applications It can be used for 2-wire 4-20mA current loop transmitters, industrial process control, low-power transmitters, and more
On-board modules DAC161S997 - 16-bit DAC for 4-20mA loops from Texas Instruments
Key Features High resolution, industry-standard current loop, SPI-programmable, low power consumption, Power-Up programmable output current, loop-error detection and reporting, HART modulator interfacing, and more
Interface SPI
Compatibility mikroBUS
Click board size M (42.9 x 25.4 mm)
Input Voltage 3.3V

PINOUT DIAGRAM

This table shows how the pinout of the 4-20mA T 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
NC 1 AN PWM 16 NC
NC 2 RST INT 15 ERR Loop-Error Interrupt
SPI Chip Select CS 3 CS RX 14 NC
SPI Clock SCK 4 SCK TX 13 NC
SPI Data OUT SDO 5 MISO SCL 12 NC
SPI Data IN SDI 6 MOSI SDA 11 NC
Power Supply 3.3V 7 3.3V 5V 10 NC
Ground GND 8 GND GND 9 GND Ground

ONBOARD SETTINGS AND INDICATORS

Label Name Default Description
LD1 PWR - Power LED Indicator
JP1 ERRL SEL Left Power-Up Output Current Level Selection GND/VCC: Left position GND, Right position VCC

4-20MA T 2 CLICK ELECTRICAL SPECIFICATIONS

Description Min Typ Max Unit
Supply Voltage - 3.3 - V
Output Current 4 - 20 mA

 

- examples:

We provide a library for the 4-20mA T 2 Click Board™ as well as a demo application (example), developed using MikroE compilers. The demo can run on all the main MikroE development boards.

The package can be downloaded/installed directly from NECTO Studio The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.

Library Description

This library contains API for the 4-20mA T 2 Click Board™ driver.

Key functions

Example Description

This example demonstrates the use of the 4-20mA T 2 Click Board™. This driver provides functions to configure analogue output current transfer over an industry standard 4-20mA current loop.

void application_task ( void )
{
    if ( C420MAT2_OK == c420mat2_set_output_current( &c420mat2, 4.0 ) )
    {
        log_printf( &logger, " Loop Current:  4.0 mA rn" );
        log_printf( &logger, " - - - - - - - - - - - - - - -rn" );
        if ( C420MAT2_OK == c420mat2_get_status ( &c420mat2, &status ) )
        {
            display_status( );    
        }
        Delay_ms( 5000 );
    }

    if ( C420MAT2_OK == c420mat2_set_output_current( &c420mat2, 10.0 ) )
    {
        log_printf( &logger, " Loop Current: 10.0 mA rn" );
        log_printf( &logger, " - - - - - - - - - - - - - - -rn" );
        if ( C420MAT2_OK == c420mat2_get_status ( &c420mat2, &status ) )
        {
            display_status( );    
        }
        Delay_ms( 5000 );
    }

    if ( C420MAT2_OK == c420mat2_set_output_current( &c420mat2, 15.0 ) )
    {
        log_printf( &logger, " Loop Current: 15.0 mA rn" );
        log_printf( &logger, " - - - - - - - - - - - - - - -rn" );
        if ( C420MAT2_OK == c420mat2_get_status ( &c420mat2, &status ) )
        {
            display_status( );    
        }
        Delay_ms( 5000 );
    }

    if ( C420MAT2_OK == c420mat2_set_output_current( &c420mat2, 20.0 ) )
    {
        log_printf( &logger, " Loop Current: 20.0 mA rn" );
        log_printf( &logger, " - - - - - - - - - - - - - - -rn" );
        if ( C420MAT2_OK == c420mat2_get_status ( &c420mat2, &status ) )
        {
            display_status( );    
        }
        Delay_ms( 5000 );
    }
}

The full application code, and ready to use projects can be installed directly from NECTO Studio. The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.

Other MikroE Libraries used in the example:

Additional Notes and Information

Depending on the development board you are using, you may need USB UART Click Board™, 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 MikroE compilers.

MIKROSDK

The 4-20mA T 2 Click Board™ is supported with mikroSDK - MikroE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.

- manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - backorder_label: If no stock shown above, check availability - attachments: [{"download_file":[{"download_file":"4-20mA T 2 Click Board™ Schematic"}]},{"download_file":[{"download_file":"Texas Instruments DAC161D997"}]}] - device_vendor: Texas Instruments - device_type: DAC161S997 - description_tag: Shop at Debug Store for the 4-20mA T 2 Click Board™. Transmit analogue output current effortlessly with this powerful DAC board. Enhance your connectivity now! - warranty: 12 months - brand: MikroE - condition: new - manufacturer: Mikroelektronika d.o.o. - target_keyword: 4-20mA T 2 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241546100925"] - mpn: MIKROE-5540 - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The 4-20mA T 2 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The 4-20mA T 2 Click Board™ is based on the DAC161S997, a low-power 16-bit ΣΔ digital-to-analog converter (DAC) from Texas Instruments, realized as a ΣΔ modulator. Next to ΣΔ DAC, the DAC161S997 also contains an internal ultra-low power voltage reference and an internal oscillator to reduce power and component count in compact loop-powered applications. This architecture, where DAC's output current represents a multiplied copy of the filtered modulator output, ensures an excellent linearity performance while minimizing the device's power consumption. In addition to an industry-standard 4-20 mA current loop over the LOOP terminal, the DAC161S997 also has the possibility of a simple Highway Addressable Remote Transducer (HART) modulator interfacing through an onboard HART TX terminal. It allows the injection of FSK-modulated digital data into the 4-20mA current loop."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The 4-20mA T 2 Click Board™ communicates with MCU using a 4-wire SPI serial interface with a maximum frequency of 10MHz, for data transfer and configuration of the DAC functions. The DAC161S997 supports both Mode 0 and Mode 3 of the SPI protocol. 4-20mA T 2 Click comes with an additional feature, as an interrupt, available on the ERR pin of the mikroBUS™ socket, the loop-error detection/reporting feature. By default, the DAC161S997 detects and reports several types of errors: loop error, SPI timeout error (channel error), frame error, and alarm current."}]},{"type":"paragraph","children":[{"type":"text","value":"In the case of a fault condition or during the initial Power-Up sequence, the DAC161S997 will output current in either the upper or lower error current band. The band's choice is user-selectable via the appropriate position of an onboard jumper ERRL SEL, while the current error value is programmable through the SPI interface."}]},{"type":"paragraph","children":[{"type":"text","value":"The 4-20mA T 2 Click Board™ can only operate with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nCurrent\nApplications\nIt can be used for 2-wire 4-20mA current loop transmitters, industrial process control, low-power transmitters, and more\nOn-board modules\nDAC161S997 - 16-bit DAC for 4-20mA loops from Texas Instruments\nKey Features\nHigh resolution, industry-standard current loop, SPI-programmable, low power consumption, Power-Up programmable output current, loop-error detection and reporting, HART modulator interfacing, and more\nInterface\nSPI\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the 4-20mA T 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nERR\nLoop-Error Interrupt\nSPI Chip Select\nCS\n3\nCS\nRX\n14\nNC\nSPI Clock\nSCK\n4\nSCK\nTX\n13\nNC\nSPI Data OUT\nSDO\n5\nMISO\nSCL\n12\nNC\nSPI Data IN\nSDI\n6\nMOSI\nSDA\n11\nNC\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\nNC\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nJP1\nERRL SEL\nLeft\nPower-Up Output Current Level Selection GND/VCC: Left position GND, Right position VCC"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"4-20MA T 2 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n-\n3.3\n-\nV\nOutput Current\n4\n-\n20\nmA"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The 4-20mA T 2 Click Board™: Transmitting Analogue Output Current Made Easy!

The 4-20mA T 2 Click Board™ is the ultimate solution for transmitting an analogue output current over an industry-standard 4-20mA current loop. This compact add-on board is designed to streamline your connectivity needs, providing seamless integration and reliable performance.

Powerful Features for Optimal Performance

At the heart of this remarkable Click Board™ is the DAC161S997, a low-power 16-bit ΣΔ digital-to-analogue converter (DAC) manufactured by the industry-leading Texas Instruments. With its advanced features, you can expect nothing short of exceptional performance.

One standout feature is the programmable Power-Up condition, allowing you to customize the behaviour of the Click Board™ upon power restoration. Additionally, the loop-error detection and reporting feature provides valuable insights into the performance of your current loop, ensuring smooth operation at all times.

The 4-20mA T 2 Click Board™ simplifies data transfer, and configuration of the DAC functions through a simple 4-wire SPI interface. This means you can effortlessly fine-tune the settings to suit your requirements, saving you valuable time and effort.

Efficiency and Flexibility Combined

Low power consumption is a key characteristic of the 4-20mA T 2 Click Board™. This ensures energy-efficient operation, prolonging the lifespan of your system and reducing overall power costs. Plus, with its compatibility with the Highway Addressable Remote Transducer (HART) modulator interface, you can seamlessly inject FSK-modulated digital data into the 4-20mA current loop, unlocking a world of possibilities.

Versatile Applications

The 4-20mA T 2 Click Board™ is the perfect choice for various applications. Whether you're working with 2-wire 4-20mA current loop transmitters, industrial process control systems, or low-power transmitters, this Click Board™ has got you covered.

Easy Software Development and Integration

With its mikroSDK-compliant library, the 4-20mA T 2 Click Board™ simplifies software development, allowing you to focus on what matters most - bringing your ideas to life. The library includes a range of functions that streamline the development process, ensuring a smooth and efficient experience.

When you choose the 4-20mA T 2 Click Board™, you choose a fully tested product ready to be seamlessly integrated into your system. Equipped with the reliable mikroBUS™ socket, this Click Board™ guarantees effortless installation and compatibility.

Don't settle for anything less than excellence. Experience the power and convenience of the 4-20mA T 2 Click Board™ today!