AN2415 Application note

Similar documents
STEVAL-ILL015V1. High brightness RGB LED array with LED error detection based on the STP24DP05 and STM32. Features. Description

STEVAL-IHM043V1. 6-step BLDC sensorless driver board based on the STM32F051 and L6234. Features. Description

Multi-channel LED driver with integrated boost controller for medium, large LCD panel backlight based on LED7708 and STM32F103C6T6A

STEVAL-ILL029V1. Front panel demonstration board based on the STLED325 and STM8S. Features. Description

STEVAL-ICB004V1. Advanced resistive touchscreen controller demonstration board based on the STMPE811. Features. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ILL037V1. Demonstration board for the HVLED805 IC for LED power supply. Features. Description

STEVAL-ILH004V1. 70 W electronic ballast for metal halide lamp (HID) based on the L6382D5 and ST7FLITE49K2. Features. Description

STEVAL-IME002V1. Multi-lead electrocardiogram (ECG) and body impedance demonstration board. Features. Description

STEVAL-SPBT2ATV2. USB Dongle for the Bluetooth class 2 SPBT2532C2.AT module. Features. Description

Obsolete Product(s) - Obsolete Product(s)

Obsolete Product(s) - Obsolete Product(s)

ROBOT-M24LR16E-A. Evaluation board for the M24LR16E-R dual interface EEPROM. Features. Description

Obsolete Product(s) - Obsolete Product(s)

UM0534 User manual. STEVAL-MKI014V1 demonstration kit for the LIS344ALH. Introduction

STEVAL-CCH002V2. HDMI and video switches demonstration board. Features. Description

STEVAL-CCM003V1. Graphic panel with ZigBee features based on the STM32 and SPZBE260 module. Features. Description

STEVAL-ILH005V W electronic ballast for HID lamps based on the L6562A and ST7LITE39F2. Features. Description

IEC compliant smart meter system for AMI applications based on STM32, ST7570 PLM, and STPMC1/STPMS1 chipset

L7208. Portable consumer electronics spindle and VCM motor controller. General features. Spindle driver. Description. VCM driver.

STEVAL-ISB008V1. Standalone USB Li-Ion battery charger demonstration board based on the STw4102 and STM32F103C6. Features.

STEVAL-IKR001V7D. Sub Ghz transceiver daughterboard with power amplifier based on the SPIRIT1. Features. Description

March 2012 Doc ID Rev 1 1/4

EVALPM8803-FWD. EVALPM8803-FWD: IEEE802.3at compliant demonstration kit with synchronous active clamp forward PoE converter. Features.

STEVAL-ILL043V1. High end, 75 W high power factor flyback LED driver based on the L6562A with two dimmable strings. Features.

STEVAL-ILL019V1. 32 W offline RGGB LED driver with individual LED channel brightness regulation. Features. Description

STEVAL-CCA043V1. 25 Watt mono BTL class-d audio amplifier demonstration board based on the TDA7491MV. Features. Description

STEVAL-IHM021V W, 3-phase inverter based on the L6390 and UltraFASTmesh MOSFET for speed FOC of 3-phase PMSM motor drives. Features.

STEVAL-IFN003V1. PMSM FOC motor driver based on the L6230 and STM32F103. Features. Description

Obsolete Product(s) - Obsolete Product(s)

Order code Package Connection. SPDC400FC12M0.60 Open frame Comb. October 2007 Rev 1 1/9

AN3075 Application note

STEVAL-IHM024V W 3-phase inverter using the L6390 and STGDL6NC60DI for vector control. Features. Applications. Description

Very low-noise, high-efficiency DC-DC conversion circuit

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ISA050V1. Monolithic VR for chipset and DDR2/3 demonstration board based on the PM6641. Features. Application. Description

Mechanical specification. October 2010 Doc ID Rev 1 1/10

GM60028H. DisplayPort transmitter. Features. Applications

IMPORTANT NOTICE. Company name - STMicroelectronics NV is replaced with ST-NXP Wireless.

STEVAL-TDR020V1. Portable UHF 2-way radio demonstration board based on the PD84006L-E. Features. Description

