Getting started with the evaluation kit for automotive rear lights with pattern
animations based on ALED1262ZT and STM8AF6266
Introduction
The STEV
bridge.
It has been designed to test and evaluate ALED1262ZT performance.
The STEVAL-LLL002M1 is a LED array driver system evaluation board with local dimming and diagnostics for automotive
applications. It is based on the ALED1262ZT 12-channel LED driver controlled through the STM8AF6266 microcontroller I²C
interface.
A 48 red LED matrix is driven by four ALED1262ZT LED drivers.
The on-board A7986A DC-DC converter, accepting standard adapter input voltages with reverse polarity protection, provides
the voltages and power for the board operation.
The STEVAL-LLL002V1 evaluation kit jumpers simulate LED open circuit faults and the 4-pin SWIM connector is used to debug
and develop the STM8AF6266 microcontroller firmware.
The evaluation kit can operate in bus driven mode (BDM), standalone mode (SAM) and GUI mode.
In the bus driven mode, the board is controlled via on-board push buttons and potentiometers. Commands to the ALED1262ZT
driver are sent by STM8A microcontroller over I²C bus.
In the standalone mode, the STEVAL-LLL002V1 evaluation kit is not controlled by the MCU and you can select two possible
output configurations using OTP ½ SPDT switch (SW2).
In the GUI mode, the board is connected to a PC via USB-UART bridge and you can observe and control various features of the
driver through the graphical user interface.
AL-LLL002V1 evaluation kit consists of the STEVAL-LLL002M1 main board and the STEVAL-LLL002D1 USB-UART
Figure 1. STEVAL-LLL002V1 evaluation kit
UM2381 - Rev 1 - June 2019
For further information contact your local STMicroelectronics sales of
fice.
www.st.com
Page 2
1Hardware description
1.1STEVAL-LLL002M1 main board
The STEVAL-LLL002M1 evaluation board includes four ALED1262ZT LED drivers, an 8-bit automotive grade
MCU, a SWIM connector to program the MCU, 48 red LEDs, push buttons to switch modes, and potentiometers
to control brightness and speed.
The on-board A7986A DC-DC converter
voltages and power for the board operation.
, accepting standard adapter input voltages (12 – 24 V), provides the
UM2381
Hardware description
Figure 2. STEV
Figure 3. STEVAL-LLL002V1M main board (bottom side)
AL-LLL002V1M main board (top side)
1.1.1Chip select (CS) one time programming (OTP)
The STEVAL-LLL002M1 evaluation board has four ALED1262ZT drivers.
The ALED1262ZT LED driver is provided with five one time programming (OTP) memory cells that can be
programmed to provide a permanent address to the device, creating a total of 32 driver addresses, that is, at a
given time, a maximum of 32 drivers can be connected to the to the MCU via I²C bus.
On-board J2 is used to select the ALED1262ZT device for OTP. The LED driver is given a particular command
over I²C providing 18 V (±1 V) to be applied at the corresponding chip select (CS) pin.
Note:For more information please refer to the ALED1262ZT datasheet on www.st.com.
UM2381
1.2STEV
The STEV
PC and microcontroller.
AL-LLL002D1 USB-UART bridge
AL-LLL002V1 evaluation kit is also equipped with a USB-UAR
Figure 4. STEVAL-LLL002V1D (top side)
Figure 5. STEVAL-LLL002V1D (bottom side)
T bridge for the communication between
UM2381 - Rev 1
page 3/29
Page 4
1.3Evaluation kit block diagram
UM2381
Evaluation kit block diagram
Figure 6. STEV
AL-LLL002V1 block diagram
1.4STEVAL-LLL002V1 key devices
The STEV
•A7986A: a high efficiency step down 250 kHz (programmable up to 1 MHz) switching regulator with max. 3 A
•LM2931: an AEC-Q100 qualified 100 mA LDO regulator designed for automotive environments.
•STM8AF6266: an automotive grade 8-bit microcontroller, featuring 10 MIPS at 16 MHz CPU, advance
•L78L33ACUTR: a three terminal positive regulator. It gives output current up to 100 mA and output voltage
•Diode bridge: at the power supply input ensures board operation regardless of the input voltage polarity.
•48 red SMD LEDs mounted in a 12x4 matrix to display different patterns. The minimum luminous intensity of
AL-LLL002V1 main devices are:
DC output current. Input voltage varies from 4.5 to 38 V and also depends on the required output. It supports
low dropout operation along with zero load current operation. Overcurrent and thermal protection are
provided for safe board operation. It powers the red LEDs.
of 3.3 V. The L78L series uses as Zener diode/resistor combination replacement, resulting in a lower
quiescent current and lower noise.
a LED is around 3.55 cd with wide viewing angle of 120º and wavelength of 623 nm.
UM2381 - Rev 1
page 4/29
Page 5
2STEVAL-LLL002V1 connections
2.1Power supply
UM2381
STEVAL-LLL002V1 connections
The STEV
The power source must deliver sufficient current depending on the input voltage for proper functioning.
Reverse voltage protection and input surge protection are provided to avoid any damage.
AL-LLL002V1 evaluation kit is powered by standard 12–24 V DC power adapter.
2.2Microcontroller SWIM
The STEVAL-LLL002V1M board is equipped with a standard 4-pin SWIM connector allowing to debug and
develop the STM8AF6266 microcontroller firmware.
2.3Jumpers for LED open-circuit simulation
LED errors can be simulated by using J5 to J8 jumpers.
Removing a jumper on J5, J6, J7 and J8 causes LED open-circuit error in D48, D49, D50 and D51 respectively
These simulated errors can be detected in error detection mode: the defective LED is signaled by lighting the
adjacent LED on the board in standalone mode, and by flashing the corresponding light in the LED map in GUI
mode.
2.4USB-UART bridge
The STEV
STM8AF6266 and your PC.
It communicates with the main board via UART interface and with PC via USB.
AL-LLL002V1 communicates with the GUI via the USB-UART board, which acts as the bridge between
.
UM2381 - Rev 1
page 5/29
Page 6
3Operation modes
3.1Bus driven mode
UM2381
Operation modes
In this mode, STEV
Commands to the ALED1262ZT LED driver are sent by STM8AF6266 microcontroller through I²C interface.
After DC input is applied for the first time, the board goes into free running mode and displays all patterns and
modes, one after another.
You can exit from this free running mode using the BCK or FWD button.
AL-LLL002V1 is controlled via on-board push buttons and potentiometers.
3.1.1Features
In bus driven mode, the board features:
•
Pre-configured patterns (with adjustable brightness/speed) as rolling text, wave effect, super car scanning,
dot sequence, etc.
•On-board push buttons to switch between the demos
•Potentiometers as sliders to control the pattern speed or brightness
•Open circuit error simulation using open circuit jumpers (J5-J8)
•Jumper to switch from bus driven mode to standalone mode (J4)
•OTP ½ switch (SW2) to choose between two different predefined pattern in SAM mode
3.1.2Normal mode
The STEV
In this mode, the MCU sends data over I²C bus to the ALED1262ZT LED driver.
Note:To operate in BDM mode, jumper J4 should be placed.
The bus driven mode main controls are:
•Push-buttons for transition among different demos:
•Potentiometers:
•Open circuit error detection to detect LED failure
Note: On powering up, the evaluation board goes into free running mode displaying pattern changes after a fixed
interval of time. You can exit from this mode by pressing FWD or BCK push buttons.
The evaluation board displays different patterns in BDM:
1.Dot Sequence Rail
2.Back Light (all LEDs on)
3.Super Car Scanning Effect - I
4.Alphanumeric Flashing
5.Super Car Scanning Effect - II
6.Alphanumeric Rolling
7.Animation – 3D
8.Horizontal Wave
9.Pattern – I
10. Vertical Wave
11. Diagonal Wave
AL-LLL002V1 evaluation kit enters the bus driven mode (BDM) when powered.
–BCK button: to switch on the previous pattern or mode
–FWD button: to switch on the next pattern or mode
–Brightness and speed control: on rotating potentiometer clockwise/anticlockwise, brightness/speed
among transitions increases/decreases.
UM2381 - Rev 1
page 6/29
Page 7
12. Pattern – II
13.
Error Detection
Note:In Alphanumeric Flashing Pattern, you can control the speed only.
In Super Car Scanning Effect – I, Super Car Scanning Effect – II, Animation – 3D, Pattern – I and Pattern – II
you cannot control brightness as the ALED1262ZT PWM (7-bit individual channel control) feature is enabled.
3.1.3Error detection
ALED1262ZT driver is capable of detecting error for open circuit.
The STEV
detection mode using FWD or BCK buttons.
Removing jumpers J5, J6, J7 and J8 causes LED open circuit error in D48, D49, D50 and D51 respectively.
The defective LED is signaled by switching on the adjacent LED.
AL-LLL002V1 evaluation kit provides the option to simulate and detect errors by entering the error
Table 2. STEVAL-LLL002V1 error detection mode
JumperError in LEDShown on LED
J5D48D44
J6D49D45
J7D50D46
J8D51D47
UM2381
Bus driven mode
Figure 7. STEV
AL-LLL002V1 evaluation kit: error detection mode (J6 and J7 removed)
UM2381 - Rev 1
page 7/29
Page 8
3.2Standalone mode (SAM)
The STEV
is disconnecting the ALED1262ZT LED driver).
In standalone mode configuration, the device is not controlled by the MCU or a controller board.
You can select two possible output configurations using OTP ½ SPDT switch (SW2).
AL-LLL002V1 enters the SAM mode when the driver supply falls belows 3 V (removing jumper J4 that
The GUI identifies the board and automatically establishes a connection (COM3 is shown as an
example in the picture above), otherwise it prompts the user to select the port to which the board is
connected.
Step 5.If the GUI does not automatically identify the board, choose the port manually and press [Select].
When the GUI is able to interact with the board, a "Port is open” message is shown.
UM2381 - Rev 1
page 9/29
Page 10
3.3.3Modes
3.3.3.1Basic mode
The STSW
•Replication of on-board control buttons to select different modes from the GUI
•Buttons to enable/disable on-board push buttons
•Open circuit error detection with different frequencies
•Adjustable global brightness for all the channels
•Control registers write/read (BDM_Conf 1)
•Various flag status reading (BDM_status)
The basic mode has five sections to address different requirements:
•Button control
•Error detection
•Brightness control for all channels
•Configuration registers
•Individual channel ON/OFF control
UM2381
GUI mode
-LLL002GUI basic mode mainly features:
Figure 11. STSW-LLL002GUI basic mode
3.3.3.1.1Button control
The control buttons replicate the on-board BCK and FWD buttons and are used to toggle among preconfigured
demos.
The on-board buttons can be enabled or disabled by pressing
3.3.3.1.2Error detection
The error detection section demonstrates open circuit error (if any) present in the 12x4 LED matrix.
Error detection frequency can be selected from three options:
•
No loop - error detection is performed just once and the results are displayed till any other button is pressed
•1 second loop - error detection is performed every 1 s by the drivers and the results are updated in real-time
•2 second loop - same as 1 second loop but error detection is performed every 2 s
3.3.3.1.3Brightness control for all channels
Brightness of all the channels is simultaneously changed by varying brightness control for all channel slider.
Brightness can be varied in 256 steps (5% to 100%).
3.3.3.1.4Configuration registers
The configuration register section represents two registers for the ALED1262ZT LED driver:
UM2381 - Rev 1
[Enable] or [Disable] respectively.
page 10/29
Page 11
UM2381
GUI mode
•BDM_Conf 1: is common for all ALED1262ZT LED drivers. Y
registers.
•BDM_status: gives the status information for a particular LED driver selected from the drop down bar.
For further details, refer to the ALED1262ZT datasheet on www.st.com.
3.3.3.2Advanced mode
The advanced mode section displays the individual channel brightness control (0% to 100%).
The brightness of each channel can be adjusted through a 7 bit PWM grayscale brightness control according to
local dimming register PWM_gain_x.
Y
ou can change the brightness using the scroll bars put in a 12x4 pattern.
ou can set or reset different bits of the
Figure 12. ALED1262ZT configuration register
Figure 13. STSW-LLL002GUI advanced mode
3.3.3.3Frame programming mode
This mode features:
•
Frame programming to display any arbitrary pattern up to 20 frames with variable transition speed
•Four preconfigured patterns for quick visualization of frame programming mode on the STEVAL-LLL002V1
evaluation kit
Frame programming displays user defined patterns in round robin sequence on the evaluation board. This mode
contains a set of 20 (maximum) independent frames and each frame represents one instance of the board LEDs.
The frames can be designed by the user or you can select preconfigured frame patterns using [Presets].
Transition time among frames in milliseconds is set by the value in the [Transition Time] text box.
UM2381 - Rev 1
page 11/29
Page 12
UM2381
GUI mode
Figure 14. STSW
-LLL002GUI frame programming mode
3.3.3.3.1Frame design
A frame on the STSW-LLL002GUI represents LEDs on the evaluation board in a similar fashion. There are a
maximum of 20 frames (00 to 19) to be set using
[Set Frame Count]. To design the frames and demonstrate
them on the evaluation board follow the procedure below.
Step 1.Click on the LEDs to configure them.
Step 2.Select the desired brightness using [Frame Brightness].
Step 3.Press the [Play] button for the STSW-LLL002GUI sequence of frames to visualize the whole pattern to
be displayed on the board.
Step 4.Set the required transition time between the frames and press [Program].
Note:Transition time has to be set between 10 to 10000 milliseconds. If a wrong value in entered in the box, the color
of the text box changes to red and no command is sent to the board.
3.3.3.3.2Using preconfigured frame patterns
In frame programming mode, four preconfigured frame patterns called Presets are provided.
Preset1, Preset2, Preset3 and Preset4 can be loaded by clicking on the corresponding preset button.
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
s terms and conditions of sale in place at the time of order acknowledgement.