About ST
Products
Applications
Support
Buy
News & Events
ST Worldwide
Contact Us
Login
Application Notes
|
STEVAL-IHI001V1 demonstration board: washing machine user interface based on the ST7LITE49M and STLED316S
Application Note
Format:
(221 kb)
or
(11 kb)
Last Updated: 20/06/2008
Pages: 10
Related Data Briefs
Demonstration board for washing machine user interface based on the ST7LITE49M and STLED316S
Front panel LED controller and driver evaluation board based on the STLED316S
Front panel demonstration board based on the STLED316S
Serial-Interfaced 6-Digit LED controller with key scan
Related Datasheets
8-bit MCU with single voltage Flash memory, data EEPROM, ADC, 8/12-bit timers, and I²C interface
Serial-interfaced 6-digit LED controller with keyscan
Xpander Logic™ with 12-channel touchkey
Raw Ascii Text
- (
Hide
)
(Unformatted textual content of the document used by search engines)
AN2786 Application note
STEVAL-IHI001V1 demonstration board: washing machine user interface based on the ST7LITE49M and STLED316S
Introduction
The STEVAL-IHI001V1 is a demonstration board designed to simulate the user interface of a modern washing machine. The board is based on the low-cost 8-bit ST7LITE49M microcontroller equipped with an I²C bus interface, and the STLED316S serial interfaced 6-digit LED controller with key-scan. The demonstration board is designed to work as a stand-alone application, or as a motherboard for the STEVAL-IHI002V1 daughter board, which features the STMPE1208S capacitive sensing device and can be plugged into the STEVAL-IHI001V1 to operate as a capacitive single touch keyboard.
June 2008
Rev 1
1/10
www.st.com
Contents
AN2786
Contents
1 2 3 4 5 6 STLED316S: serial interfaced LED controller with key-scan . . . . . . . . 3 Demonstration board application schematic . . . . . . . . . . . . . . . . . . . . . 4 Bill of material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 STEVAL-IHI001V1 demonstration board photos . . . . . . . . . . . . . . . . . . 7 References and related materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2/10
AN2786
STLED316S: serial interfaced LED controller with key-scan
1
STLED316S: serial interfaced LED controller with key-scan
The device used for the washing machine user interface is a compact LED controller and driver. It interfaces with the MCU through a simple 3-wire serial interface. The STLED316S drives up to 56 LEDs connected in a common anode configuration. Individual digits may be addressed and updated directly, without re-writing the entire display panel. The maximum segment current is set through a single external resistor (RSET). Additionally, the STLED316S includes key scanning for an 8x2 key matrix, which automatically scans a matrix of up to 16 keys. Figure 1. Product application diagram example
The STLED316S is equipped with an internal display RAM memory to store the data transmitted from the MCU through the serial interface. The device is programmed through a variety of read/write commands that permit the user to set the display panel and manage the keyboard. To avoid scanning the keyboard repeatedly searching for a pressed key, an additional IRQ signal can be connected to the MCU. An interrupt is generated whenever a key is pressed.
3/10
Demonstration board application schematic
AN2786
2
Demonstration board application schematic
The demonstration board power supply is designed using a L5970D step-down switching regulator. The input supply voltage may vary in the range of 5 V to 30 VDC, allowing the user to connect a standard AC notebook computer power supply. The input is reversepolarity protected (D6), and over-voltage protected (TR1). The power supply output voltage is set at 5 VDC by mean of 2 resistors (R2, R3). The ST7LITE49M MCU (U2) runs at 8 MHz by means of an internal oscillator, avoiding the need for any external components. Pull-up resistors R10 and R11 are used for the I²C bus, while R12 and R13 prevent the MCU from entering the programming mode unintentionally. Finally, R14 and R15 set the working mode (MD1, MD2 at logic 1 is "standalone mode"). The LEDs, display and keyboard are entirely managed through U3, (STLED316S). 8 segment lines are multiplexed with 7 digit lines, allowing a total of 56 LEDs (in a common anode configuration) to be controlled by a single STLED316S device. R4 sets the LED peak current. Communication between the MCU and the STLED316S is achieved by means of 3 pins: data input/output (DIO), clock (CLK) and strobe (STB). An extra IRQ pin generates an interrupt request any time a key on the keyboard is pressed. The demonstration board is equipped with connectors J3 and J4 to allow connection to the STEVAL-IHI002V1 daughter demonstration board. The board is also equipped with ICC programming connector J2 to program the MCU in-circuit. An extra I²C bus connector (J5) is foreseen to eventually connect other boards or devices via I²C bus.
4/10
AN2786
SEG8
SEG7
SEG6
SEG5
SEG4
Figure 2.
SEG3
SEG2
SEG1 D I G3 DY 1 C om m on Anode D I G3 9 d c b a A1 A2 8 e d 10 9 dp 6 f c 2 7 g 1 g b 1 5 f 2 dp a 6 4 e A2 A1 7 5 D L10 D L12 D L14 D L16 D L18 D L20 D L22 D L24 4 3 10 8 3 9 7 5 4 3 DY 2 C om m on Anode DY 3 C om m on Anode 10 d c b a A1 e f g dp A2 2 1 6 8
D L11
D L13
D L15
D L17
D L19
D L21
D L1
D L3
D L5
D L7
D L2
D L4
D L6
D I G5
D L8
D I G6
D L9
D I G7
D L23
U3 STLED 316S DIO C LK STB IRQ 1 2 3 4 D I N / D OU T C LK STB I R Q_N KEY 1 KEY 2 +VD D 21 20 19 18 U2 ST7F LI 49MK1T6 17 R 10 4K7 5% SEG5 SEG6 SEG7 SEG8 R ST +VD D 6 7 8 9 2 SEG1 P2 TAC T-2 +VD D D 2 1N 4148 3 D 3 1N 4148 SEG3 4 3 4 SEG2 12 13 14 15 16 P1 TAC T-2 1 2 1 D 1 1N 4148 C8 10nF C5 + 10uF 16V C7 100nF 10 11 R ESET NC VD D VSS OSC 1/ C LKI N OSC 2 VSSA VD D A AI N 0/ PB0 C KI N / AI N 1/ PB1 AI N 2/ PB2 PA3 PA4 R ST0 I 2C D I 2C C 1 2 3 4 5 R 11 4K7 5% SEG1 SEG2 SEG3 SEG4 SEG1/ KS1 SEG2/ KS2 SEG3/ KS3 SEG4/ KS4 GN D VC C D I G5 D I G6 D I G7 SEG5/ KS5 SEG6/ KS6 SEG7/ KS7 SEG8/ KS8 16 15 14 13 I SET KEY 1 KEY 2 5 6 7 8 D I G1/ LED D I G2 D I G3 D I G4 9 C6 100nF D I G5 D I G6 D I G7 10 11 12 24 23 22 D I G1 D I G2 D I G3 D I G4
R4 390 1%
D I G2
D I G4
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
+VD D
D L25
D L27
D L29
D L31
QST
STAND ALONE
+VD D D L32
PA2 PA2(H S)/ ATPW M PA1(H S)/ ATI C PA0(H S) 32 31 30 TI N T GI N T
D L26
D L28
D L30
S-TOUCH
D I G1
ATPW M1/ PA3(H S) ATPW M2/ MC O/ PA4(H S) ATPW M3/ PA5(H A) I 2C D ATA/ PA6(H S) I 2C C LK/ PA7(H S)
R 12 10K 5%
R 13 10K 5%
R 14 10K 5%
R 15 10K 5%
KEY 1
2
1
2
1
2
1
PC 7/ BR EAK PC 6 PC 5 PC 4/ LTI C PC 3/ I C C C LK PC 2/ I C C D ATA PC 1/ AI N 9 PC 0/ AI N 8
29 28 27 26 25 24 23 22
I C CC I C CD MD 1 MD 2
R5 10K 5%
P5 TAC T-2
P4 TAC T-2
P3 TAC T-2
3
4
3
4
3
4
PB7/ AI N 7 PB6/ AI N 6 PB5/ AI N 5 PB4/ AI N 4 PB3/ AI N 3
21 20 19 18 17
DIO C LK STB IRQ BU Z
D 4 1N 4148 SEG4 +VD D 2 D 5 1N 4148 P7 TAC T-2 4 3 4 P6 TAC T-2 SEG5 1 2 1 J3 C ON 15 TP3 TP4 +VD D +VD D MD 2 +VD D I2C Expander R2 15K 1% FB 5 +VD D C4 100uF 16V + Q1 BC 337 R8 10K 5% ICC Programmer BZ 1 Buzzer 1 2 R9 4K7 5% I CC D I CC C R ST BU Z 2 4 6 8 10 TP1 TP2 +VD D J4 C ON 10
Demonstration board application schematic
2
1
2
1
2
1
R6 10K 5% 3
P10 TAC T-2
P9 TAC T-2
P8 TAC T-2
3
4
3
4
3
4
KEY 2
U4 L5970D 6 VR EF VC C C OMP INH SY N C 3 7 GN D OU T 1 2 8 4 2 1
L1 33uH
+VD D
I 2C D 2 I 2C C 4 R ST 6 R ST0 8 MD 1 10
J5 C ON 10A 1 3 5 7 9
J1 C ON 3
D6 1N 4007
MD 1 MD 2 GI N T TI N T PA2 PA3 PA4 R ST0 I 2C D I 2C C
1 2 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10
INPUT 5V-30V R3 4K7 1%
TR 1 SMAJ 33A-TR D7 STPS340U
C2 220pF
C3 22nF
C1 10uF 35V
R1 4K7
J2 C ON 10A 1 3 5 7 9
Demonstration board application schematic
5/10
Bill of material
AN2786
3
Bill of material
Table 1.
Item 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Qty 1 1 1 1 1 1 2 1 32 3 5 1 1 1 2 1 1 1 10 1 3 2 1 1 3 4 1 1 1 1
Bill of material
Reference BZ1 C1 C5 C2 C3 C4 C6, C7 C8 DL1-DL32 DY1, DY2, DY3 D1, D2, D3, D4, D5 D6 D7 J1 J2, J5 J3 J4 L1 P1-P10 Q1 R1, R10, R11 R3, R9 R2 R4 R5, R6, R8 R12, R13, R14, R15 TR1 U2 U3 U4 Part Buzzer KPE242 10 F 35 V SMD 10 F 10 V SMD 220 pF 0805 SMD 22 nF 0805 SMD 100 F 16 V SMD 100 nF 0805 SMD 10 nF 0805 SMD L-LTL4231N HD-A552RD common anode 1N4148 DO-35 1N4007 DO-41 STPS340U K375A connector MLW10G 10 pin connector BL815G 15 pin connector BL810G 10 pin connector DO3316P-333MLB 33 H P-B1720C push-button BC337 TO-92 4K7 0805 SMD 4K7 1206 SMD 15 k 1206 SMD 390 1206 SMD 10 k 1206 SMD 10 k 0805 SMD SMAJ33A-TR TransilTM ST7FLI49MK1T6 STLED316SMTR L5970D STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics Coilcraft STMicroelectronics EPCOS EPCOS EPCOS Manufacturer
6/10
AN2786
STEVAL-IHI001V1 demonstration board photos
4
STEVAL-IHI001V1 demonstration board photos
Figure 3. Front view
Figure 4.
Angle view
7/10
References and related materials
AN2786
5
References and related materials
For further information related to the functionality of the devices mentioned in this application note, please refer to the following documents: 1. 2. 3. ST7LITE49M datasheet STLED316S datasheet L5970D datasheet
8/10
AN2786
Revision history
6
Revision history
Table 2.
Date 16-Jun-2008
Document revision history
Revision 1 Initial release. Changes
9/10
AN2786
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.
2008 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
10/10
Document Number: 14786