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

Using the external I2C master:

UM0300

18/22

 

Using the external I

2

C master:

We can also use an external I

2

C Master by using pins available on J1 connector as shown in 

the

 

Figure 24

, below:

Figure 24.

External I

2

C connector

To control the STMPE2401 devices using the external masters, do the following steps:

1.

Set the demo board to run mode as explained earlier.

2. Remove 

the 

I

2

C connections from jumper JP1 and JP2. This is required to avoid any 

conflict due to I

2

C operations done by the demo itself.

3. 

Connect 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 required operations, remove all the connections as mentioned 
in steps 2, 3 and 4. Now connect the make the I

2

C connections Jumper JP1 and JP2 

again.

6. 

Reconnect the RESET button on the demo board to put demo back in action.

In this mode, PC GUI will not be available for the external user to use. Again you have to use 
the slave address as specified in the demo which is 0 x 84 for Slave1 and 0x86 for Slave2. 
Again this I

2

C lines are working at 5 V power supply so external I

2

C Master should use 5 V 

power supply.

Содержание 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...

Отзывы: