ST UM1509, EVALSP320SPLC User Manual

UM1509
User manual
EVALSP320SPLC evaluation board for SPEAr320S
Introduction
This user manual describes the implementation of the EVALSP320SPLC evaluation board (order code: EVALSP320SPLC). This evaluation board can be used to evaluate the SPEAr320S microprocessor with a variety of devices and especially its Media Independent Interface (MII) Automation mode.
The EVALSP320SPLC evaluation kit includes a single application board identified as "MII mode".
The SPEAr320S microprocessor is mounted on a separate CPU board, which is not included with the EVALSP320SPLC kit. It must be ordered separately with order code EVALSP320SCPU.
The EVALSP320SCPU board must be plugged on the MII mode application board.
The MII mode application board is equipped with two Ethernet, three RS-232, one RS-485, two CAN, SPI, I²C communication interfaces and MicroSD card socket with SDIO interface. There are also two general-purpose push-buttons, four LEDs, a temperature sensor and a potentiometer available for the user interface.
The application board also includes digital input/output serial/parallel connectors with a pinout compatible to many existing evaluation boards from ST:
Digital input serial: STEVAL-IFP007V1
Digital input parallel: STEVAL-IFP004V1 and STEVAL-IFP008V1
Digital output serial: STEVAL-IFP009V1
Digital output parallel: STEVAL-IFP002V1, STEVAL-IFP001V1 and STEVAL-IFP006V1
The application board can be powered using a standard DC power supply (7 V to 30 V DC) or directly using a 24
Figure 1. SPEAr320S MII mode application board
V DC industrial mains supply.
March 2012 Doc ID 022703 Rev 2 1/36
www.st.com
Contents UM1509
Contents
1 Application board features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Application board block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Application board layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1 Unpacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Booting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2 Digital input / digital output connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.3 Controller–area network bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.4 RS-232 and RS-485 transceivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.5 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.6 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.7 Potentiometer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.8 General-purpose ADC connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.9 General-purpose buttons (B1 and B2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.10 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.11 Reset button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.12 MicroSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1 CAN DB9 plug connectors (CN1 and CN2) . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 Digital input serial connector (CN3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.3 Digital output serial connector (CN4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.4 Digital input parallel connector (CN5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.5 Digital output parallel connector (CN6) . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.6 Ethernet RJ-45 connectors (CN7 and CN8) . . . . . . . . . . . . . . . . . . . . . . . 19
5.7 General-purpose ADC connector (CN9) . . . . . . . . . . . . . . . . . . . . . . . . . 20
2/36 Doc ID 022703 Rev 2
UM1509 Contents
5.8 General-purpose GPIO and I2C connector (CN10) . . . . . . . . . . . . . . . . . 20
5.9 RS-485 DB9 socket and header connector (CN11 and CN12) . . . . . . . . 21
5.10 RS-232/UART0 DB9 plug connector (CN13) . . . . . . . . . . . . . . . . . . . . . . 21
5.11 RS-232/UART2 DB9 plug connector (CN14) . . . . . . . . . . . . . . . . . . . . . . 22
5.12 RS-232/UART1 DB9 plug connector (CN15) . . . . . . . . . . . . . . . . . . . . . . 22
5.13 MicroSD card connector (CN16) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.14 Power supply connectors (CN17 and CN18) . . . . . . . . . . . . . . . . . . . . . . 24
5.15 SPEAr320S CPU board connectors (J1 and J2) . . . . . . . . . . . . . . . . . . . 24
Appendix A Application board bill of materials. . . . . . . . . . . . . . . . . . . . . . . . . . 27
Appendix B License agreements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Doc ID 022703 Rev 2 3/36
List of figures UM1509
List of figures
Figure 1. SPEAr320S MII mode application board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 3. Application board layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 4. EVALSP320SPLC board with digital input and digital output cards . . . . . . . . . . . . . . . . . . 10
Figure 5. 8/16 input channel current limiter based on SCLT3-8, STEVAL-IFP007V1 . . . . . . . . . . . . 11
Figure 6. CAN DB9 plug connectors pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 7. Digital input serial connector pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 8. Digital output serial connector pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 9. Digital input parallel connector (CN5) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 10. Digital output parallel connector (CN6) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 11. Ethernet RJ-45 connectors (CN7 and CN8) - Front view . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 12. General-purpose ADC connector (CN9) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 13. General-purpose GPIO and I2C connector (CN10) pinout . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 14. RS-485 DB9 socket connector CN11 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 15. RS-485 header connector CN12 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 16. RS-232/UART0 DB9 plug connector (CN13) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 17. RS-232/UART2 DB9 plug connector (CN14) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 18. RS-232/UART1 DB9 plug connector (CN15) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 19. MicroSD card connector (CN16) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 20. Power supply connector CN18 diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 21. Power supply connector CN17 diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 22. 86-pin connectors (J1 and J2) pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4/36 Doc ID 022703 Rev 2
UM1509 List of tables
List of tables
Table 1. MII addresses of the Ethernet PHYs (U5 and U6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 2. Default configuration of the Ethernet PHYs (U5 and U6) . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 3. SMI interface configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 4. CAN0 transceiver settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 5. CAN1 transceiver settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 6. UART2 RS-232/RS-485 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 7. UART0/RS-232 transceiver signals from the CPU board . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 8. U16 DC/DC converter jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 9. ADC conversion settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 10. General-purpose LED configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 11. CAN DB9 plug connectors description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 12. Digital input serial connector description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 13. Digital output serial connector description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 14. Digital input parallel connector (CN5) description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 15. Digital output parallel connector (CN6) description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 16. Ethernet RJ-45 connectors (CN7 and CN8) description . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 17. General-purpose ADC connector (CN9) description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 18. General-purpose GPIO and I2C connector (CN10) pinout description. . . . . . . . . . . . . . . . 20
Table 19. RS-485 DB9 socket connector CN11 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 20. RS-485 header connector CN12 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 21. RS-232/UART0 DB9 plug connector (CN13) description . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 22. RS-232/UART2 DB9 plug connector (CN14) description . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 23. RS-232/UART1 DB9 plug connector (CN15) description . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 24. MicroSD card connector (CN16) description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 25. Power supply connector CN18 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 26. Power supply connector CN17 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 27. 86-pin connector (J1) description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 28. 86-pin connector (J2) description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 29. List of components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 30. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Doc ID 022703 Rev 2 5/36
Application board features UM1509
ST802RT1 A
SPEAr320S
CPU
Board
CAN 2
Digital input serial
Digital input
Digital output serial
Digital output
ST802RT1 A
RJ
4
DC/DC
+5V
Button
Reset
RJ4
RS232
DB9/M
RS232
DB9/M
DB9/M
RS232
DB9/F
RS485
Potentiometer
Temperature
ADC connector
DB9/M
GPIO/I2C
LEDs
Micro SD card CAN 1 DB9/M

1 Application board features

2 x Ethernet RJ-45 connectors (ST802RT1A)
2 x CAN DB9 plug connectors
3 x RS-232 DB9 plug connectors (ST3232EBTR)
1 x RS-485 DB9 socket connector (ST3485EBDR)
Digital input connectors (parallel and serial) compatible with STEVAL-IFP007V1,
STEVAL-IFP008V1 and STEVAL-IFP004V1 evaluation boards
Digital output connectors (parallel and serial) compatible with STEVAL-IFP009V1,
STEVAL-IFP001V1, STEVAL-IFP002V1 and STEVAL-IFP006V1 evaluation boards
On-board temperature sensor (STLM20W87F) and potentiometer (analog input for
ADC)
Analog extension connector featuring 8 ADC lines
General-purpose extension connector with GPIOs and I
DC/DC converter L7986A (+24 V / +5 V)
MicroSD card socket
4 LEDs, 2 general-purpose buttons and system reset button
2
C functionality

1.1 Application board block diagram

Figure 2. Block diagram
6/36 Doc ID 022703 Rev 2
UM1509 Application board layout
U9 Temperature sensor
LEDs
CN16 MicroSD card
CN1
CAN0
CN2
CAN1
RS232_0/
UART0
RS232_1/
UART1
CN14 RS232_2/ UART2
CN12 RS485/ UART2
CN7 E
thernet
1
CN8 Ethernet2
CN3 Digital input serial
CN5
Digital
input
parallel
CN18, CN17 Power plugs
CN6 Digital output
p
ara lle l
R62 Potenti ometer
CN4 Digital output serial
B1 User but to n 1
B2 User but to n 2
B3
Res et
SPEAr 320 CPU board
CN10 GPIO , I2C connector
CN9 ADC connector

2 Application board layout

Figure 3. Application board layout
Note: Evaluation boards for SPEAr320S may use the same PCB as SPEAR320 devices. This is
why the label "SPEAr320 CPU BOARD" can be found on some SPEAr320S boards.
Doc ID 022703 Rev 2 7/36
Getting started UM1509

3 Getting started

3.1 Unpacking

Warning: This board contains static sensitive devices.
The EVALSP320SPLC evaluation board is shipped in protective anti-static packaging. Do not submit the board to high electrostatic potentials, and follow good practices for working with static sensitive devices.
Wear an anti-static wristband. Wearing a simple anti-static wristband can help
prevent ESD from damaging the board.
Zero potential. Always touch a grounded conducting material before handling the
board, and periodically while handling it.
Use an anti-static mat. When configuring the board, place it on and anti-static mat to
reduce the possibility of ESD damage.
Handle only the edges. Handle the board by its edges only, and avoid touching board
components.

3.2 Connecting

1. Connect a serial cable from the application board (connector CN13: RS232_0/UART0) to a host PC (see
2. On a host PC running Windows or Linux, start the Terminal program.
3. Connect a power supply to the EVALSP320SPLC evaluation board as described in
Section 4.5: Power supply on page 13.
4. Power on the board. The Terminal program displays a sequence of boot messages followed by the Linux console prompt.
For more information, refer to user manual UM0844 "Getting started with Linux for SPEAr" available at www.st.com/spear.

3.3 Booting

The EVALSP320SPLC evaluation board can boot a Linux kernel pre-installed in the serial NOR Flash.
At power on, the serial port outputs a brief header message with some uBoot information (uBoot version, SDK version, and some internal hardware information). At this point you can choose to:
Stop the system directly in uBoot: Press the spacebar on the host computer
keyboard before the boot delay time expires (default is 3 seconds).
Boot Linux: The system logs you in automatically as super user and the Linux shell
prompt displays on the screen.
Figure 3: Application board layout).
8/36 Doc ID 022703 Rev 2
UM1509 Configuration

4 Configuration

4.1 Ethernet

There are two Ethernet PHYs (U5 and U6) available on the board that are connected through the media independent interfaces (MII) to the Ethernet MACs on the CPU board processor.
By default the MII addresses of the Ethernet PHYs are selected as shown in Ta bl e 1.
)
Table 1. MII addresses of the Ethernet PHYs (U5 and U6)
Ethernet PHY MII address
U5 0x01
U6 0x02
By default the initial configuration of the Ethernet PHYs is selected as shown in Ta bl e 2.
Table 2. Default configuration of the Ethernet PHYs (U5 and U6)
Function Default configuration
Auto negotiation Enabled
10/100 Mbits 100 Mbits selected for auto negotiation advertisement
Half/Full duplex Full duplex selected for auto negotiation advertisement
Internal Loopback Disabled
Power down Disabled (PHY is not in Power down state)
MII/RMII mode MII selected
There are two LEDs embedded in each RJ-45 connector (CN7 and CN8) that indicate the status of the line:
The green LED in the connector is driven on continuously when the Ethernet link is
established with the counterpart.
The yellow LED in the connector blinks when there is TX or RX activity.
The Serial Management Interface (SMI) is part of the MII interface and is used to transfer management information between the MAC and PHY (access of the PHY registers). There are two SMI interfaces coming from each Ethernet MAC. It is possible to use only one of them to control both Ethernet PHYs or each SMI can be used separately for each PHY.
Table 3. SMI interface configuration
Function Default configuration
MII1_MDC, MII1_MDIO used for PHY1 (U5) and MII2_MDC, MII2_MDIO used for PHY2 (U6)
R93,R94, R95, R96 loaded R27, R29 not loaded (Default)
Doc ID 022703 Rev 2 9/36
Configuration UM1509
(
EVALSPEAR320PLC
board
p
(hig
Table 3. SMI interface configuration (continued)
Function Default configuration
MII1_MDC, MII1_MDIO used for both PHYs (U5, U6)
MII2_MDC, MII2_MDIO used for both PHYs (U5, U6)
For the two Ethernet PHYs (U5 and U6 in MII mode) to function correctly, it is necessary to clock them using a 25-MHz clock. There are two ways to deliver the 25-MHz clock signal to the devices.

4.2 Digital input / digital output connectors

The digital input and digital output connectors are used to extend the EVALSP320SPLC board with the industrial input and output cards.
The input sensors (for example, proximity switches) of the controlled industrial process are normally decoupled and connected by the current limiters based on the CLT and SCLT devices of the microcontroller. The digital outputs, also electrically decoupled, are based on high-side drivers which are used in industrial environments to switch industrial loads (valves, relays, …) and process control. For both the inputs and outputs, we can use either serial (SPI) or parallel (GPIO) IN/OUT cards.
The EVALSP320SPLC board is compatible with the following cards:
Digital input serial (CN3): STEVAL-IFP007V1
Digital output serial (CN4): STEVAL-IFP009V1
Digital input parallel (CN5): STEVAL-IFP004V1 and STEVAL-IFP008V1
Digital output parallel (CN6): STEVAL-IFP002V1, STEVAL-IFP001V1 and STEVAL-
IFP006V1
R93, R94, R27, R29 loaded R95, R96 not loaded
R95, R96, R27, R29 loaded R93, R94 not loaded
Figure 4. EVALSP320SPLC board with digital input and digital output cards
Controlled
rocess
Digital input
current limiters)
10/36 Doc ID 022703 Rev 2
Digital output
h side drivers)
UM1509 Configuration
123
123
123
12
Figure 5. 8/16 input channel current limiter based on SCLT3-8, STEVAL-IFP007V1

4.3 Controller–area network bus

The EVALSP320SPLC evaluation board supports two channels of CAN2.0A/B compliant controller–area network (CAN) bus communication based on a 3.3 speed mode, standby mode and slope control mode are available and can be selected by setting jumper JP1 for CAN0 and jumper JP4 for CAN1.
Table 4. CAN0 transceiver settings
Jumper Description Configuration
CAN0 transceiver works in Standby mode when JP1 is set.
JP1
JP2
CAN0 transceiver works in High-speed mode when JP1 is set (Default).
CAN0 transceiver works in Slope control mode when JP1 is open.
CAN0 terminal 120 Ω resistor is enabled when JP2 is loaded. Default setting: loaded
V CAN transceiver. High-
Doc ID 022703 Rev 2 11/36
Loading...
+ 25 hidden pages