STEVAL-ISA121V1. Wide range single-output demonstration board based on the VIPER37LE. Features. Description

PRODUCT INFORMATION LETTER

Obsolete Product(s) - Obsolete Product(s) UM0223 User manual STEVAL-IFS001V1 evaluation kit with MEMS Introduction

STEVAL-TDR021V1. Demonstration board using the PD84008L-E for 900 MHz 2-way radio. Features. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-TDR007V1. 3 stage RF power amplifier demonstration board using: PD57002-E, PD57018-E, 2 x PD57060-E. Features. Description

AN2421 Application note

STEVAL-IHM008V1. BLDC & AC motor control Power board SEMITOP 2 1kW. Features. Applications

GM68020H. DisplayPort receiver. Features. Applications

STEVAL-MKI126V2. MEMS microphone system evaluation board based on the STA321MPL and MP34DB01. Description. Features

GM69010H DisplayPort, HDMI, and component input receiver Features Applications

STEVAL-IHM025V1. 1 kw 3-phase motor control demonstration board featuring the IGBT SLLIMM STGIPL14K60. Features. Description

STEVAL-MKI126V3. STSmartVoice demonstration board based on MP34DT01. Description. Features

M24LR04E-R, M24LR16E-R, M24LR64E-R Errata sheet

2 x 58 W high frequency ballast for T8 fluorescent tubes based on L6562A, L6569, and STL11NM60N in PowerFlat HV package

EVAL-RHF1009A. EVAL-RHF1009A product evaluation board. Description. Features

EVAL6474PD. Stepper motor driver mounting the L6474 in a high power PowerSO package. Features. Description

VT5365. Single-chip optical mouse sensor for wireless applications. Features. Applications. Technical specifications. Description.

Main components Narrow-band OFDM power line networking PRIME compliant system-on-chip

TN0885 Technical note

Obsolete Product(s) - Obsolete Product(s)

IMPORTANT NOTICE. Company name - STMicroelectronics NV is replaced with ST-NXP Wireless.

PRODUCT TERMINATION NOTIFICATION

STW High voltage fast-switching NPN power transistor. Features. Application. Description

Obsolete Product(s) - Obsolete Product(s)

STEVAL-ILL031V1. Digital constant-current controller for LED driving based on the STM8S208x. Features. Description

EVLHVLED815W8CV. 8 W - high power factor - constant voltage regulation based on HVLED815PF. Features. Description

EVAL6208Q. Stepper motor driver mounting the L6208Q. Features. Description

BAL-NRF01D3. 50 ohm balun transformer for 2G45 ISM matched Nordic s chipset: nrf24le1 QFN32, nrf24ap2-1ch and nrf24ap2-8ch. Features.

STEVAL-IHT005V2. Demonstration board with full 3.3 V ACS/Triac control using the STM32F100. Description. Features

STV6110A. 8PSK/QPSK low-power 3.3 V satellite tuner IC. Description. Features

STV6417 R/C/Pr, G/C, B/Pb Switches + Filter. C, Y, CVBS/Y Switches + Filter. Audio Switches Volume Control AUDIO R SLOW BLANK

SPC564A80CAL176 SPC564A70CAL176

STEVAL-IHM038V1. BLDC ceiling fan controller based on the STM32 and SLLIMM-nano. Description. Features

M24SR-DISCOVERY. Discovery kit for the M24SR series Dynamic NFC/RFID tag. Features

Fully integrated stepper motor driver mounting the L6470 in a high power PowerSo package. May 2012 Doc ID Rev 2 1/12

Main components Proximity and ambient light sensing (ALS) module

Description. Table 1. Device summary. Order codes Temperature range [ C] Package Packing. LPS2HBTR -30 to +105 HLGA - 10L

STM32-PRIMER/LAB. Raisonance EvoPrimer-LAB to monitor STM32 applications and standalone STM32 Flash programming. Features

ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32

EVLHVLED815W10F. 10 W wide-range high power factor isolated LED driver based on HVLED815PF. Description. Features

STEVAL-IHM034V2. Dual motor control and PFC evaluation board featuring the STM32F103 and STGIPS20C60. Features

