ST STMPE2401 Скачать руководство пользователя страница 1

March 2007

Rev 2 

1/22

UM0300

User manual

Port expander STMPE2401 demonstration board

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

2

C master 

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

2

C master and controls two 

STMPE2401 devices functioning as I

2

C Slaves. The STMPE2401 devices are used to 

interface LCD, normal keypad, rotator controller, dedicated keys and 6 PWM outputs. All 
these interfaces are controlled by just using I

2

C communication between master and slave 

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

2

C path for external control. 

Also the board has ICC connector to re-program the ST7 Microcontroller flash memory.

www.st.com

Содержание STMPE2401

Страница 1: ...ioning as I2 C Slaves The STMPE2401 devices are used to interface LCD normal keypad rotator controller dedicated keys and 6 PWM outputs All these interfaces are controlled by just using I2 C communica...

Страница 2: ...g the STMPE2401 port expander demo board 9 2 1 Running in standalone mode 9 2 1 1 PWM Output demo 9 2 1 2 Keypad demo 9 2 1 3 Dedicated keypad demo 10 2 1 4 Rotator demo 10 2 2 Running in PC GUI mode...

Страница 3: ...edded 4x4 keypad 10 Figure 11 Dedicated keys 10 Figure 12 Rotator interface 11 Figure 13 Enumeration result 11 Figure 14 STMPE2401 PC GUI 12 Figure 15 Message for board not connect 12 Figure 16 Messag...

Страница 4: ...e determined by clicking on the System icon in the control panel 1 2 Package contents The port expander demo board includes the following items Hardware content One demonstration board Software conten...

Страница 5: ...utton 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 Progra...

Страница 6: ...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 Als...

Страница 7: ...power supply should be getting minimum supply of 7 V 1 A and maximum power supply of 12 V 1 A 1 4 2 Jumper settings There are four jumpers JP1 JP2 JP3 and JP4 are available on the board The correct co...

Страница 8: ...Right Side only if it is must to provide the ICC clock to the microcontroller during the re programming microcontroller JP4 As shown in the Figure 9 below JP4 is used for choosing power supply to be...

Страница 9: ...EDs are the output of the 6 PWM outputs coming from 2 STMPE2401 devices Now the system is ready to be used Again if you find that no message is coming on the LCD after giving the power supply Remove t...

Страница 10: ...l keypad where you can detect only 2 keys simultaneously here you can observe 4 dedicated keys simultaneously All dedicated key press events are displayed in LCD screen Figure 11 Dedicated keys 2 1 4...

Страница 11: ...GUI is also available For running the GUI the demo board must first be connected to the PC with the USB cable and then provide the power supply to the demo As a result you should find the demo board...

Страница 12: ...nected to the board or not by clicking the connection check button If the board is not connected then you will see the following message Figure 15 Message for board not connect And if board is connect...

Страница 13: ...des Again there is a RESET option available which can put the demo back in default settings 2 2 1 Read Scan mode You can enter in to the Read Scan mode by clicking the Read Scan button as highlighted...

Страница 14: ...401 port expander demo board UM0300 14 22 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 19 Figure 19...

Страница 15: ...y by writing the 8 bit address in the Address and then clicking Read The return data is in HEX format Figure 20 Reading internal memory of STMPE2401 2 2 4 Programming PWM Any of the 6 PWM outputs comi...

Страница 16: ...ng with the default program loaded in to their memory 2 2 5 Power down mode There are 2 power down modes as mentioned below Hibernate mode Sleep mode The STMPE2401 slave devices can be put in to Hiber...

Страница 17: ...EDs stop blinking While in sleep mode PWM keeps running as these are controlled by the 32 KHz clock In order to wake up the demo in low power mode click the Wake Up button A message in the Scan Window...

Страница 18: ...ect the SCL and SDA lines available in jumper J1 4 For controlling the Interrupt line use PA4 for INT1 Slave1 interrupt line and use PA5 for INT2 Slave 2 interrupt line 5 After you have done the requi...

Страница 19: ...s ordering code orderable part number Supplier Supplier s ordering code 1 2 C1 C2 33 pF 0805 Any 2 13 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C21 C22 100 nF 0805 Any 3 4 C17 C18 C19 C20 10PF 0805 Any...

Страница 20: ...0805 Any 24 6 R24 R25 R40 R41 R42 R43 2k2 0805 Any 25 5 R27 R28 R29 R30 R31 10 k 0805 Any 26 3 R2 R3 R4 4k7 0805 Any 27 4 R32 R33 R34 R35 18 k 0805 Any 28 4 R36 R37 R38 R39 3k3 0805 Any 29 1 U1 ST72F6...

Страница 21: ...UM0300 Revision history 21 22 4 Revision history Table 2 Revision history Date Revision Changes 19 Jan 2007 1 First issue 26 Mar 2007 2 Table 1 Bill of materials insertion...

Страница 22: ...NTIES 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 E...

Отзывы: