ST STMPE2402 User Manual
ST STMPE2402 User Manual

ST STMPE2402 User Manual

Port expander demonstration board
Table of Contents

Advertisement

Quick Links

Using the STMPE2402 Port Expander Demonstration Board
Introduction
This document explains how to use the STMPE2402 Port Expander demonstration board
that consists of an STMPE2402 Port Expander IC and an ST72F63B microcontroller and
includes a PC graphical user interface (GUI).
The objective of this demonstration board is to highlight the features and capabilities of the
Port Expander chip (STMPE2402) using a Windows®-based host software application and
one of several USB low-speed microcontrollers (ST72F63B) from STMicroelectronics acting
as a control device.
The host software and the ST7 source code provide a user-friendly environment for the
demo board in the following modes:
Stand-alone mode
PC GUI mode
In both modes, power to board can be provided from either the USB bus itself or from an
external power supply.
In this demo, the ST72F63B microcontroller (MCU) acts as the I
STMPE2402 port expander functioning as the I
interface for the LCD, hot key detection and 3 PWM (Pulse Width Modulation) outputs.
The built-in Analog-to-Digital Converter (ADC) enables the STMPE2402 to measure
environmental conditions such as ambient light and temperature.
For visual display of the PWM outputs, LEDs are provided on the board. All these interfaces
are controlled by the ST72F63B MCU via the I
For interfacing with the PC GUI, the application layer is built above the USB core library,
making all hardware control of the USB interface transparent for developers.
All events such as hot key presses are captured and displayed on the LCD screen and also
on the PC GUI.
The PC GUI supports the various power-saving modes and wake-up features for the Port
Expander.
Moreover, the demo board includes a provision for an alternate I
control device. The board also has an ICC connector for re-programming the Flash memory
of the ST7 microcontroller.
March 2007
2
C Slave. The STMPE2402 provides the
2
C bus.
Rev 1
UM0311
User manual
2
C Master and controls the
2
C path for an external
www.st.com
1/24

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STMPE2402 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST STMPE2402

  • Page 1 Introduction This document explains how to use the STMPE2402 Port Expander demonstration board that consists of an STMPE2402 Port Expander IC and an ST72F63B microcontroller and includes a PC graphical user interface (GUI). The objective of this demonstration board is to highlight the features and capabilities of the Port Expander chip (STMPE2402) using a Windows®-based host software application and...
  • Page 2: Table Of Contents

    Programming PWM outputs ........14 2.2.5 Disable/enable STMPE2402 PWM ......14 2.2.6 Changing the frequency of STMPE2402 PWM .
  • Page 3 Reading STMPE2402 internal memory ........
  • Page 4: Getting Started

    UM0311 Getting started System requirements In order to use the STMPE2402 Port Expander demonstration board with the Windows® operating system, a recent version of Windows, such as Windows 2000 or Windows XP must be installed on the PC. The version of the Windows OS installed on your PC may be determined by clicking on the “System”...
  • Page 5: Figure 2. License Window

    UM0311 Getting started Figure 2. License window Select the folder where you will install the demonstration software (Figure 3). By default, it will install the software in the following location: C:\Program Files\STMicroelectronics\PortExpanderSTMPE2402 Figure 3. Folder selection After selecting the folder, click Next to start installing the software. After installing the software, the Installation Complete window appears (Figure 4).
  • Page 6: Hardware Installation

    Getting started UM0311 Figure 4. Installation complete The software is now installed in the selected directory and a shortcut to the demo software is available in the Start menu. A link to the user manual is also available in the same directory.
  • Page 7: Jumper Settings

    UM0311 Getting started The external power supply should provide a minimum supply of 7V/1A and a maximum power supply of 12V/1A. 1.4.2 Jumper settings There are seven jumpers (JP1, JP2, JP3, JP4, JP5, JP6 and JP7) available on the board. ●...
  • Page 8: Running The Stmpe2402 Port Expander Demo Board

    LCD screen and all the LEDs will blink. These LEDs are the 3 PWM outputs coming from the STMPE2402 port expander. Now the system is ready to be used and the following demo board features are available.
  • Page 9: Pwm Output Demo

    DAC whose amplified outputs drive a white LED on the demo board. You can observe the change in white LED intensity by changing the light intensity at the LDR. This demo is independently controlled by the STMPE2402 device with no interference from the ST7 host.
  • Page 10: Figure 10. Enumeration Result

    If this message does appear, contact technical support. Figure 10. Enumeration result After launching the STMPE2402 PC GUI demo software, the PC displays a graphical interface (Figure 11) for controlling the demonstration board. This PC software is used to issue various commands and to transfer data between the PC and the ST7 peripheral.
  • Page 11: Read Mode

    UM0311 Running the STMPE2402 Port Expander demo board Figure 11. STMPE2402 PC GUI 2.2.1 Read mode To enter Read mode, click the Read icon as shown in Figure Figure 12. PC GUI in Read mode 11/24...
  • Page 12: Figure 13. Read Mode Functions

    Running the STMPE2402 Port Expander demo board UM0311 In Read mode, you can observe hot key press events in the Hot Key Detection pane on the PC as well as on the LCD screen of the demo board. You can also observe ambient light intensity, ambient temperature and voltage data as...
  • Page 13: Write/Program Mode

    2.2.3 Reading the STMPE2402 internal memory To read the internal memory of a particular STMPE2402 slave device, enter the 8-bit hexadecimal address in the Address box of the “Memory Read” pane, select the correct number of bits, and then click Read to display the returned data in hexadecimal format as...
  • Page 14: Programming Pwm Outputs

    The Port Expander demo board includes 3 PWM (Pulse Width Modulation) outputs coming from the STMPE2402 device. To program the outputs, click Open in the PWM Programming pane and load the correct PWM file (*.pex). Select the correct PWM output from the drop-...
  • Page 15: Changing Pwm Frequency Using Hot Keys

    R4 resistive bridge (connected to 1.8V supply on other side) and the variable resistor VR1 by the Channel 1 of the STMPE2402 ADC. By changing the value of VR1, the PWM frequency changes. This feature is not implemented in Stand-alone mode.
  • Page 16: Figure 20. Ramp Registers

    Running the STMPE2402 Port Expander demo board UM0311 Figure 20. Ramp registers There are 3 different segments which you can add to your PWM output. ● Execute RU ● Execute RD ● Execute Flat Execute RU Click Execute RU to display a dialog box and select the appropriate ramp-up values from...
  • Page 17: Figure 22. Execute Ramp-Down Segment

    UM0311 Running the STMPE2402 Port Expander demo board Figure 22. Execute ramp-down segment After selecting the ramp-down values, click Set to display the effects of this selection. To confirm the selected values and save them in the PWM file, click OK.
  • Page 18: Reset And Low-Power Modes

    ● Hibernate mode ● Sleep mode The STMPE2402 slave device can either be reset or set to Hibernate or Sleep mode by clicking the corresponding button on the GUI as shown in Figure Figure 25. Reset and low-power modes 18/24...
  • Page 19: Hibernate Mode

    Figure Figure 26. Waking Up from Hibernate mode In the STMPE2402, registers are reset in Hibernate mode, hence they are re-initialized after waking up from this mode. Therefore after waking up from Hibernate mode, you will again see the PWM outputs running according to the original program.
  • Page 20: C Master

    C operations performed by the demo itself. Connect the SCL and SDA line available on jumper J1. To control the Interrupt line from the STMPE2402, use PA4 for INT (Slave interrupt line). PA5 does not need to be connected. Now the STMPE2402 demo board is ready to be controlled using the external I C master device.
  • Page 21: Application Diagram

    UM0311 Application diagram Appendix A Application diagram 21/24...
  • Page 22: Bill Of Materials

    Bill of materials UM0311 Appendix B Bill of materials Table 2. Bill of materials Manufacturer’s Supplier’s Value / generic Manufa ordering code / Index Qty Ref. Package Supplier ordering part number cturer orderable part code number 0805 33 pF 0805 C10, C12, C13, C14,C16, C17,C18,C19,...
  • Page 23: Revision History

    0805 R32, R33 18 k 0805 R2, R3, R4, 0805 R5, R6, R7 4.7 k S1, S2, S3, S4, SWITCH Push Button ST72F63BK4B1 SDIP-32 ST72F63BK4B1 STMPE2402 TFBGA36 STMPE2402TBR LM258AD SO-8 LM258AD L7805CV TO-220 L7805CV U5, U6 ST2378ETTR TSSOP20 ST2378ETTR LF18ABDT...
  • Page 24 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.

Table of Contents