Order code Marking Package Packing. STA5630TR STA5630 VFQFPN32 Tape and reel STA5630ATR (1) September 2013 Doc ID Rev 4 1/8

STDP2650 Advanced DisplayPort to HDMI converter Features Applications

PRODUCT/PROCESS CHANGE NOTIFICATION

FLI30x02 Single-chip analog TV processor Features Application

ST10F273M Errata sheet

PRODUCT INFORMATION LETTER

STEVAL-IHM045V1. 3-phase high voltage inverter power board for FOC based on the STGIPN3H60A (SLLIMM -nano) Description. Features

STi5105 High-performance advanced SD decoder for set-top box Features

EVLHVLED815W10A. 10 W wide range non-isolated high power factor LED driver using HVLED815PF. Description. Features

STDP4020. DisplayPort receiver. Features. Applications

STANC0. Stereo HD-PA digitally programmable active noise cancelling audio engine. Features. System. Input and output.

STV output dot-matrix display driver. Features. Description

USBLC6-4SC6Y. Automotive very low capacitance ESD protection. Features. Applications. Description. Benefits. Complies with the following standards

PRODUCT/PROCESS CHANGE NOTIFICATION

USBLC6-2SC6Y. Automotive very low capacitance ESD protection. Features. Applications. Description. Benefits. Complies with the following standards

Order code Package Packing

STA3005. Dual-IF AM/FM digital radio receiver. Feature summary. Order codes

Main components Proximity and ambient light sensing (ALS) module

Transcription:

AN Application note Using the output detection feature of the high-brightness LED driver STP0CDC evaluation board Introduction Note: This document describes how to implement a complete solution for driving a high-brightness LED array. Based on STP0CDC drivers and controlled by an STFLITEx microcontroller, there are two versions of the evaluation board: STEVAL-ILL00V using OSRAM LEDs STEVAL-ILL00V using Toshiba LEDs The STP0CDC LED driver is replaced by the new, higher performing STP0DP0 LED driver. The two available versions of the evaluation board with the STP0DP0 replace the STEVAL-ILL00V and the STEVAL-ILL00V, and are described in application note AN. The new boards available are: STEVAL-ILL00V using OSRAM LEDs STEVAL-ILL00V using VISHAY LEDs Forty high-brightness LEDs are arranged on the board in a x matrix. The matrix is driven by five -channel STP0CDC drivers. The main features of the evaluation board are: Brightness and blinking regulation Animated text Error detection on output GUI (graphic user interface) DC-DC converter The innovative feature of the STP0CDC is the full output error detection function which enables output status checking without invasive testing (via software only). Figure. STEVAL-ILL00Vx evaluation board For more information about other boards based on the STPxxC/L driver family, refer to application note AN which provides details concerning the basic features of the driver family, the microcontroller interface and chip power dissipation. Refer to user manual UM0 for information about how to get started using the evaluation boards. August 00 Rev / www.st.com

Contents AN Contents Overview.................................................. Operation mode switching..................................... Normal mode................................................ Error detection mode......................................... Firmware implementation...................................... Timing diagram............................................... Option byte.................................................. GUI features................................................ Revision history........................................... 0 /

AN List of figures List of figures Figure. STEVAL-ILL00Vx evaluation board.......................................... Figure. STEVAL-ILL00Vx evaluation board block diagram.............................. Figure. Error Detection mode...................................................... Figure. Normal mode............................................................ Figure. Timing diagram........................................................... Figure. MCU option bytes......................................................... Figure. LED matrix board application diagram......................................... /

Overview AN Overview The STEVAL-ILL00Vx evaluation board can be powered with voltages from V up to V. The SMPS DC-DC converter block is based on the L0D step-down switching regulator and the DC-DC block is based on the LE0ABD voltage regulator. The power topology makes it possible to power the board using a laptop power supply. Figure shows the block diagram of the evaluation board. Figure. STEVAL-ILL00Vx evaluation board block diagram Power Supply DC/DC SMPS DC/DC LED Matrix Control Panel -bit µc SPI LED Driver SPI. RS Driver The brain of the board is the -bit STFLITE microcontroller. It receives inputs from the control panel, sends and receives data from the LED drivers through the serial peripheral interface (SPI) and enables PC communication through the serial communications interface (SCI). The control panel consists of switches, potentiometers and jumpers. Switches are used to reset the microcontroller and to enter Detection mode. Potentiometers change the brightness and text speed. Jumpers are used to simulate errors (open and short circuit) on the LED matrix. A LED matrix consists of 0 LEDs arranged in a x matrix. A dedicated PC GUI displays the status of the LEDS. /

