background image

January 2011

Doc ID 17398 Rev 3

1/53

UM0935

User manual

STEVAL-PCC009V2, IBU universal interface

based on the STM32F103RB

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 
I

2

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

2

C and UART interface and 

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.

www.st.com

Summary of Contents for STEVAL-PCC009V2

Page 1: ...pin and 30 pin interface In these interfaces there is a provision to connect a device which can communicate using I2C SPI and UART Therefore the IBU UI tool allows the user to connect a serial communi...

Page 2: ...settings 17 3 1 4 Using GPIOs as ADC mode settings 17 3 1 5 I2C read and write operation 17 3 2 Using the SPI interface of the 10 pin connector 18 3 2 1 Steps for making hardware connection 19 3 2 2...

Page 3: ...header 31 3 6 1 Steps for making hardware connection 32 3 6 2 GPIO settings 32 3 6 3 Using GPIOs in PWM mode settings 33 3 6 4 Using GPIOs in ADC mode settings 33 3 6 5 UART1 SCI1 header settings 33 3...

Page 4: ...Contents UM0935 4 53 Doc ID 17398 Rev 3 Appendix D Tables and figures 50 Revision history 52...

Page 5: ...and 30 pin interfaces 13 Table 3 Number of total GPIOs PWM GPIOs and ADC channels in 10 pin and 30 pin headers in various modes 13 Table 4 BOM 44 Table 5 All possible Interpretations of the 10 pin in...

Page 6: ...retation for I2C interface of 30 pin header 24 Figure 18 Connection diagram for I2C interface GPIOs 25 Figure 19 Transfer sequence of one byte of I2C 27 Figure 20 J2 Interpretation for SPI interface o...

Page 7: ...this the user must decide which communication interface of a 10 pin or 30 pin header should be used As shown in Table 1 below Section 3 is documented in such a manner that the user need only refer to...

Page 8: ...includes the following items Hardware content One board BOM list Schematic Software content DFU firmware DLL files of the I2C SPI and UART interface of the 10 pin header DLL files of the I2C SPI and U...

Page 9: ...UM0935 Getting started Doc ID 17398 Rev 3 9 53 Figure 1 Installation Window Step 2 read the license file and click the Next button if you accept the license Figure 2 License Window...

Page 10: ...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...

Page 11: ...he directory selected or in the default directory The shortcut of this software is also available in the Start menu The help file on how to use DLL is also available in the same directory 2 4 Hardware...

Page 12: ...e on the IBU UI board There are 8 GPIOs GND and VDD 3 3 V lines available as shown in Figure 7 below Figure 7 Jumper J1 J2 J2 is the 30 pin header available on the IBU UI board There are 24 GPIOs GND...

Page 13: ...in header along with the communication peripheral I2 C the user has 22 GPIOs of which 4 GPIOs can be used as PWM channels and 4 can be used as ADC channels Please refer to Appendix B Table 5 to unders...

Page 14: ...n headers and the I2 C mode of 30 pin headers at the same time or use the I2 C and SPI mode at the same time To switch between the 7 modes available the user needs to select using DLL the interface to...

Page 15: ...not 2 Press the SW1 reset button As a result the board should be enumerated as an IBU universal interface tool and it is shown as STM32 based IBU UI Tool as shown in Figure 9 in the device manager wi...

Page 16: ...e 3 1 1 Steps for making the hardware connection To use any I2 C based slave with the IBU UI tool you need to make the connection for jumper J1 as shown in Figure 11 The SCL synchronous clock line SDA...

Page 17: ...uty 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 Please note that the PWM generated on GPIO5 and GPIO6...

Page 18: ...this occurs when the user tries to perform read write operations with a data length equal to zero Also there is a communication status LED D1 available on the board It lights up whenever there is any...

Page 19: ...ghter board can be connected or left unconnected as per user requirements Figure 14 Connecting diagram for the 10 pin SPI interface GPIOs 3 2 2 GPIO settings For the GPIO which is to be used along wit...

Page 20: ...tal value can be obtained If the resolution set is 8 bit one byte is obtained for every sample of the ADC conversion If the resolution set is 12 bit two bytes are obtained for every sample of the ADC...

Page 21: ...free SPI timeout Other reasons this occurs when the user tries to perform read write operations with a data length equal to zero Also there is a communication status LED available on the board It lig...

Page 22: ...Os settings accordingly To understand the modes that are supported by a particular pin please refer to Table 5 By default UART_GPIO1 to UART_GPIO4 are in input pull up mode Here you can set only the G...

Page 23: ...9 bit UART SCI parity bits can be even odd or none UART SCI stop bits can be 1 or 2 UART SCI flow control can be hardware hardware CTS hardware RTS or none Once the selection is made it sets the UART...

Page 24: ...erefore this interface allows any UART SCI interface based slave device to be connected and tested 3 4 Using the I2C interface of the 30 pin header To use the I2C interface it must be selected by send...

Page 25: ...the 30 pin header 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 fea...

Page 26: ...be defined These parameters include the selection of I2 C address types 7 bit or 10 bit I2 C slave device address and I2 C speed As in I2 C standard protocol the I2 C address type can be 7 bit or 10...

Page 27: ...is shown in Figure 19 Figure 19 Transfer sequence of one byte of I2 C Therefore this interface allows any I2 C interface based slave device to be connected and tested 3 5 Using the SPI interface of t...

