ST ZigBee dual IF EEPROM User Manual

UM1519
User manual
ZigBee® dual IF EEPROM adapter for the STM322xG-EVAL
Introduction
This user manual describes the ZigBee® adapter for the STM322xG-EVAL needed to manage a smartplugW network system through the STM322xG-EVAL board. The ZigBee adapter for the STM322xG-EVAL has been developed in order to interface the STM322xG­EVAL board with the ZigBee coordinator. The ZigBee coordinator is connected to the STM322xG demonstration board through the adapter that allows SPI, I²C and UART communication. The user can properly set jumpers JP3 and JP4 in order to choose how to communicate between the STM32W and STM32F2xx. The I²C interface is used for the communication of the STM32W and the dual interface EEPROM onboard. In Figure 1, it is possible to take a quick look at the STM322xG-Eval board and a smartplug node block diagram. The dual interface EEPROM “M24LR64r” onboard is accessible from both the STM32W and the STM32F2xx via I²C interface and remotely by means of an RF reader. Therefore, it is possible to read and update parameters from inside (I²C) and outside (RF) the application. It therefore allows final application data management:
IDentification: read-only unique identifier
Traceability: trace code, date, BOM code, etc.
Inventory: supply chain visibility
Live update: application parameter update
Remote activation: code enabler
Maintenance: wireless access to events/logs
Diagnostics: possible real-time wireless access to parameters

Figure 1. STM322xG-EVAL board and a smartplug node block diagram

September 2012 Doc ID 022813 Rev 2 1/40
www.st.com
Contents UM1519
Contents
1 STM3220G-EVAL demonstration board . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4 Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.5 Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.6 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.7 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.8 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.9 SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.10 Development and debug support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.11 Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.12 Daughterboard extension connector CN1, 2, 3 and CN4 . . . . . . . . . . . . . 15
1.13 Ethernet RJ45 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.14 JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.15 Power connector CN18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.16 TFT LCD connector CN19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2 ZigBee module SPZB32W1x2.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3 Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4 Board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1 STM322xG-EVAL demonstration board setup . . . . . . . . . . . . . . . . . . . . . 25
4.2 STM322xG-EVAL and ZigBee adapter with M24LR64-r memory . . . . . . 25
5 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2/40 Doc ID 022813 Rev 2
UM1519 List of tables
List of tables
Table 1. Power related jumpers and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 2. Boot related switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 3. EEPROM related jumper and solder bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 4. Ethernet related jumpers and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 5. SRAM related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 6. LCD modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 7. Daughterboard extension connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 8. Daughterboard extension connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 9. Daughterboard extension connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 10. Daughterboard extension connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 11. Ethernet RJ45 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 12. JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 13. ZigBee adapter pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 14. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Doc ID 022813 Rev 2 3/40
List of figures UM1519
List of figures
Figure 1. STM322xG-EVAL board and a smartplug node block diagram . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. STM3220G-EVAL board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 3. STM3220G-EVAL board hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 4. STM3220G-EVAL demonstration board layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 5. ZigBee adapter layout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 6. Ethernet RJ45 connector CN7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 7. JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 8. Power supply connector CN18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 9. ZigBee and dual interface EEPROM adapter for STM322xG-EVAL . . . . . . . . . . . . . . . . . 27
Figure 10. STM3220-21-45-46G-EVAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 11. STM3220-21-45-46G-EVALMCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 12. STM3220-21-45-46G-EVALEthernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 13. STM3220-21-45-46G-EVALLCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 14. LCD module with both SPI and 16-bit interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 15. STM3220-21-45-46G-EVAL I/O peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 16. STM3220-21-45-46G-EVAL I/O_Expander . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 17. STM3220-21-45-46G-EVAL JTAG and trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 18. STM3220-21-45-46G-EVALPower . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 19. STM3220-21-45-46G-EVALExtension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4/40 Doc ID 022813 Rev 2
UM1519 STM3220G-EVAL demonstration board

1 STM3220G-EVAL demonstration board

Figure 2. STM3220G-EVAL board

The STM3220G-EVAL demonstration board is a complete demonstration and development platform for the STM32 F-2 series and includes an embedded STM32F207IGH6 high­performance ARM
The full range of hardware features on the board is provided to help the user evaluate all peripherals (USB OTG HS, USB OTG FS, Ethernet, motor control, CAN, MicroSD card, smartcard, USART, audio DAC, RS-232, IrDA, SRAM, MEMS, EEPROM… etc.) and develop their own applications. Extension headers make it possible to easily connect a daughterboard or wrapping board for specific applications.
The in-circuit ST-LINK tool can be easily used for JTAG and SWD interface debugging and programming.
Cortex-M3 32-bit microcontroller with a cryptographic acceleration cell.
Doc ID 022813 Rev 2 5/40
STM3220G-EVAL demonstration board UM1519

