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.
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"...
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...
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.
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...
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...
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.
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.
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...
● 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.
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.
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"...
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...
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.
Need help?
Do you have a question about the STMPE801 and is the answer not in the manual?
Questions and answers