ST STEVAL-PCC009V2 User Manual
ST STEVAL-PCC009V2 User Manual

ST STEVAL-PCC009V2 User Manual

Ibu universal interface
Table of Contents

Advertisement

Quick Links

Introduction
The IBU universal interface (UI) is a tool which contains:
An IBU UI board (STEVAL-PCC009V2), which is an STM32-based USB-to-serial
interface bridge consisting of a configurable 10-pin and 30-pin interface
Dll files which are available software resources that allow the user to develop customized
GUIs as per application requirements.
This user manual explains the functions of the IBU UI tool (STEVAL-PCC009V2) and how to
use it. IBU UI is a complete tool to rapidly develop application prototypes. On this
demonstration board, the STM32 microcontroller is used as the interface between the PC
and the end device. Due to intelligence available in the STM32 device, various
communication peripherals are multiplexed with GPIOs and ADC and PWM channels in
both a 10-pin and 30-pin interface.
In these interfaces, there is a provision to connect a device which can communicate using
2
I
C, SPI and UART. Therefore, the IBU UI tool allows the user to connect a serial
communication based device to the PC. At the same time it allows the user to control some
GPIOs available in 10-pin and 30-pin interfaces and set them in input/output modes, as per
application requirements.
Power to the board is provided from a USB mini B-type connector.
DLL files are provided with this tool so that the user can make their own customized PC GUI
as per requirements.
Therefore the IBU UI tool, by taking care of all the microcontroller complexities, provides an
option for the end user to focus on its application development, therefore increasing its
efficiency and time to market.
The IBU UI tool supports two modes:
Application mode: this PC GUI allows interfacing of the SPI, I
controlling the communication parameters with the help of the GUI itself
DFU mode: this mode allows the user to change the firmware, if required, to suit its
applications.
January 2011
STEVAL-PCC009V2, IBU universal interface
Doc ID 17398 Rev 3
User manual
based on the STM32F103RB
2
C and UART interface and
UM0935
1/53
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STEVAL-PCC009V2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STEVAL-PCC009V2

  • Page 1 Dll files which are available software resources that allow the user to develop customized GUIs as per application requirements. This user manual explains the functions of the IBU UI tool (STEVAL-PCC009V2) and how to use it. IBU UI is a complete tool to rapidly develop application prototypes. On this demonstration board, the STM32 microcontroller is used as the interface between the PC and the end device.
  • Page 2: Table Of Contents

    Contents UM0935 Contents Section organization of the user manual ......7 Getting started ..........8 System requirements .
  • Page 3 UM0935 Contents 3.4.1 Steps for making hardware connection ......25 3.4.2 GPIO settings ..........25 3.4.3 Using GPIOs in PWM mode settings .
  • Page 4 Contents UM0935 Appendix D Tables and figures ........50 Revision history .
  • Page 5 UM0935 List of tables List of tables Table 1. Section to be referred to for a particular mode of a 10-pin or 30-pin interface ... 7 Table 2. Availability of various communication peripherals and GPIOs on 10-pin and 30-pin interfaces .
  • Page 6 Installation complete ............11 Figure 6. STEVAL-PCC009V2, IBU universal interface board ......11 Figure 7.
  • Page 7: Section Organization Of The User Manual

    UM0935 Section organization of the user manual Section organization of the user manual The user must go through Section 2.1 Section 2.4 of this manual to perform the initial setup that is required to run the IBU UI tool. After reading these sections, the user can understand how to install the software and hardware setup.
  • Page 8: Getting Started

    Getting started UM0935 Getting started System requirements In order to use the IBU universal interface (IBU UI) tool with a Windows operating system, a recent version of Windows, such as Windows 2000 or Windows XP, must be installed on the The version of the Windows OS installed on the PC may be determined by clicking on the “System”...
  • Page 9: Figure 1. Installation Window

    UM0935 Getting started Figure 1. Installation Window ● Step 2: read the license file and click the “Next” button if you accept the license. Figure 2. License Window Doc ID 17398 Rev 3 9/53...
  • Page 10: Figure 3. Destination Folder

    Getting started UM0935 ● Step 3: select the folder in which to install the software. By default it installs the software in the following path: C:\Program Files\STMicroelectronics\USB to serial interface SDK\Dll&Libraries Figure 3. Destination folder ● Step 4: after selecting the folder and clicking the “Next” button, the software starts installing.
  • Page 11: Hardware Installation

    DLL is also available in the same directory. Hardware installation Figure 6 below shows a snapshot of the IBU UI board. Figure 6. STEVAL-PCC009V2, IBU universal interface board 30-pin 10-pin 20-pin Doc ID 17398 Rev 3...
  • Page 12: Power Supply

    Getting started UM0935 2.4.1 Power supply The board is directly powered by the USB mini B-type connector J4 (bus powered). There is a power LED D2 available onboard, as soon as the board is powered, using the USB mini-B cable, it lights up. 2.4.2 Jumper/header settings ●...
  • Page 13: Selection Of The Interface

    UM0935 Getting started Selection of the interface The tool has 10-pin and 30-pin interface headers. Both of these headers support various communication peripherals, as shown in Table These headers and their corresponding pins can be used in various modes and GPIO configurations.
  • Page 14 Getting started UM0935 Based on the above description, the user is able to select which mode is most suited to their application development. Please note that any two communication interfaces of 10-pin or 30-pin headers cannot be used at the same time. For instance, the user cannot use the I C mode of 10-pin headers and the I C mode of 30-pin headers at the same time or use the I...
  • Page 15: Running The Ibu Ui Tool

    UM0935 Running the IBU UI tool Running the IBU UI tool To run the board, connect it to the PC with the USB mini B-type cable. As soon as the board is powered using the USB mini-B cable, power LED D2 lights up. If this LED fails to light up, take the following steps: Check if the USB cable is working properly or not Press the SW1 reset button.
  • Page 16: Using The I2C Interface Of The 10-Pin Header

    Running the IBU UI tool UM0935 Using the I C interface of the 10-pin header Select the I C interface by sending the command from the DLL, as mentioned in the DLL help file. After this, the board is ready to be used in I C mode.
  • Page 17: Gpio Settings

    UM0935 Running the IBU UI tool 3.1.2 GPIO settings For the GPIO which is to be used along with the I C interface, it is necessary to make the proper settings. These GPIOs may be used as control lines, chip select or status line, such as interrupt line, or to generate a clock signal using the PWM feature available on one pin.
  • Page 18: Using The Spi Interface Of The 10-Pin Connector

    Running the IBU UI tool UM0935 Then, provide values, to read and write from the slave device, to the tool. Data to be written should be provided in the hex format. After every read or write operation, the tool provides the status (e.g.
  • Page 19: Steps For Making Hardware Connection

    UM0935 Running the IBU UI tool Figure 13. J2 interpretation for SPI interface 3.2.1 Steps for making hardware connection To use any SPI based slave with the IBU UI tool, you need to make the connection for jumper J1, as shown in Figure ●...
  • Page 20: Using Gpios As Pwm Settings

    Running the IBU UI tool UM0935 Through selection, the GPIO can be set in different modes (as shown in Table 7), such as simple input mode, input with interrupt, and push-pull output mode. Also in the SPI interface, there is an option in GPIO3 and GPIO4 to use this GPIO as the PWM clock signal. And there is an option in GPIO4 to use it as the ADC channel.
  • Page 21: Using The Uart(Sci) Interface Of The 10-Pin Header

    UM0935 Running the IBU UI tool The SPI register address length can range from 0 to 4 bytes. Depending on the address length given, the register address should be provided in hex format. For instance, if the register address is 3 bytes, its value should be in the form 0x123. Then, provide values, to read and write from the slave device, to the tool.
  • Page 22: Steps For Making Hardware Connection

    Running the IBU UI tool UM0935 3.3.1 Steps for making hardware connection To use any UART (SCI) based slave with the IBU UI tool, you need to make the connection for jumper J1, as shown in Figure ● The TX (transmitter), RX (receiver), and GND (ground line) should be connected to the corresponding lines of the daughter board for UART (SCI) communication ●...
  • Page 23: Using Gpio In Adc Settings

    UM0935 Running the IBU UI tool 3.3.4 Using GPIO in ADC settings As mentioned above, GPIO 4 can also additionally be set as analog channel input. To do this, set the GPIO 4 in ADC mode and perform the analog settings. Analog settings include ADC sample time selection and ADC resolution.
  • Page 24: Using The I2C Interface Of The 30-Pin Header

    Running the IBU UI tool UM0935 be non-zero and in decimal format. The status messages are of the following types depending on the communication that has taken place. ● Communication complete/bus free ● Error conditions ● UART(SCI) timeout ● Other reasons: this occurs when the user tries to perform read/write operations with a data length equal to zero.
  • Page 25: Steps For Making Hardware Connection

    UM0935 Running the IBU UI tool 3.4.1 Steps for making hardware connection To use any I C based slave with the IBU UI tool, you need to make the connection for jumper J2, as shown in Figure ● The SCL (synchronous clock line), SDA (serial data), and GND (ground line) should be connected to the corresponding lines of the daughter board for I C communication ●...
  • Page 26: Using Gpios In Adc Mode Settings

    Running the IBU UI tool UM0935 The frequency of the PWM clock generated can vary from 10 kHz to 10 MHz. The duty cycle of the PWM clock can vary from 0 % to 100 %. Logic '0' is obtained with the duty cycle at 0 % and logic '1' is obtained with the duty cycle at 100 %.
  • Page 27: Using The Spi Interface Of The 30-Pin Header

    UM0935 Running the IBU UI tool checked. Please note that the number of bytes to be written should be non-zero and in decimal format. The status messages are of the following types depending on the communication that has taken place. ●...
  • Page 28: Steps For Making Hardware Connection

    Running the IBU UI tool UM0935 Figure 20. J2 Interpretation for SPI interface of 30-pin header 3.5.1 Steps for making hardware connection To use any SPI based slave with the IBU UI tool, you need to make the connection for jumper J2, as shown in Figure ●...
  • Page 29: Using Gpios In Pwm Mode Settings

    UM0935 Running the IBU UI tool To understand the modes that are supported by a particular pin, please refer to Table Through selection, the GPIO can be set in different modes, as shown in Table By default SPI_GPIO1 to SPI_GPIO20 are in input pull-up mode. Please refer to Table 3.5.3 Using GPIOs in PWM mode settings...
  • Page 30: Spi Read And Write Operation

    Running the IBU UI tool UM0935 3.5.6 SPI read and write operation Once the SPI settings have been made, it is possible to read the registers of the slave device and write in the registers of the slave device. After every read and write operation, the user can obtain information about the status of the communication.
  • Page 31: Using The Uart1(Sci1) Interface Of The 30-Pin Header

    UM0935 Running the IBU UI tool Figure 22. Transfer sequence of one byte of SPI Therefore, this interface allows any SPI interface based slave device to be connected and tested. Using the UART1(SCI1) interface of the 30-pin header To use the UART1 interface, it must be selected by sending the command from the DLL, as mentioned in the DLL help file.
  • Page 32: Steps For Making Hardware Connection

    Running the IBU UI tool UM0935 Figure 23. J2 interpretation for UART1 (SCI1) interface of 30-pin header 3.6.1 Steps for making hardware connection To use any UART1 (SCI1) based slave with the IBU UI tool, you need to make the connection for jumper J2, as shown in Figure ●...
  • Page 33: Using Gpios In Pwm Mode Settings

    UM0935 Running the IBU UI tool Through selection, the GPIO can be set in different modes. By default, UART1 (SCI1)_GPIO1 to UART1 (SCI1)_GPIO20 are in input pull-up mode. 3.6.3 Using GPIOs in PWM mode settings Also in the 30-pin interface in UART1 (SCI1) mode, there is a provision to use pin# 7,8, 19, and 21 to use these GPIOs as PWM clock signal.
  • Page 34: Uart1 (Sci1) Read And Write Operation

    Running the IBU UI tool UM0935 3.6.6 UART1 (SCI1) read and write operation Once the UART1 (SCI1) settings have been made, it is possible to read the registers of the slave device and write in the registers of the slave device. After every read and write operation, the user can obtain information about the status of the communication.
  • Page 35: Using Uart2 (Sci2) Interface Of 30-Pin Header

    UM0935 Running the IBU UI tool Figure 25. Transfer sequence of one byte of UART1 (SCI1) Therefore, this interface allows any UART1 (SCI1) interface based slave device to be connected and tested. Using UART2 (SCI2) interface of 30-pin header To use the UART1 interface, it must be selected by sending the command from the DLL, as mentioned in the DLL help file.
  • Page 36: Steps For Making Hardware Connection

    Running the IBU UI tool UM0935 Figure 26. J2 interpretation for UART2 (SCI2) interface of 30-pin header 3.7.1 Steps for making hardware connection To use any UART2 (SCI2) based slave with the IBU UI tool, you need to make the connection for jumper J2, as shown in figure below.
  • Page 37: Using Gpios In Pwm Mode Settings

    UM0935 Running the IBU UI tool To understand the modes that are supported by a particular pin, please refer to Table Through selection, the GPIO can be set in different modes, as shown inTable By default UART1 (SCI1)_GPIO1 to UART1 (SCI1)_GPIO20 are in Input pull-up mode, please refer to Table 3.7.4...
  • Page 38: Uart2 (Sci2) Read And Write Operation

    Running the IBU UI tool UM0935 3.7.7 UART2 (SCI2) read and write operation Once the UART2 (SCI2) settings have been made, it is possible to read the registers of the slave device and write in the registers of the slave device. After every read and write operation, the user can obtain information about the status of the communication.
  • Page 39: Working In Dfu Mode

    To work in DFU mode, please send the appropriate command through the DLL. To do this, please refer to the DLL help file. The DFU setup is available at www.st.com/mcu/modules. Scroll down to Software-PC\DFUSE on the relevant webpage to download the zip folder.
  • Page 40: Appendix A Schematics And Bom List

    Appendix A Schematics and BOM list Figure 30. Microcontroller section...
  • Page 41: Figure 31. Jtag Interface, Mode Selection Switch And Power Supply Section

    Figure 31. JTAG interface, mode selection switch and power supply section...
  • Page 42: Figure 32. 10-Pin Com Interface

    Figure 32. 10-pin com interface...
  • Page 43: Figure 33. 30-Pin Com Interface

    Figure 33. 30-pin com interface...
  • Page 44 SO-8 STMicroelectronics LD1117D33TR STMicroelectronics LD1117D33TR STM32F103RBT6 LQFP64 STMicroelectronics STM32F103RBT6 STMicroelectronics STM32F103RBT6 USBLC6-2P6 SOT-666 STMicroelectronics USBLC6-2P6 STMicroelectronics USBLC6-2P6 ST devices U2,U3,U4,U5, U6,U7,U8, ESDALC6V1M6 uQFN16 STMicroelectronics ESDALC6V1M6 STMicroelectronics ESDALC6V1M6 NON ST devices Crystal and CRYSTAL 8.00 MHZ 11.35 x 4.5 mm Digi-Key...
  • Page 45 Table 4. BOM (continued) Manufacturer’s Reference Component ordering code / Supplier ordering Category Package Manufacturer Supplier designator Description orderable part code number C1,C2,C3,C6, C9,C10,C11, 100 nF SMD0805 C12,C14,C16, C4,C5 22 pF SMD0805 Capacitors 4.7 µF SMD1206 CAP CER 10 µF 16 C7,C18 SMD1206 Digikey...
  • Page 46 Table 4. BOM (continued) Manufacturer’s Reference Component ordering code / Supplier ordering Category Package Manufacturer Supplier designator Description orderable part code number R18,R19,R20, 4.7 kΩ SMD0805 R21,R22,R23 RN1,RN2, Res array 150 Ω 5% RN4,RN5, 1206 (3216 Resistors Digi-Key Y9151CT-ND RN6,RN7, 4 res SMD Metric), Convex RN8,RN9...
  • Page 47: Appendix B All Possible Interpretations Of The 10-Pin Interface

    Appendix B All possible interpretations of the 10-pin interface Table 5. All possible Interpretations of the 10-pin interface GPIO Input pull-up, input floating, Output push-pull Pin# UART Supply input with and output open interrupt falling drain and rising V_CON MISO MOSI...
  • Page 48: Appendix C All Possible Interpretations The Of 30-Pin Interface

    Appendix C All possible interpretations the of 30-pin interface Table 6. All possible interpretations of the 30-pin interface GPIO Input pull-up, input floating, Output push Pin# UART Supply input with pull and output interrupt falling open drain and rising V_CON MISO MOSI...
  • Page 49 Table 6. All possible interpretations of the 30-pin interface (continued) GPIO Input pull-up, Pin# UART input floating, Output push Supply input with pull and output interrupt falling open drain and rising AGND...
  • Page 50: Table 7. Gpio Modes Of 10-Pin Interface

    Tables and figures UM0935 Appendix D Tables and figures Table 7. GPIO modes of 10-pin interface Mode Sub-mode Expected result Input pull-up (default When you perform the GPIO “Read” operation, you get the GPIO mode) value as ‘0’ or ‘1’. If no connection is made to this pin, it reads 1. When you perform the GPIO “Read”...
  • Page 51: Table 8

    UM0935 Tables and figures Table 8. GPIO modes of 30-pin interface Mode Sub-mode Expected Result Input pull-up When you perform the GPIO “Read” operation, you get the GPIO value as (default mode) ‘0’ or ‘1’. If no connection is made to this pin, it reads 1. When you perform the GPIO “Read”...
  • Page 52: Table 4. Bom

    Revision history UM0935 Revision history Table 10. Document revision history Date Revision Changes 17-Sep-2010 Initial release. 21-Sep-2010 Typo error in cover page – Modified: Table 4: BOM 07-Jan-2011 – Modified: title 52/53 Doc ID 17398 Rev 3...
  • Page 53 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.

Table of Contents