Page 28: ...ommunication VDD power supply line of the two boards should be connected if the daughter board is to be powered using IBU UI tool The GPIOs of the IBU UI tool and daughter board can be connected or le...

Page 29: ...hannel input To do this set the particular channel in ADC mode and perform the analog settings Analog settings include ADC sample time selection and ADC resolution After that specify the number of sam...

Page 30: ...e 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 status communication complete bus free so that the status of...

Page 31: ...he board is ready to be used in UART1 mode The section below explains how the tool and its features behave once selection has been made using the DLLs and it also explains how the hardware setup is to...

Page 32: ...nnected if the daughter board is to be powered using the IBU UI tool The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements Figure 24 Connection...

Page 33: ...rticular channel in ADC mode and perform the analog settings Analog settings include ADC sample time selection and ADC resolution After that specify the number of samples that are required Analog inpu...

Page 34: ...ol Data to be written should be provided in the hex format After every read or write operation the tool provides the status e g status communication complete bus free so that the status of the UART1 S...

Page 35: ...ard is ready to be used in UART1 mode The section below explains how the tool and its features behave once selection has been made using the DLLs and it also explains how the hardware setup is to be d...

Page 36: ...f the IBU UI tool and daughter board can be connected or left unconnected as per user requirements Figure 27 Connection diagram for 30 pin UART2 interface GPIOs 3 7 2 Select UART2 SCI2 interface using...

Page 37: ...additionally set as analog channel input To do this set the particular channel in ADC mode and perform the analog settings Analog settings include ADC sample time selection and ADC resolution After th...

Page 38: ...eration the tool provides the status e g status communication complete bus free so that the status of the UART2 SCI2 communication taking place between the IBU UI board and the UART2 SCI2 slave daught...

Page 39: ...tains the setup files After installing the setup plug in the board When the PC asks for the driver browse to the path of the driver The driver is available at the installed software path at Program Fi...

Page 40: ...57 B7 3 B 8 57 B5 86 0 86 3 3 B 706 1 9 9 1 3 B7 0 B 3 B7 0 B 227 3 B B6 3 B B6 3 B B60 3 B17567 3 B7 2 3 3 B7 3 B7 3 3 3 3 3 B B6 3 B B6 9 9 3 B63 B166 3 B B60 9 9 3 B B6 3 B B6 9 9 227 B3 227 B3 9 3...

Page 41: ...Schematics and BOM list UM0935 41 53 Doc ID 17398 Rev 3 Figure 31 JTAG interface mode selection switch and power supply section V...

Page 42: ...UM0935 Schematics and BOM list Doc ID 17398 Rev 3 42 53 Figure 32 10 pin com interface V...

Page 43: ...Schematics and BOM list UM0935 43 53 Doc ID 17398 Rev 3 Figure 33 30 pin com interface V...

Page 44: ...11 ESDALC6V1M6 uQFN16 STMicroelectronics ESDALC6V1M6 STMicroelectronics ESDALC6V1M6 NON ST devices Crystal and oscillator Y1 CRYSTAL 8 00 MHZ 20 pF 49US 11 35 x 4 5 mm crystal Digi Key X1094 ND Connec...

Page 45: ...ND Resistors R1 R5 Res 100 k 1 8 W 5 0805 SMD SMD0805 Digi Key 311 100KARTR ND R3 DNM R25 R8 R24 DNM R4 Res 0 0 1 8 W 0805 SMD SMD0805 Digi Key RMCF1 100RTR ND R6 R14 Res 1 M 1 8 W 5 0805 SMD SMD0805...

Page 46: ...P1 TP2 Term test point Slotted 032 DIA Test points slotted Digi Key 1031K ND Scews and nuts Not applicable Screw 02 series Pan Style 4 40 Screw Length 1 00 25 4 inches mm diameter 210 5 3 inches mm Al...

Page 47: ...PI GPIO ADC PWM Supply Input pull up input floating input with interrupt falling and rising Output push pull and output open drain 1 SCL TX No Yes Yes No No No 2 SDA RX No Yes Yes No No No 3 No No No...

Page 48: ...utput open drain 1 No No No No No No No 5V 2 No No No No No No No GND 3 No CTS No Yes Yes No No No 4 No RTS No Yes Yes No No No 5 No TX No Yes Yes No No No 6 No RX No Yes Yes No No No 7 No No No Yes Y...

Page 49: ...o AGND 24 No No No Yes Yes Yes No No 25 No No No Yes Yes Yes No No 26 No No No Yes Yes No No No 27 No No No Yes Yes No No No 28 No No No No No No No GND 29 No TX No Yes Yes No No No 30 No RX No Yes Ye...

Page 50: ...reads 0 As soon as the value changes from 0 to 1 rising interrupt detected the interrupt status reads 01 from 00 Input with falling interrupt When you perform the GPIO Read operation you get the GPIO...

Page 51: ...ads 01 from 00 Input with falling Interrupt When you perform the GPIO Read operation you get the GPIO value as 0 or 1 If no connection is made to this pin it reads 1 As soon as the value changes from...

Page 52: ...35 52 53 Doc ID 17398 Rev 3 Revision history Table 10 Document revision history Date Revision Changes 17 Sep 2010 1 Initial release 21 Sep 2010 2 Typo error in cover page 07 Jan 2011 3 Modified Table...

Page 53: ...ARRANTIES 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 UNLE...

Reviews: