Développez le tableau 11 clics
Développez le tableau 11 clics
Key Features
- Extenseur I2C vers GPIO, large plage d'alimentation, ports E/S tolérants 5 V, fonction de réinitialisation via interface série, port P3 configurable comme interruption, inversion de polarité, faible consommation d'énergie, etc.
- Basé sur le TCA9536 - extenseur d'E/S à usage général de Texas Instruments
- Peut être utilisé pour les applications de surveillance du système, les contrôleurs industriels, les équipements portables, etc.
- mikroBUS : interfaces d'interruption I2C et MCU
Overview
Débloquez davantage de possibilités avec Expand 11 Click Board™ : la solution d'extension d'E/S ultime"
Dans le monde technologique moderne, le fait d'avoir des ports d'entrée/sortie (E/S) limités peut entraver le bon fonctionnement de votre système. Pour résoudre ce problème, Texas Instruments a mis au point une carte complémentaire compacte appelée Expand 11 Click Board™. Cette carte est dotée d'un extenseur d'E/S multiport avec le TCA9536, offrant une solution simple et efficace pour ajouter des E/S supplémentaires à votre système.
Configuration facile avec l'interface série I2C
Chaque port de l'Expand 11 Click Board™ est facilement configurable avec une interface série I2C standard, ce qui en fait la solution idéale pour la surveillance des applications, des contrôleurs industriels et des équipements portables. L'interface I2C simplifie le processus de configuration, le rendant accessible même aux utilisateurs non techniques.
Élargissez vos options avec la fonction d'interruption
L'Expand 11 Click Board™ dispose d'un registre de fonctions spéciales supplémentaire qui permet de configurer le port P3 comme fonction d'interruption. Cette fonction vous offre davantage d'options et ouvre de nouvelles possibilités pour votre système. Avec la fonction d'interruption, vous pouvez configurer des alarmes et des notifications qui peuvent être déclenchées lorsque des conditions spécifiques sont remplies.
Facilité de développement de logiciels avec la bibliothèque compatible MikroSDK
Le développement de logiciels n'a jamais été aussi simple avec l'Expand 11 Click Board™. Il est fourni avec une bibliothèque compatible mikroSDK, ce qui facilite le développement de logiciels. Avec cette bibliothèque, vous pouvez développer et tester votre code rapidement et facilement.
Mettez à niveau votre système dès aujourd'hui
La carte Expand 11 Click Board™ est entièrement testée et prête à l'emploi avec le socket mikroBUS™. Il s'agit d'une mise à niveau simple qui fera passer votre système au niveau supérieur. Ne laissez pas les E/S limitées vous freiner - obtenez la carte Expand 11 Click Board™ dès aujourd'hui et élargissez vos possibilités.
En conclusion, l'Expand 11 Click Board™ est une solution compacte et efficace pour ajouter des E/S supplémentaires à votre système. Avec une configuration facile, une fonction d'interruption et une bibliothèque compatible mikroSDK, cette carte complémentaire vous aidera à débloquer de nouvelles possibilités et à faire passer votre système au niveau supérieur. Mettez à niveau votre système dès aujourd'hui et profitez des avantages de l'Expand 11 Click Board™.
How Does The Expand 11 Click Board™ Work?
The Expand 11 Click Board™ is based on the TCA9536, a general-purpose I/O expander from Texas Instruments. It contains four 4-bit configuration ports alongside an I2C-compatible serial interface. Any four I/Os can be configured by the host MCU as an input or output by writing to the configuration register. During the Power-On sequence, the I/Os are configured as inputs with a weak pull-up to the selected mikroBUS™ power rail. The data for each input or output is kept in the corresponding register. The polarity of the Input Port register can be inverted with the Polarity Inversion register. The TCA9536 outputs (latched) have high-current drive capability for directly driving LEDs.
This Click board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings with a maximum frequency of 1MHz. The Expand 11 Click can also select the function of one of the ports, the P3 port, between its standard I/O and interrupt function. The selection is made by positioning SMD jumpers labelled P3 SEL in an appropriate position marked as I/O or INT. In addition to the jumper setting to the proper place, this function must also be set in the special function register to disable the internal pull-up resistors and P3 override to an INT output.
The Expand 11 Click Board™ can operate with either 3.3V or 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 | Port expander |
Applications | Can be used for system monitoring applications, industrial controllers, portable equipment, and more |
On-board modules | TCA9536 - general-purpose I/O expander from Texas Instruments |
Key Features | I2C to GPIO expander, wide supply range, 5V tolerant I/O ports, reset feature via serial interface, P3 port configurable as interrupt, polarity inversion, low power consumption, and more |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the Expand 11 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 | INT | Interrupt | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
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 |
JP2 | P3 SEL | Left | P3 Port Function Selection I/O/INT: Left position I/O, Right position INT |
EXPAND 11 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Software Support
We provide a library for the Expand 11 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 Expand 11 Click Board™ driver.
Key functions
-
expand11_set_pin_direction
This function sets the direction of the selected pins. -
expand11_set_all_pins_value
This function sets the value of all output pins. -
expand11_read_port_value
This function reads the value of the port input pins.
Example Description
This example demonstrates the use of the Expand 11 Click Board™ by setting and reading the port state.
void application_task ( void )
{
static uint16_t pin_num = EXPAND11_PIN_0_MASK;
uint8_t port_value = 0;
if ( EXPAND11_OK == expand11_set_all_pins_value( &expand11, pin_num ) )
{
if ( EXPAND11_OK == expand11_read_port_value( &expand11, &port_value ) )
{
log_printf( &logger, " PORT STATUS rn" );
log_printf( &logger, " P0: %urn", ( uint16_t ) ( port_value & EXPAND11_PIN_0_MASK ) );
log_printf( &logger, " P1: %urn", ( uint16_t ) ( ( port_value & EXPAND11_PIN_1_MASK ) >> 1 ) );
log_printf( &logger, " P2: %urn", ( uint16_t ) ( ( port_value & EXPAND11_PIN_2_MASK ) >> 2 ) );
log_printf( &logger, " P3: %urnn", ( uint16_t ) ( ( port_value & EXPAND11_PIN_3_MASK ) >> 3 ) );
pin_num = ( ~pin_num ) & EXPAND11_ALL_PINS_MASK;
}
}
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 MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Expand11
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 Expand 11 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.
Software Support
We provide a library for the Expand 11 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 Expand 11 Click Board™ driver.
Key functions
-
expand11_set_pin_direction
This function sets the direction of the selected pins. -
expand11_set_all_pins_value
This function sets the value of all output pins. -
expand11_read_port_value
This function reads the value of the port input pins.
Example Description
This example demonstrates the use of the Expand 11 Click Board™ by setting and reading the port state.
void application_task ( void )
{
static uint16_t pin_num = EXPAND11_PIN_0_MASK;
uint8_t port_value = 0;
if ( EXPAND11_OK == expand11_set_all_pins_value( &expand11, pin_num ) )
{
if ( EXPAND11_OK == expand11_read_port_value( &expand11, &port_value ) )
{
log_printf( &logger, " PORT STATUS rn" );
log_printf( &logger, " P0: %urn", ( uint16_t ) ( port_value & EXPAND11_PIN_0_MASK ) );
log_printf( &logger, " P1: %urn", ( uint16_t ) ( ( port_value & EXPAND11_PIN_1_MASK ) >> 1 ) );
log_printf( &logger, " P2: %urn", ( uint16_t ) ( ( port_value & EXPAND11_PIN_2_MASK ) >> 2 ) );
log_printf( &logger, " P3: %urnn", ( uint16_t ) ( ( port_value & EXPAND11_PIN_3_MASK ) >> 3 ) );
pin_num = ( ~pin_num ) & EXPAND11_ALL_PINS_MASK;
}
}
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 MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Expand11
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 Expand 11 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.
Frequently Asked Questions
Ask a Question-
Is Expand 11 Click Board™ a tested product?
Yes, Expand 11 Click Board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket. An example application program is included to get you started.
-
Is Expand 11 Click Board™ supported by a software library?
Yes, Expand 11 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development.
-
Can port P3 be used as an interrupt feature?
Yes, port P3 can be configured as an interrupt feature in addition to its standard I/O function.
-
Expand 11 Click Board™ has 4 ports.
Each port can be configured as either a logic input or logic output by writing to the I/O configuration register bits.
-
How many ports does Expand 11 Click Board™ have?
The Expand 11 Click Board™ has 4 ports.
-
What is the TCA9536?
The TCA9536 is a general-purpose remote I/O expansion IC designed for most microcontroller families. It comes in a 4-port configuration and allows for easy addition of I/O through a standard I2C serial interface.
-
What is Expand 11 Click Board™?
Expand 11 Click Board™ is a compact add-on board that contains a multi-port I/O expander based on the TCA9536 from Texas Instruments. It allows for easy addition of I/O through a standard I2C serial interface.