Carte Click MUX 4 analogique
Carte Click MUX 4 analogique
Key Features
- Contrôle du courant d'injection, protection contre la contre-alimentation, chemin de signal bidirectionnel, commutation Break-Before-Make, gestion du signal de plage VCC, compatible TTL/CMOS-logique, contrôlable par broche, et plus encore
- Basé sur le TMUX1308 - multiplexeur analogique CMOS asymétrique 8:1 à usage général de Texas Instruments
- Peut être utilisé pour diverses applications, de l'industrie à l'instrumentation, en passant par le grand public, les communications, etc.
- mikroBUS : interfaces GPIO et analogiques
La carte Click Board™ Analog MUX 4 est une carte complémentaire compacte qui commute l'une des huit entrées analogiques vers une seule sortie analogique. Cette carte est équipée du TMUX1308, un multiplexeur CMOS asymétrique 8:1 à usage général (MUX) de Texas Instruments. Le TMUX1308 dispose d'un contrôle de courant d'injection interne qui élimine le besoin de réseaux de diodes et de résistances externes pour protéger le commutateur et maintenir les signaux d'entrée dans la tension d'alimentation. Il prend également en charge les signaux analogiques et numériques bidirectionnels allant de 0 à 5 V, ainsi que plusieurs fonctions de protection permettant un fonctionnement fiable et protégeant l'appareil contre les dommages potentiels. Cette carte Click Board™ convient à diverses applications, de l'industrie à l'instrumentation, en passant par le grand public, les communications, etc.
La carte Click™ Analog MUX 4 est prise en charge par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette carte Click™ est un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
How Does The Analog MUX 4 Click Board™ Work?
The Analog MUX 4 Click Board™ is based on the TMUX1308, a general-purpose 8:1 single-ended CMOS analogue multiplexer from Texas Instruments. The TMUX1308 multiplexer allows for multiple inputs/sensors to be monitored with a single AN pin of the mikroBUS™ socket supporting bidirectional analog and digital signals ranging from 0 to 5V. It has an internal injection current control eliminating the need for external diode and resistor networks to protect the switch, keeping the input signals within the supply voltage. The internal injection current control circuitry allows signals on disabled signal paths to exceed the supply voltage without affecting the signal of the enabled signal path.
Alongside internal injection current control, the TMUX1308 also has another protection feature, called Break-before-make delay, which represents a safety feature preventing two inputs from connecting when the device is switching. The output first breaks from the ON-state switch before connecting with the next ON-state switch. This time delay between the break and the make is known as the break-before-make delay.
The Analog MUX 4 Click Board™ communicates with MCU using several GPIO pins. It can be enabled or disabled through the EN pin routed to the CS pin of the mikroBUS™ socket; hence, offering a switch operation to turn ON/OFF power delivery to the TMUX1308. It also provides three address signals, labelled from A0 to A2 and routed to the PWM, INT, and RST pins of the mikroBUS™ socket, that control the switch configuration and determine the activation of the desired analog input channel based on their setup. Also, each analog input has a jumper for its hardware activation or deactivation and capacitors for additional filtering of the input channels.
The Analog MUX 4 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | Measurements |
Applications | Can be used for various applications, from industrial to instrumentation, consumer, communications, and more |
On-board modules | TMUX1308 - general-purpose 8:1 single-ended CMOS analog multiplexer from Texas Instruments |
Key Features | Injection current control, back-powering protection, bidirectional signal path, Break-Before-Make switching, VCC range signal handling, TTL/CMOS-logic compatible, pin-controllable, and more |
Interface | Analog,GPIO |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the Analog MUX 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Analog Signal | AN | 1 | AN | PWM | 16 | A0 | Switch Control 0 |
Switch Control 2 | A2 | 2 | RST | INT | 15 | A1 | Switch Control 1 |
Enable | EN | 3 | CS | RX | 14 | NC | |
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
ANALOG MUX 4 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Analog Input Range | 0 | - | 5 | V |
ON-State Resistance | - | - | 195 | Ω |
Operating Temperature Range | -40 | 25 | +120 | °C |
Software Support
We provide a library for the Analog MUX 4 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 The package Manager (recommended), downloaded from our LibStock™ or found on the MikroE Github account.
Library Description
This library contains an API for the Analog MUX 4 Click Board™ driver.
Key functions
-
analogmux4_enable_input
This function enables analogue inputs. -
analogmux4_read_an_pin_voltage
This function reads the results of AD conversion of the AN pin and converts them to a proportional voltage level. -
analogmux4_set_input_channel
This function sets the analogue input channel.
Example Description
This example demonstrates the use of the Analog MUX 4 Click Board™.
void application_task ( void ) { float analogmux4_an_voltage = 0; for ( uint8_t cnt = ANALOGMUX4_CHANNEL_0; cnt <= ANALOGMUX4_CHANNEL_7; cnt++ ) { analogmux4_set_input_channel ( &analogmux4, cnt ); if ( ADC_ERROR != analogmux4_read_an_pin_voltage ( &analogmux4, &analogmux4_an_voltage ) ) { log_printf( &logger, " AN%u voltage : %.3f Vrn", ( uint16_t ) cnt, analogmux4_an_voltage ); } } log_printf( &logger, "rn" ); Delay_ms( 1000 ); }
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 the MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Flash10
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 MikroElektronika compilers.
MIKROSDK
The Analog MUX 4 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.
Software Support
We provide a library for the Analog MUX 4 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 The package Manager (recommended), downloaded from our LibStock™ or found on the MikroE Github account.
Library Description
This library contains an API for the Analog MUX 4 Click Board™ driver.
Key functions
-
analogmux4_enable_input
This function enables analogue inputs. -
analogmux4_read_an_pin_voltage
This function reads the results of AD conversion of the AN pin and converts them to a proportional voltage level. -
analogmux4_set_input_channel
This function sets the analogue input channel.
Example Description
This example demonstrates the use of the Analog MUX 4 Click Board™.
void application_task ( void ) { float analogmux4_an_voltage = 0; for ( uint8_t cnt = ANALOGMUX4_CHANNEL_0; cnt <= ANALOGMUX4_CHANNEL_7; cnt++ ) { analogmux4_set_input_channel ( &analogmux4, cnt ); if ( ADC_ERROR != analogmux4_read_an_pin_voltage ( &analogmux4, &analogmux4_an_voltage ) ) { log_printf( &logger, " AN%u voltage : %.3f Vrn", ( uint16_t ) cnt, analogmux4_an_voltage ); } } log_printf( &logger, "rn" ); Delay_ms( 1000 ); }
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 the MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Flash10
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 MikroElektronika compilers.
MIKROSDK
The Analog MUX 4 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.
Carte Click MUX 4 analogique
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.