LED Driver 12 Click Board™
Product Code: MIKROE-4977
How Does The LED Driver 12 Click Board™ Work? The LED Driver 12 Click Board™ as its foundation uses the PCA9532, a 16-bit I2C-configurable LED dimmer from NXP Semiconductors. The PCA9532 has two fully programmable PWM controllers used to control up to 16 LED channels, switching each of the LEDs ON and OFF independently. Each LED output, 16 LED drivers presented on two 1x8 male headers, with a maximum output current of 25mA per channel, has a programmable period ranging from 0.6Hz to 152Hz and a programmable duty cycle from 0 to 100%, which means that the LEDs can be set to blink steadily and visibly, or dimmed. Any bits not used for controlling the LED channels can be used for General Purpose parallel Input/Output (GPIO) expansion, providing a simple solution when additional I/O is needed for some power switches, sensors, push-buttons, alarm monitoring, fans, or other applications. The LED Driver 12 Click Board™ communicates with MCU using the standard I2C 2-Wire interface that supports Standard-Mode (100 kHz) and Fast-Mode (400 kHz) operation.
The PCA9532 has a 7-bit slave address with the first five MSBs fixed to 1100. The address pins A0, A1, and A2, are programmed by the user and determine the value of the last three LSBs of the slave address, which can be selected by onboard SMD jumpers labelled as ADDR SEL allowing selection of the slave address LSBs.
Alongside the internal Power-On Reset (POR) function, this board also has an active-low reset signal routed on the RST pin of the mikroBUS™ socket used to recover from a bus-fault condition. When this signal is asserted low, the PCA9532 resets its registers alongside with I2C state machine and deselects all channels.
The LED Driver 12 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
LED Drivers
Applications
The LED Driver 12 Click Board™ can be used for color mixing and backlight application for amusement products, LED status signalization, home automation projects, and many more
On-board modules
PCA9532 - 16-bit I2C-configurable LED dimmer from NXP Semiconductors
Key Features
Low power consumption, 16 channels, ON/OFF LED channels control, two selectable fully programmable blink rates, supports hot insertion, drive LEDs to 25mA, and more
Interface
I2C
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 LED Driver 12 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
Reset
RST
2
RST
INT
15
NC
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-JP3
ADDR SEL
-
I2C Address Selection 1/0: Left position 1, Right position 0
JP4
VCC SEL
-
Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V
J1-J2
0-15
-
LED Driver Channels
LED DRIVER 12 CLICK
Visit the Debug Store website for more information on LED Driver 12 Click Board™