Advertisement

Quick Links

Introduction
This Document explains the functioning of the port expander demo board consists of the
port expander IC STMPE2401 and controller ST72F63B microcontroller as I
along with a PC GUI.
The objective of this demonstration board is to display to the user the features and
capabilities of the port expander chip (STMPE2401) using a Windows-based host software
application and one of several USB low-speed microcontrollers (ST72F63B) from ST acting
as a control device.
The host software and the ST7 source code provide a user friendly environment to use
demo board in following modes:
Standalone mode
PC GUI mode
In both modes, power to board can be provided from either USB bus itself or from external
power.
In this demo board, the ST72F63B Microcontroller acts as the I
STMPE2401 devices functioning as I
interface LCD, normal keypad, rotator controller, dedicated keys and 6 PWM outputs. All
these interfaces are controlled by just using I
devices.
all events like dedicated key press (four direction keys); keypad key press (4 x 4 keypad),
Rotator direction, power mode etc. are captured and displayed in LCD screen and in the
scan window of PC GUI. For visual display of the PWM output LEDs are provided on the
board. The capability of rotator controller has been demonstrated by mechanically
implementing the rotator configuration using switches.
For interfacing with the PC GUI, the application layer is built above the USB core library that
makes all the hardware control of the USB interface transparent for the developers.
The PC GUI supports various power saving modes of port expander and wake up feature to
get back to default operational mode.
In addition the board has the provision for an alternate I
Also the board has ICC connector to re-program the ST7 Microcontroller flash memory.
March 2007
Port expander STMPE2401 demonstration board
2
Rev 2
C Slaves. The STMPE2401 devices are used to
2
C communication between master and slave
2
C path for external control.
UM0300
User manual
2
C master
2
C master and controls two
www.st.com
1/22

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for ST STMPE2401

  • Page 1 PC GUI. The objective of this demonstration board is to display to the user the features and capabilities of the port expander chip (STMPE2401) using a Windows-based host software application and one of several USB low-speed microcontrollers (ST72F63B) from ST acting as a control device.
  • Page 2: Table Of Contents

    Write/program mode ........14 2.2.3 Reading internal memory of STMPE2401: ..... . 15 2.2.4 Programming PWM .
  • Page 3 Reading internal memory of STMPE2401 ........
  • Page 4: Getting Started

    Getting started UM0300 Getting started System requirements In order to use the 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

    UM0300 Getting started ● Step 2: Read the license file and click the "Yes" button if you accept the license. Figure 2. License window ● Step 3: Please select the folder in which, you want to install the software. By default it will install the software in the following path- C:\Program Files\STMicroelectronics\PortExpanderSTMPE2401 Figure 3.
  • Page 6: Figure 4. Installation Ongoing

    Getting started UM0300 ● Step 4: After you select the folder and click the next button, it will start installing the software. Figure 4. Installation ongoing ● Step 5: Figure 5. Installation complete After you click the "Finish Button", you will find that the software is installed in the directory you selected or in the default directory.
  • Page 7: Hardware Installation

    UM0300 Getting started Hardware installation Figure 6 below shows the snapshot of the demonstration board. Figure 6. Port expander demo board 1.4.1 Power supply The demo board can directly be powered by the USB Connector (Bus powered). Or you can use an external power supply. The external power supply should be getting minimum supply of 7 V, 1 A and maximum power supply of 12 V, 1 A.
  • Page 8: Figure 8. Jp3 Settings

    Getting started UM0300 These Jumpers allow the selection between ICC or I C data lines. While we do the programming the ST7 microcontroller, the jumpers must be connected on ICC side (right side) and when the board is used for demonstration, the jumpers must be connected on the C side (left side).
  • Page 9: Running The Stmpe2401 Port Expander Demo Board

    After that you will see a series of messages coming on the LCD screen. At the end, you will see a blank LCD screen and you will see all the LEDs blinking. These LEDs are the output of the 6 PWM outputs coming from 2 STMPE2401 devices. Now the system is ready to be used.
  • Page 10: Dedicated Keypad Demo

    Running the STMPE2401 port expander demo board UM0300 Figure 10. Embedded 4x4 keypad 2.1.3 Dedicated keypad demo Similar to normal Key press, there are 4 dedicated keys available on the demo board as shown in Figure 11. In comparison to normal keypad where you can detect only 2 keys simultaneously, here you can observe 4 dedicated keys simultaneously.
  • Page 11: Running In Pc Gui Mode

    13, and then board will be ready to use, if this message does not come contact the technical support. Figure 13. Enumeration result By starting the STMPE2401 PC GUI on the PC, you will see a graphical interface (Figure 14) for controlling the demonstration board. This PC software is used to issue various commands and to control data transfer between the PC and the ST7 peripheral.
  • Page 12: Figure 14. Stmpe2401 Pc Gui

    Running the STMPE2401 port expander demo board UM0300 Figure 14. STMPE2401 PC GUI Again as you can see in the Figure 14, you can check whether the board is connected to the board or not by clicking the connection check button. If the board is not connected then you will see the following message.
  • Page 13: Read/Scan Mode

    Write/Program mode In addition to these two modes, there are 2 power-down options available in the GUI to put STMPE2401 in power down modes. Again there is a RESET option available which can put the demo back in default settings.
  • Page 14: Write/Program Mode

    Running the STMPE2401 port expander demo board UM0300 Figure 18. Events in scan window 2.2.2 Write/program mode You can enter in to this mode by clicking Write/Program button as highlighted in Figure Figure 19. Write/program mode 14/22...
  • Page 15: Reading Internal Memory Of Stmpe2401

    PWM output. 2.2.3 Reading internal memory of STMPE2401: We can read the internal memory of particular STMPE2401 slave device by selecting that in "Memory Read" section from the pop menu as shown in the Figure 20.
  • Page 16: Power Down Mode

    ● Hibernate mode ● Sleep mode The STMPE2401 slave devices can be put in to Hibernate mode or sleep mode by clicking corresponding button available on the GUI. For e.g. as shown in the Figure 22, if we click "Hibernate" button the device will be STMPE2401 device will be put in the hibernate mode.
  • Page 17: Figure 22. Entering In Hibernate Mode

    UM0300 Running the STMPE2401 port expander demo board Figure 22. Entering in hibernate mode A “sleep” mode is also available. A corresponding message appears on the LCD screen as well. In Hibernate mode, as the clock to PWM is stopped, output LEDs stop blinking. While in sleep mode, PWM keeps running as these are controlled by the 32 KHz clock.
  • Page 18: C Master

    24, below: Figure 24. External I C connector To control the STMPE2401 devices using the external masters, do the following steps: Set the demo board to run mode as explained earlier. Remove the I C connections from jumper JP1 and JP2. This is required to avoid any conflict due to I C operations done by the demo itself.
  • Page 19 UM0300 Application diagram Appendix A Application diagram Table 1. Bill of materials Manufacturer’s Supplier’s Value / generic Manufact ordering code / Index Reference Package Supplier ordering part number urer orderable part code number C1, C2 33 pF 0805 C6, C7, C8, C9, C10, C11, C12, C13, C14, 100 nF 0805...
  • Page 20 10 k 0805 R2, R3, R4 0805 R32, R33, R34, R35 18 k 0805 R36, R37, R38, R39, 0805 ST72F63BK4B1 SDIP-32 ST72F63BK4B1 U2, U3 STMPE2401 TFBGA36 STMPE2401TBR U4, U5 ST2378ETTR TSSOP20 ST2378ETTR LF18ABDT DPAK LF18ABDT L7805CV TO-220 L7805CV Y1, Y2 32.768 KHz...
  • Page 21: Revision History

    UM0300 Revision history Revision history Table 2. Revision history Date Revision Changes 19-Jan-2007 First issue 26-Mar-2007 Table 1: Bill of materials insertion 21/22...
  • Page 22 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