ST STMPE801 User Manual
ST STMPE801 User Manual

ST STMPE801 User Manual

Eight bit port expander demonstration board

Advertisement

Quick Links

UM0401
User manual
User manual for eight bit port expander
STMPE801 demonstration board
Introduction
This document explains the functioning of the demo board for the port expander Chip
2
STMPE801 with a PC GUI for reading and writing to the eight GPIOs and controlling the I
C
interface.
The objective of this demonstration board is to display the capabilities of the 8-bit port
expander (STMPE801) developed by STMicroelectronics using a Windows-based software
application. The software application provides a user-friendly environment to test the port
expander and verify its functionality.
The board is controlled by the GUI through the parallel port in the PC. The power to the
board should come from an external 5 V constant DC power supply.
2
The PC based GUI acts as the I
C host and controls the STMPE801 slave on the board.
The eight GPIOs in the STMPE801 are accessible through headers and can be easily pulled
high or low using jumpers. The GPIOs can be configured as outputs by writing to the
2
appropriate registers using the GUI. All these interfaces are controlled by using I
C
communication between Host and Slave devices.
In addition, the hardware has a provision for controlling the STMPE801 through an external
2
I
C master.
June 2007
Rev 1
1/17
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for ST STMPE801

  • Page 1 Introduction This document explains the functioning of the demo board for the port expander Chip STMPE801 with a PC GUI for reading and writing to the eight GPIOs and controlling the I interface. The objective of this demonstration board is to display the capabilities of the 8-bit port expander (STMPE801) developed by STMicroelectronics using a Windows-based software application.
  • Page 2: Table Of Contents

    Running the STMPE801 port expander GUI ..... . 8 Running internal registers of STMPE801 ......9 Programming GPIO .
  • Page 3 Screen shot of write/read tab in STMPE801 GUI ....... .
  • Page 4: Getting Started

    Getting started UM0401 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 XP or Windows 2000 must be installed on the PC. The user must have administrative rights to install the executable and launch it. The version of the Windows OS installed on your PC may be determined by clicking on the "System"...
  • Page 5: Hardware Installation

    UM0401 Getting started Figure 1. GUI start up screen Hardware installation Figure 2 below shows the snapshot of the demonstration board. Figure 2. Port expander board 5/17...
  • Page 6: Power Supply

    Getting started UM0401 1.4.1 Power supply The demo board should be powered from an external supply of 5 V, 1 A. (Connector X1 is for +5 V and Connector X2 is GND). This supply is regulated to get the required V and V voltages by adjusting the Resistor divider components.
  • Page 7: Figure 5. Jp55_2 And Jp56_2 For I 2 C_Clk And I 2 C_Sdata Selection

    JP55_2 and JP56_2 for I C_CLK and I C_SDATA selection These jumpers should be connected if STMPE801 is to be controlled by the GUI through the DB-25 connector. They can be left open if an external I C Master is used. For using external...
  • Page 8: Running The Stmpe801 Port Expander Gui

    C Slave address selection ● JP6_3 and JP7_3: These jumpers are provided to isolate the STMPE801 chip from the rest of the board for troubleshooting. They can also be used as test points to measure the respective supply operating current. To supply the chip with the V...
  • Page 9: Running Internal Registers Of Stmpe801

    Running the STMPE801 port expander GUI Figure 10. Screen shot of STMPE801 GUI startup screen Running internal registers of STMPE801 The internal registers of the STMPE801 can be read or written to using the "Write Read" tab in the GUI. Figure 11 shows a screen shot of this function.
  • Page 10: Figure 11. Screen Shot Of Write/Read Tab In Stmpe801 Gui

    Running the STMPE801 port expander GUI UM0401 Figure 11. Screen shot of write/read tab in STMPE801 GUI The register contents can be read by writing the 8-bit hex address into the "Address" field and the number of registers to be read in the "Length" field. Then click on the "Read" button.
  • Page 11: Programming Gpio

    UM0401 Running the STMPE801 port expander GUI Programming GPIO The eight GPIOs can be configured as input or output individually and independently of each other. The status of the GPIOs can be read and are displayed on the "GPIO-functional" tab of the GUI as shown in...
  • Page 12: Power Modes

    ● Soft reset The STMPE801 slave devices can be put in Power down mode by clicking on the "I Shutdown" button. This shuts down the device and displays a message to press the reset button to resume normal device operation.
  • Page 13: Configuring Interrupts

    Running the STMPE801 port expander GUI Figure 15. Entering in hibernate mode Configuring interrupts The GUI provides a convenient way to configure the GPIO interrupts in STMPE801 and monitor the change of state in the GPIOs that trigger interrupts, if so configured. Figure 16 shows a screen shot of the Interrupt tab before the interrupts are configured and running.
  • Page 14: Figure 17. Interrupt Enabled With Indication Of Current Interrupt Status In The Isr - Screen Shot

    Running the STMPE801 port expander GUI UM0401 The appropriate slave device should be chosen before enabling the interrupt. The Interrupt settings are configured into the internal configuration registers as soon as the "SET" button is clicked. The Interrupt window turns green to indicate that the interrupt is enabled. In order to turn off all interrupt settings, click on the "Reset Interrupt"...
  • Page 15: Using The External I2C Master

    Using the external I2C master Using the external I C master We can also use an external I C Master to control the STMPE801 by using the pins available on the JP17_2 connector as shown in Figure Figure 18. External I...
  • Page 16: Demo Board Footprint

    Demo board footprint UM0401 Demo board footprint Figure 19. Demo board footprint Revision history Table 1. Revision history Date Revision Changes 05-Jun-2007 First issue 16/17...
  • Page 17 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