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 11/10
www.st.com
ContentsAN2786
Contents
1STLED316S: serial interfaced LED controller with key-scan . . . . . . . . 3
AN2786STLED316S: 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 (R
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
SET
).
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 schematicAN2786
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.
For further information related to the functionality of the devices mentioned in this
application note, please refer to the following documents:
1.ST7LITE49M datasheet
2. STLED316S datasheet
3. L5970D datasheet
8/10
AN2786Revision history
6 Revision history
Table 2.Document revision history
DateRevisionChanges
16-Jun-20081Initial release.
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.