1.1 Features

STM32F207IGH6 microcontroller
16 Mbit SRAM
1 Gbyte or more MicroSD card
Boot from user Flash, system memory or SRAM
Both ISO/IEC 14443 type A and B smartcards supported
2
I
C compatible serial interface 8-Kbyte EEPROM, MEMS and I/O expander
IEEE 802.3-2002 compliant Ethernet connector
Two CAN 2.0 A/B channels on the same DB connector
RS-232 communication
IrDA transceiver
USB OTG (HS and FS) with Micro-AB connector
Inductor motor control connector
I2S audio DAC, stereo audio jack for headset
3.2" 240x320 TFT color LCD with touchscreen
4 color LEDs
Camera module and extension connector for ST camera plug-in
Joystick with 4-direction control and selector
Reset, wake-up, tamper and user button
RTC with backup battery
Extension connector for daughterboard or wrapping board
JTAG, SW and trace debug support
Embedded ST-LINK/V2
Five 5 V power supply options: power jack, USB FS connector, USB HS connector,
ST-LINK/V2 or daughterboard
MCU consumption measurement circuit.

1.2 Hardware layout and configuration

The STM3220G-EVAL demonstration board is designed around the STM32F207IGH6 microcontroller with a cryptographic acceleration cell in the UFBGA176 package. The hardware block diagram, Figure 2, illustrates the connection between the STM32F207IGH6 and peripherals (camera module, LCD, SRAM, EEPROM, MEMS, USART, IrDA, USB OTG HS, USB OTG FS, Ethernet, audio, CAN bus, smartcard, MicroSD card and motor control) and Figure 3 helps the user locate these features on the actual demonstration board.
6/40 Doc ID 022813 Rev 2
UM1519 STM3220G-EVAL demonstration board
!-V
-2XXXXX6
34-&)'(
23
TRANSCEIVER
)R$!
TRANSCEIVER
3MARTCARD
INTERFACE
6REGULATOR
4&4,#$
-ICRO3$ CARD
!UDIO$!#
-#CONTROL CONNECTOR
,%$S+EY
*4!'
-%-3
0OTENTIOMETER
3MARTCARD
CONNECTOR
)NTEGRATED2*
CONNECTOR
23
$"CONNECTOR
!$#
)3
'0)/
-))2-))
53!24
)#
%XTENSION
CONNECTORFOR
'0)/S
0(9
53!24
#!.
#!.
TRANSCEIVER
#!.
$"CONNECTOR
-#
3$)/
4RACE
$EBUG
/4'&3
53"-ICRO!"
CONNECTOR
%%02/-
)/EXPANDOR
*OYSTICK
4OUCHSCREEN
53"POWER
SWITCH
#!.
6REGULATOR
6REGULATOR
6REGULATOR
$#-)
#AMERA
MODULE
/4'(3
53"-ICRO!"
CONNECTOR
53"POWER
SWITCH
53"(3
0(9
$!#
&3-#
32!-
34,).+6
#AMERAEXTENSION
CONNECTOR
-ICROPHONE !MPLIFIER
!UDIO*ACK
!$#

Figure 3. STM3220G-EVAL board hardware block diagram

Doc ID 022813 Rev 2 7/40
STM3220G-EVAL demonstration board UM1519
!-V
#.
-OTORCONTROL
#.
-ICRO3$CARD
#. 4RACE
#. *4!'
5 )R$!
#. 53" /4'&3
#. 53"/4'(3
#. 34,).+6
#. #OLOR,#$
#. #AMERAMODULE
#. #AMERAEXTENSION CONNECTOR
5
*OYSTICK
" 5SERKEY
" 4AMPER
#. 3MARTC ARD
" 7AKEUP
" 2ESET
26 0OTENTIOMETER
#. 6POW ERJAC K
#. !UDIOJACK
#. 53!2 4
#. #!.
5
34-&) '(
#. 2* CONNECTOR
#.# . %XTENSION

Figure 4. STM3220G-EVAL demonstration board layout

8/40 Doc ID 022813 Rev 2
UM1519 STM3220G-EVAL demonstration board

Figure 5. ZigBee adapter layout description

1.3 Power supply

