Expand 5 Click Board™
Product Code: MIKROE-4186
How Does The Expand 5 Click Board™ Work? EXPAND 5 Click Board™ uses the TCA6424A IC, low-voltage 24-bit I2C, and SMBus I/O expander from Texas Instruments. This 24-bit I/O expander for the two-line bidirectional bus is designed to provide general-purpose remote I/O expansion for most microcontroller families via the 400-kHz fast I2C bus. This Click Board™ features on-board I2C address jumpers, pull-up resistors, power supply bypass capacitor, and power LED. It operates over a flexible power supply voltage range of 1.65V to 5.5V, which makes it suitable for 3.3V and 5V microcontrollers. At power-on, the I/O pins are configured as inputs. However, the microcontroller can enable the I/Os as either inputs or outputs by writing to the I/O configuration bits. The data for each input or output is kept in the corresponding input or output register. The polarity of the Input Port register can be inverted with the Polarity Inversion register. The microcontroller can reset the TCA6424A in the event of a timeout or other improper operation by asserting a low in the RESET input.
The power-on reset puts the registers in their default state and initializes the I2C interface. The RESET pin causes the same reset/initialization to occur without depowering the part. This Click Board™ also has an open-drain interrupt (INT) output that is activated when any input state differs from its corresponding Input Port register state and is used to indicate to the microcontroller that an input state has changed. By sending an interrupt signal on this line, the remote I/O can inform the microcontroller if there is incoming data on its ports without having to communicate via the I2C bus. Thus, the TCA6424A can remain a simple slave device.
The TCA6424A communicates with MCU using the standard I2C 2-wire interface. The TCA6424A can respond to one of two 7-bit I2C Bus Slave addresses. The first 6 bits (MSBs) have been factory programmed to 010001. The address pin, ADDR (Pin 26) is programmed by the user and determines the LSB of the slave address and it can be selected by onboard SMD jumper labelled as ADDR SEL allowing selection of the slave address LSB. The last bit of the slave address defines the operation (read or write) to be performed. A high (1) selects a read operation, while a low (0) selects a write operation.
This Click Board™ can be supplied and interfaced with both 3.3V and 5V without the need for any external components. The onboard SMD jumper labelled as VCC SEL allows voltage selection for interfacing with both 3.3V and 5V microcontrollers. More information about the TCA6424A can be found in the attached datasheet. However, this Click Board™ comes equipped with a library that contains easy to use functions and a usage example that may be used as a reference for the development.
SPECIFICATIONS
Type
Port expander
Applications
Can be used to provide general-purpose remote I/O expansion for most microcontroller families via the I2C serial interface.
On-board modules
TCA6424A
Key Features
24-bit, 400-kHz I2C port expander, wide voltage range, high-current sink outputs
Interface
GPIO,I2C
Compatibility
mikroBUS
Click Board™ size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
PINOUT DIAGRAM
Notes
Pin
Pin
Notes
NC
1
AN
PWM
16
NC
Reset
RST
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
Visit the Debug Store website for more information on Expand 5 Click Board™