AN Operation mode switching Operation mode switching Note: To enter Error Detection or Normal mode, the drivers must receive a particular sequence on the OE and LE pins. When a one-clock-wide short pulse 0 is sent on the OE pin, the drivers enter the switching phase. If the LE pin is sampled as high voltage at the th rising edge of CLK, the drivers switch to Error Detection mode (Figure ). Otherwise, they switch to Normal mode (Figure ). In the firmware, with SW pressure only the drivers enter Error Detection mode, and after an error detection check, they re-enter Normal mode. Figure. Error Detection mode Figure. Normal mode. Normal mode In Normal mode, the serial data is transferred from the microcontroller to the drivers via the SPI. The serial data from microcontroller is sent to the drivers via the SDI pin, undergoes a shift in the Shift Register, and exits via the SDO pin. The LE pin can latch the serial data in the Shift Register to the output latch. The OE pin enables the output driver sink current. Current is modulated by the potentiometer, which changes the PWM duty cycle on the OE pin (PWM frequency is set at Hz). /

Firmware implementation AN Note: At start-up, the evaluation board works in Normal mode.. Error detection mode After entering Error Detection mode as shown in Figure, it is recommended to send all data to the drivers as. As long as the OE pin is high, the serial data can still be shifted to the Shift Register via the SDI pin, and out via the SDO pin. The LE pin can also send the data in the Shift Register to the output latch. When the state of the OE pin is pulled down to low voltage for at least µs, the drivers execute the error detection function and load the error status into the Shift Register. The error status codes saved in the Shift Register can then be shifted out via the SDO pin bit-bybit along with the clock. The SDO pin of the last driver of the chain is connected to the MISO pin of the microcontroller. Incoming data can be sent to the PC through the SCI and displayed on the GUI. For more information, refer to the timing diagram shown in Figure. Firmware implementation The purpose of this application note is to explain how to manage the error detection features of the drivers. Refer to AN for an explanation of the basic driver features.. Timing diagram At power-up, the microcontroller sends data to the drivers Shift Register via the SPI configured at 0 khz. The maximum communication frequency for this driver is MHz to satisfy high volume data transmissions. (Please refer to the device datasheet for more details). The two potentiometers are connected to ADC inputs. The analog voltage inputs are converted to a digital value. According to this digital value, it will change the PWM duty-cycle signal for brightness and data time delay for text speed. By default, the microcontroller works in Normal mode and only enters Error Detection mode when an external interrupt pin connected to SW is triggered. The related ISR disables the SPI I/O function and sends a specific sequence to the driver via the CLK, OE, and LE pins as shown in Figure. After the driver has received the specific sequence, the microcontroller enables the SPI and sends 0xFF data for each driver. The drivers have already entered Error Detection mode and the microcontroller maintains pin OE low for detecting the error status. Drivers send back the LED status to the microcontroller via the MISO pin (connected to the SDO pin). Then, the microcontroller resumes Normal mode operation, sending the specific sequence to the drivers. Figure shows each phase, switching from Error Detection to Normal modes. /

AN Firmware implementation Figure. Timing diagram Note: Note: T A must be at least µs to detect the error status. The SDO of the E driver is connected to the MISO pin of the MCU.. Option byte Figure shows the option byte settings. Figure. MCU option bytes. GUI features A dedicated graphical user interface (GUI) displays the LEDs, status on the PC. The serial parameters are: 00,, N, (baud rate, bit, parity none, bit stop). The microcontroller, /