The STM322xG-EVAL demonstration board is designed to be powered by 5 V DC power supply and to be protected by PolyZen from a wrong power plug-in event. It is possible to configure the demonstration board to use any of the following five sources for the power supply:
5 V DC power adapter connected to JP18, the power jack on the board
5 V DC power with 500 mA limitation from CN8, the USB OTG FS Micro-AB connector
5 V DC power with 500 mA limitation from CN9, the USB OTG HS Micro-AB connector
5 V DC power with 500 mA limitation from CN21, the ST-LINK/V2 USB connector
5 V DC power from both CN1 and CN3, the extension connector for the daughterboard
(DTB for daughterboard on silkscreen).
The power supply is configured by setting the related jumpers JP4, JP32, JP18 and JP19, as described in Ta bl e 1 .
Doc ID 022813 Rev 2 9/40
STM3220G-EVAL demonstration board UM1519

Table 1. Power related jumpers and solder bridges

Jumper Description
JP4
JP32
Jumper reserved for future use (RFU). It should be left open. Default setting: not fitted
MCU_VDD is connected to 3.3 V power when JP32 is closed and MCU current consumption measurement can be done manually by multi-meter when JP32 is open. Default setting: fitted
JP18 is used to select one of the four possible power supply resources. To select the ST-LINK/V2 USB connector (CN21) power supply, set JP18 as shown: (default setting)
For power supply jack (CN18) to the STM322xG-EVAL, JP18 is set as shown to the right: (default setting)
To select daughterboard connector (CN1 and CN3) power supply, set JP18 as shown:
JP18
To select USB OTG FS (CN8) power supply, set JP18 as shown:
To select USB OTG HS (CN9) power supply, set JP18 as shown:
To select power supply jack (CN18) power supply to both STM322xG-EVAL and daughterboard connected on CN1 and CN3, set JP18 as shown (daughterboard must not have its own power supply connected)
10/40 Doc ID 022813 Rev 2
UM1519 STM3220G-EVAL demonstration board
Table 1. Power related jumpers and solder bridges (continued)
Jumper Description
To connect Vbat to the battery, set JP19 as shown:
JP19
To connect Vbat to 3.3 V power, set JP19 as shown: (default setting)
Note: The LED LD9 is lit when the STM322xG-EVAL demonstration board is correctly powered by
the 5 V.

1.4 Boot option

The STM322xG-EVAL demonstration board is able to boot from:
Embedded user flash
System memory with boot loader for ISP
Embedded SRAM for debugging.
The boot option is configured by setting switch SW1 (BOOT1) and SW2 (BOOT0). The BOOT0 can be configured also via RS232 connector CN16.

Table 2. Boot related switch

BOOT BOOT1 Boot source
0 Don’t care STM322xG-EVAL boots from user Flash (default setting)
1 1 STM322xG-EVAL boots from embedded SRAM
1 0 STM322xG-EVAL boots from system memory

1.5 Clock source

Four clock sources are available on the STM322xG-EVAL demonstration board for the STM32F207IFT6 and RTC embedded.
X1, 25 MHz crystal for Ethernet PHY with socket. It can be removed when clock is
provided by the MCO pin of the MCU
X2, 26 MHz crystal for USB OTG HS PHY
X3, 32 kHz crystal for embedded RTC
X4, 25 MHz crystal with socket for the STM32F207IGH6 microcontroller (it can be
removed from socket when internal RC clock is used).
Doc ID 022813 Rev 2 11/40
STM3220G-EVAL demonstration board UM1519

1.6 Reset source

The reset signal of the STM322xG-EVAL demonstration board is low active and the reset sources include:
Reset button B1
Debugging tools from JTAG connector CN14 and trace connector CN13
Daughterboard from CN3
RS232 connector CN16 for ISP
ST-LINK/V2.

1.7 EEPROM

A 64 Kbit EEPROM is connected to the I2C1 bus of the STM32F207IGH6.

Table 3. EEPROM related jumper and solder bridge

Jumper Description

1.8 Ethernet

The STM322xG-EVAL demonstration board supports 10M/100M Ethernet communication by a PHY DP83848CVV (U5) and integrated RJ45 connector (CN7). Both MII and RMII interfaces can be selected by setting jumpers JP5, JP6 and JP8 as listed below:

Table 4. Ethernet related jumpers and solder bridges

Jumper Description
JP8
JP6
JP24
JP8 is used to select MII or RMII interface mode. To enable MII, JP8 is not fitted. To enable RMII interface mode, JP8 is fitted. Default setting: not fitted
To enable MII interface mode, set JP6 as shown (default setting):
To enable RMII interface mode, set JP6 as shown:
The EEPROM is in write protection mode when JP24 is fitted.
Default setting: not fitted
12/40 Doc ID 022813 Rev 2
Loading...
+ 28 hidden pages