Analog MUX 3 Click Board
Analog MUX 3 Click Board
Key Features:
- 8-to-1 matrix switch, low on-resistance, ‘Break-Before-Make’ switching action, serially controlled, and more
- Based on the ADG738 - CMOS 8-channel analogue matrix switch with a serially-controlled 3-wire SPI interface from Analog Devices
- Can be used for a wide range of applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems.
- mikroBUS: SPI and Analogue Interfaces
The Analog MUX 3 Click Board™ is a compact add-on board that switches one of the eight inputs to one output. This board features the ADG738, a CMOS analogue matrix switch with a serially-controlled SPI interface from Analog Devices. In an active state, the ADG738 conducts equally well in both directions, making it suitable for multiplexing and demultiplexing applications. It can also be configured as a type of switch array where any, all, or none of eight switches may be closed at any time. All channels exhibit ‘break-before-make switching action, preventing momentary shorting when switching channels. This Click Board™ is suitable for a wide range of applications, from industrial and instrumentation to medical, consumer, communications, and automotive systems.
The Analog MUX 3 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the Analog MUX 3 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for Analog Mux 3 Click driver.
Key Functions
analogmux3_cfg_setup
- Config Object Initialization function.analogmux3_init
- Initialization function.analogmux3_default_cfg
- Click Default Configuration function.
Example Description
This is an example that demonstrates the use of the Analog MUX 3 click board. This application controls the multiplexing of a single input channel with an eight-channel matrix switch.
The demo application is composed of two sections :
void application_task ( void ) { for ( uint8_t ch_pos = ANALOGMUX3_SET_CHANNEL_0; ch_pos <= ANALOGMUX3_SET_CHANNEL_7; ch_pos++ ) { analogmux3_set_channel( &analogmux3, ch_pos ); Delay_ms( 1000 ); uint16_t analogmux3_an_value = 0; log_printf( &logger, " CHANNEL : AN%u rn", ch_pos ); log_printf( &logger, "- - - - - - - - - - - - - rn" ); if ( analogmux3_read_an_pin_value ( &analogmux3, &analogmux3_an_value ) != ADC_ERROR ) { log_printf( &logger, " ADC Value : %urn", analogmux3_an_value ); } float analogmux3_an_voltage = 0; if ( analogmux3_read_an_pin_voltage ( &analogmux3, &analogmux3_an_voltage ) != ADC_ERROR ) { log_printf( &logger, " AN Voltage : %.3f V rn", analogmux3_an_voltage ); } log_printf( &logger, "-------------------------rn" ); } } 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.AnalogMux3
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The Analog MUX 3 Click Board™ is supported with mikroSDK - MikroElektronika 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.
Analog MUX 3 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.