Application diagram AN after resuming Normal mode, manages the SCI peripheral and sends data to the PC using the STABN driver interface. Appendix A Application diagram Figure. LED matrix board application diagram 0 C C 0nF 0uF 0 STlite R TDO SD0 RDI RES RES J CON INPUT VOLTAGE FROM V UP TO V K R U SDI CLK /LE Vdd R-EXT SDO /OE 0 0 STP0CDC/D U SDI CLK /LE Vdd R-EXT SDO /OE 0 0 STP0CDC/E SD0 JUMPER D D D D D D D D D D0 D D D D D D D D0 D D D D D D D0 D D D D D D D D D D D D D D D0 JP U R 0k C 0nF U SDI CLK /LE Vdd R-EXT SDO /OE 0 0 STP0CDC/A R k U LE0/SO VIN VOUT C 00nF C.uF C 0nF C0 0nF C 0nF C 0nF C+ Vdd V+ C- TOUT C+ RIN C- ROUT V- TIN TOUT TIN 0 RIN ROUT U STABN TxD RDI TDO RxD C.uF C 0uF/V L uh R 0 C 00uF/V Title Diagnostic LED Driver STEVAL-ILL00V (OSRAM LEDs) Size Document Number Rev B <Doc> STEVAL-ILL00V (TOSHIBA LEDs) <RevCode> INHIB C 00nF C0 C nf 0pF D R0 STPS0U k 0k C 0nF D SMAJA-TR R k 0 ICP J JP R k R JUMPER 0k D GREEN LED IO L0D R 0k SW SW C C C C C 00nF 00nF 00nF 00nF 00nF U SDI CLK /LE Vdd R-EXT SDO /OE 0 0 STP0CDC/B U SDI CLK /LE Vdd R-EXT SDO /OE 0 0 STP0CDC/C R k R 0 P CONNECTOR DB R k R K C + 0uF/V + /

AN Bill of materials Appendix B Bill of materials Table. Bill of materials Item Qty Reference Part Description Order code Supplier C and C. µf/0 V Electrolytic capacitor C 0 µf/ V Electrolytic capacitor C, C, C, C, C, C and C 00 nf/0 V SMD 00 C, C, C0 and C 0 nf/ V a C and C 0 nf/0 V b C 0 nf/0 V C nf/0 V SMD 00 SMD 00 SMD 0 SMD 00 C 0 µf/ V Tantal capacitor C0 0 pf/0 V SMD 00 C 0 µf/ V Electrolytic capacitor 0 C 00 µf/ V Tantal capacitor 0 D, D, D, D, D, D, D, D, D, D0, D, D, D, D, D, D, D, D, D, D0, D, D, D, D, D, D, D, D, D, D0, D, D, D, D, D, D, D, D, D and D0 LED OSRAM SMD BLUE LED LB TC-PS- or TOSHIBA LED - TLGE00 OSRAM or TOSHIBA D STPS0U Diode STPS0U STMicroelectronics D GREEN LED SMD LED 0 D SMAJA-TR Transil SMAJA-TR STMicroelectronics IO L0D DC-DC converter L0D STMicroelectronics JP and JP JUMPER Jumpers + switches J ICP Programming connector J CON Input connector /

Revision history AN Table. L µh Inductor DOP-ML Coilcraft 0 P a R and R 0 k CONNECTOR DB CAN connector - pin Potentiometers with axis b R and R 0 k SMD resistors 00 R, R, R, R and R k SMD resistors 0 R0 k SMD resistors 00 R k SMD resistors 0 R K SMD resistors 0 R 0 SMD resistors 0 R 0 SMD resistors 0 SW and SW Bill of materials (continued) Item Qty Reference Part Description Order code Supplier Push-button switch Switch U, U, U, U STP0CDC LED drivers STP0CDCTTR STMicroelectronics and U 0 U STABD RS driver STABD STMicroelectronics U LE0/SO Linear voltage regulator LE0ABD STMicroelectronics U STlite Microcontroller STFLITEFM STMicroelectronics Revision history Table. Revision history Date Revision Changes -Sept-00 Initial release. -Jan-00 Bill of materials table and LED matrix board application diagram modified. 0-Feb-00 Bill of materials table modified. 0-Aug-00 Minor text changes 0/

AN Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 00 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com /