Home
User manual - STMicroelectronics
Contents
1. 11 29 Running the demonstration board UM1540 2 1 1 12 29 Figure 14 SPI interface window en 820501 0000 00 00 09 0000 00 00 82 0501 0001 0000 09 0000 0000 820501 01 00 00 00 09 0000 0000 AM12217v1 Now the PC GUI is ready to be used for testing SPI based slave devices But before it can be used make the connection for jumper J3 as shown in Figure 14 Figure 15 J3 interpretation for SPI interface J3 j 3 5 SPI1_SCK_DB SPI1_MISO_DB7 SPI MOSI DB 9 GPIO 1 11 GPIO 4 PB SP11 NSS GPIO3 13 GPIO 2 VDD 15 GND AM12598v1 GPIO settings Before making the connection to the J2 it is necessary to make the proper settings of the GPIOs which are to be used along with the SPI interface This can be done be clicking the SPI pin interface as shown in Figure 16 2 Doc ID 023152 Rev 1 UM1540 Running the demonstration board Figure 16 SPI pin interface in PC GUI mn 2 y E omat ono mso ve Leros vo wos se Leet Pin 10 Pin 1 a i e AM12219v1 Please follow the instructions given in Section 2 2 1 to perform the GPIO settings Note here that in this case only GPIO3 and GPIO 4 have the PWM clock generation capability 2 1 2 SPI header settings Once the GPIO settings are completed it is possible to connect the daughterboard to the UUSCI demonstration board and it can be assumed that correct settings of the daughterboard con
2. By starting the universal dongle GUI on the PC a graphical interface Figure 9 for controlling the demonstration board is seen This PC software is used to issue various commands and to control data transfer Figure 9 Universal dongle GUI AM12212v1 You can check whether the board is connected or not by clicking the connection check button If the board is not connected then the following message appears Doc ID 023152 Rev 1 9 29 Running the demonstration board UM1540 2 1 10 29 Figure 10 Board is not connected to PC Status ti i 1 Board is not Connected Please check Connections AM12213v1 If the board is connected the following message appears Figure 11 Board is connected to PC status EE LA Board is Connected to PC AM12214v1 Once this is done the PC GUI is properly connected to the demonstration board and ready to be used Using SPI interface To connect the SPI interface first select Synchronous from the operation menu as shown in Figure 12 Doc ID 023152 Rev 1 OT UM1540 Running the demonstration board a Figure 12 Selection of synchronous interface Universal Dongle GUI Asynchronous Disconnect Clear Log Message Save Log Message Exit BBSS d 15362755 Figure 13 Selection of SPI interface Universal Dongle GUI EEx Time Stamp 15 36 27 55 Doc ID 023152 Rev 1
3. Ger UM1540 J User manual Opto isolated universal USB to serial bridge Introduction This user manual explains the functioning of the STM32F103xx based universal USB to serial communication interface UUSCI with opto isolated channels suitable for applications such as motor control boards directly supplied from the mains This user manual describes the functionalities present in the opto isolated UUSCI demonstration board and demonstrates how to use them The STM32F103xx microcontroller is used as the main digital controller to interface with the slave devices The system utilizes opto isolators to isolate the STM32F103xx and slave devices to control configure and monitor it The UUSCI has a 16 pin interface with which it is possible to connect a device which can communicate using SPI and UART Therefore the UUSCI tool allows the user to connect a serial communication based device to the PC It also allows at the same time some GPIOs available in that 16 pin interface to be controlled and set in input output modes as shown in the pin diagram In this demonstration board the STM32F103xx microcontroller is used as the interface between the PC and the end device Due to intelligence available in the STM32F103xx device SPI and UART are connected to the 16 pin interface Power to the board is provided from a USB mini B type connector In addition external target VDD T and GND T supply is used to power up the opto isolators output s
4. This user manual is available in the same directory 1 4 Hardware setup The figure below shows a snapshot of the UUSCI demonstration board Figure 6 STEVAL PCC009V4 universal USB to serial communication interface demonstration board Reset switch DEMO SOARS ONLY D FOR EVALUATION PURPO S se E woe 8 u Al Ki sil pn eg laa ve bes p x P 16 pin SPI ini Lc UART GPIO USB mini B n po l connector 4 interface means ET pn Tea Tri nA dee gg Len fa 20 pin JTAG connector AM12209v1 d Doc ID 023152 Rev 1 7 29 Getting started UM1540 1 4 1 1 4 2 8 29 Power supply The demonstration board is directly powered by the USB mini B type connector bus powered In addition the demonstration board should be powered externally with VDD_T and GND T Jumper connector settings J3 is the 16 pin connector available as the default interface for UUSCI this demo board There are 14 GPIOs Gnd and VDD lines available as shown below Figure 7 Interface header pin diagram J3 PAO USART2 CTS DB 1 2 PA1 USART2 RTS DB PA2 USART2 TX DB 3 4 PA3 USART2 RX DB PA4 USART2 CLK DB 5 6 DAS SPI1 SCK DB DAG SPI1 MISO DB 7 8 PA7 SPI1 MOSI DB PB7 I2C1 SDA DB 9 10 PB6 I2C1 SCL DB PB5 I2C1 SMBAI DB 11 12 PB9 TIM4 CHA DB PB8 TIM4 CH3 DB 13 14 PCO GPIO IN10 DB VDD T 15 16 GND T CON16A C39 100nF AM101
5. the register address length from O to 4 bytes can be selected 0 byte length is used for random read and write operation The values to read and write from the slave device can be filled accordingly After every read or write operation the GUI updates the status in the status section for example status communication complete bus free so that the user can check the status of the SCI communication happening between the UUSCI demonstration board and the SCI slave daughterboard Therefore this interface allows the user to connect any SCI interface based slave device Doc ID 023152 Rev 1 UM1540 Working in DFU mode 3 Working in DFU mode To work in DFU mode push the switch SW2 so as to connect it to R17 then press the Reset button on the board LED D1 indicates power and D2 glows as an indicator for DFU mode DFU setup is available at the following link http www st com mcu modules php name mcu amp file familiesdocs amp fam 1 10 Scroll down to Software PC DFUSE on the web page to download the zip folder The folder includes the setup After installing the setup the board can be plugged in When the PC asks for the driver browse to the path of the driver The driver is available at the installed software path in the PC at Program Files STMicroclectronics DFUSe Driver The user manual for the DFU GUI is also available on the same link As a result the demonstration board should be enumerated as device firmware upg
6. 0 Q 1 8 W A R5 R6 R9 0805 SMD SMD0805 Any Digi Key RMCF1 100RTR ND R3 R4 DNM ha E W SMD0805 Any Digi Key RMCF1 100RTR ND RES 1 MQ 1 8 W RMCF1 101MJRTR R7 R22 5 0805 SMD SMD0805 Any Digi Key ND R8 R11 R12 R13 R14 R ate 16 R17 R18 R19 R20 10 kQ SMD0805 Any Digi Key P10KADTR ND Resistors RES 1 5 KO 1 8 W R21 5 0805 SMD0805 Any Digi Key P1 5KACT ND R10 R23 360E SMD0805 Any Digi Key R15 100E SMD0805 R24 R25 R26 R27 R28 R29 R30 R31 R32 R33 47E SMD0805 Any R34 R35 R36 R37 R38 R39 47 KO SMD0805 Any SIeMejewu JO 118 OvSLINN Revision history UM1540 Revision history 28 29 Table 2 Document revision history Date Revision Changes 12 Nov 2012 1 Initial release Doc ID 023152 Rev 1 UM1540 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or
7. Le PA1 USART2 RTS ACPLO7 GNDT Z nn opet ue ACPL O72L a voo voo ur vi nc H 3 e PAZ USART2 TX DB VDDT 4 avs GND a Ne Vor te GND T VEN PAG SPI1 MISO DB BEN 2 VDD1 vo E GNDI GND2 al No PA6_SPI1 MISO ACPLO AL Ab SS GND T 4 GND1 GND2 Ur 072 Pa USARTE AX DB mm DOT MU E RE a Vi NG PA3_USART2 RX Uis GND T 4 NC Vols GND VDD_T ava GND GND2 BO APIO N DBE RR voor voo KCPLOTEL SE HEN 3M NG PCO GPIO IN1O GND T 4 NC Ke GND GNDi GND2 us ACPL O72L ava a VDDT SART2 CLK l VDDi VDD2 3 Vi NG Li PRO PAS USART2 CLK DB Uig GND 4 NC Vo 5 GND T ava 1 La VDDT GND1 GND2 EE VDDi VDD2 ACPLOTZZL ATE 3 Vi NC rg P PA7_SPI1_MOSI DB NC Vo rn Da CAL SE MOS SND 4 GND1 GND2 ACPL 072L us ava VDD T PAS_SPI1_SCK i SH woe z gt 3 PAS SPI1 SCK DB vis GND 4 NC Vo GND_T SS v VDD T 1 a ava ONDI ONDA PB5_12C1_SMBAI_DB z WD VDD ACPL 072L EE Ax SM NS a PBS GC SMBAI SNOT 47 GND1 GND2 ACPL O72L ava VDD T C46 RH ps Cas 100nF 10k 10k LL 100nF bus RIA 10k 10k u16 PB7_1201_SDA l VDDf VEDE 1 PB7 GC SDA DB PB6_1201 SCL i M NG i PBG I2C1 SCL DB ERD NC Vo BND 4 GND1 GND2 c10 ou ADUMI2508AZ ct cia DNM DNM DNM DNM GND GND T 3V3 T M M T T T T T M T T Ci4 cis cie E c18 Cig l C20 cat C22 c23 C24 C26 100nF 100nF toon 100nF 100nF toon 100nF 100nF 1000F 100nF 100nF 100nF GND VDD_T c27 C28 C29 cao cat C32 C38 cas cas ca
8. TEST POINT TEST POINT TP3 TP4 GND T VDD T TEST POINT TEST POINT AM10183v1 Doc ID 023152 Rev 1 21 29 UM1540 Schematics Power supply Figure 31 3dAL SININ asa TI3HS TI3HS 9d2 9018Sn S Ge dn AL p zoa v doesn 7 605 GLE daasn El een SNAA QNO waasn EAE LON ron waasn oon asn waasn 9 F OAS g 4u001 zn Ay o o ovo gt F af 113HS 113HS Ess rz 9 E CO 5 lt x 001 E TYD HAMOd ES HIEEOLLLLOT 9 ER wit vod on NIA DE Go h 1MOA MOA TT OND anor m INOA 1nOA AE ON ano E en Au WU St Zeu EAE Doc ID 023152 Rev 1 22 29 UM1540 Schematics Figure 32 Opto isolator section us vol vpp VoDa j uio vi NC Hx 4 PB9 TIM4 CH4 DB avs 1 VDD T No Vo LE y PAQ_USART2_CTS Zum voerd GNDI SS SM Ne PR PAO USART2 CTS DB ACPL 072L GND ee em GND T US ACPL 072L PBB_TIM4_CH3 Se 1 Voot voa ET Uit ali Ne e PBB_TIM4_CH3_DB VODT Alen wee LB ava GND 4c api VEN een ME PALLUSARTZ ATS DB BAL Fay Nc EZ 37 Nc ve
9. shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners O 2012 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ky Doc ID 023152 Rev 1 29 29
10. 2 54 Y Connectors at degree mm x 2 54 mm pitch Any Digi Key SR and Samtec jumpers J2 Mini USB B type USB mini B type Any Digi Key H2959CT ND SW1 Pushbutton switch SW2 SPDT switch LEDs D1 D2 SES Sa 3 mm SMD LED Any Digi Key 160 1176 1 ND Inductors L1 replaced with 0 Q ur n SMD inductor Any SIeMejewu JO 118 OvSLINN 2 Lon CSLECO Al sod 6c 9c Table 1 BOM continued Manufacturer s Component ordering code Supplier ordering Category Refer design description Package Manuf orderable part Supplier pede number C1 C2 22 pF SMD0805 Any Digi Key 709 1172 1 ND C3 C6 C7 C8 C9 C14 C 15 C16 C17 C18 C19 C 20 C21 C22 C23 C24 C 25 C26 C27 C28 C29 C e Ge SMD0805 Any Digi Key PCC2452TR ND 30 031 C32 C33 C34 C 35 C36 C37 C38 C39 C l 41 C44 C46 Capacitor C4 C43 10 uF SMD0805 Any Digi Key PCC2417CT ND C40 10 nF SMD0805 Any Digi Key 399 1159 1 ND C42 4 7 nF SMD0805 Any Digi Key 399 1155 1 ND CAP 0 1 uF 50 V D C10 C11 C12 C13 ceramic F 1206 SMD1206 Any Digi Key PCC2234TR ND C28 4 7 uF SMD1206 Any Digi Key PCC2297CT ND Resistors R1 R2 BES Ge w SMD0805 Any Digi Key RHM100KATR ND OvSLINN sjelayew JO 119 6c Lc Lon ESLEEO adl 200 Table 1 BOM continued Manufacturer s Component ordering code Supplier ordering Category Refer design description Package Manuf orderable part Supplier code number RES 0
11. 6 car C38 100nF 100nF 1000F toon 100nF toon 100nF 100nF 1000F toon 100nF 100nF GND_T AM10185v1 Doc ID 023152 Rev 1 23 29 Schematics UM1540 Figure 33 16 pin communication interface J3 PAO USART2 CTS DB 1 2 PA1 USART2 RTS DB PA2 USART2 TX DB 3 4 PA3 USART2 RX DB PA4 USART2 CLK DB 5 6 DAS SPI1 SCK DB DAG SPI1 MISO DB 7 8 PA7 SPI1 MOSI DB PB7 I2C1 SDA DB 9 10 PB6 I2C1 SCL DB PB5 I2C1 SMBAI DB 11 12 PB9 TIM4 CHA DB PB8 TIM4 CH3 DB 13 14 PCO GPIO IN10 DB VDD T 15 16 GND T CON16A C39 100nF AM10186V1 24 29 Doc ID 023152 Rev 1 ky 66 50 ASH ESLEGO Al 200 5 Bill of materials Table 1 BOM Manufacturer s e Component ordering code Supplier ordering Category Refer design description Package Manuf orderable part Supplier code number U1 STM32F103RBT6 LQFP64 ST STM32F103RBT6 ST devices U1 USBLC6 2P6 SOT 666 ST USBLC6 2P6 U3 LD1117D33TR SO 8 ST LD1117D33TR U4 U5 U6 U7 U8 U9 U1 0 U11 U12 U13 U14 U1 ACPL 072L SO 8 Avago Tech ACPL 072L Digi Key 516 1732 5 ND Non ST 5 devices U16 ADUM1250SRZ SO 8 ee ADUM1250SRZ Digi Key ADUM1250ARZ ND Crystal and Crystal 8 000 MHZ Se oscillator Y1 SER 49US 11 35 x 4 5 mm crystal Any Digi Key 535 9864 1 ND Header 2x5 pin 2 54 D i J3 CON16A 90 degree mm x 2 54 mm pitch Any Digi Key 9177 ND JTAG connector 90 Header 2x10 pin
12. 86V1 Pin no 1 4 7 10 11 are input pins Pin no 2 3 5 6 8 9 12 and 13 are output pins J1 This is the standard 20 pin JTAG connector available on the demonstration board This can be used to test the board in debug mode using any JTAG based debugger for the STM32F103xx device Doc ID 023152 Rev 1 ky UM1540 Running the demonstration board 2 d Running the demonstration board To run the demonstration board connect it to the PC with the USB mini B type cable As a result the demonstration board should be enumerated as universal serial bus controllers and it is shown as Universal Dongle Demo Board as seen in Figure 8 in the Device Manager window If this message does not appear please contact technical support Figure 8 Enumeration result Device Manager Ele Acton View Help e misej m mm Monitors 5 88 Network adapters BF Ports COM amp LPT Io g Processors Ze Smart card readers 11 90 Sound video and game controllers E System devices B Universal Serial Bus controllers Intel R 82801FB FBM USB Universal Host Controller 2658 Intel R 82801FB FBM USB Universal Host Controller 2659 Intel R 82801FB FBM USB Universal Host Controller 265A Intel R 82801FB FBM USB Universal Host Controller 265B Intel R 82801FB FBM USB2 Enhanced Host Controller 265C J Link dri USB Root Hub USB Root Hub USB Root Hub USB Root Hub USB Root Hub AM12211v1
13. SIRE BE A Rd as 11 2 1 1 GPIO settings eneen eee en 13 2 1 2 SPI header settings 14 2 2 Using UART SCI interface 15 2 2 1 EIS lef ue CEET 17 2 2 2 SCI header settings liliis 17 3 Working in DFU mode vommaorirccis isa NEE ii 20 4 Schematics saii end e a ao ia 21 5 Bill of materials cs e uk aon EE A a cde a 26 REVISION BDISIOFV si ds wake RR de RR ene Ed Ns Re EE Ri ned N se ee CN 29 2 29 Doc ID 023152 Rev 1 ky UM1540 List of figures List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 Figure 25 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Installation window 5 License window 5 Destination folder eee 6 Installation ongoing enne IRA RA 6 Installation complete 2 2 0 0 eee eee 7 STEVAL PCCO009VA universal USB to serial communication interface demonstration board Eeer dae RE whale Eg EE YE NU x EE a tie a os 8 Interface header pin diagram ene 8 Enumeration result een 10 Universal dongle GU 10 Board is not connected to PC ee 11 Board is connected obt 11 Selection of synchronous Interface 12 Selection of SPI interface ne 12 SPI interface window 13 J3
14. board DFU software DLL files of the SPI and UART interface Source code including DFU e Documentation User manual Software installation Available software for the STEVAL PCCOO9V4 PC GUI software setup for Universal Dongle version 1 1 is available from http www st com internet com SOFTWARE RESOURCES SW COMPONENT SW FUN CTION STEVAL PCCOO9V1 sw gui v1 3 zip To install the PC GUI software follow the steps below Doc ID 023152 Rev 1 ky UM1540 Getting started Step1 As soon as the user clicks the setup exe icon the following window appears Figure 1 Installation window Universal Dongle GUI InstallShield Wizard er Welcome to the InstallShield Wizard for yy Universal Dongle GUI The InstallShield Wizard will update the installed version 1 00 000 of Universal Dongle GUI to version 1 1 0 To continue click Next AM12203v1 Step 2 Read the license file and click the Yes button to accept the license Figure 2 License window Universal Dongle GUI InstallShield Wizard P xi License Agreement Please read the following license agreement carefully Kr SOFTWARE LICENSE AGREEMENT This Software License Agreement Agreement is displayed for You to read prior to downloading and using the Licensed Software If you choose not to agree with these provisions do not download or install the enclosed Licensed Software and the related documentat
15. e values to read and write from the slave device can be filled accordingly After every read or write operation the GUI updates the status in the status section for example status communication complete bus free so that the user can check the status of the SPI communication happening between the UUSCI demonstration board and the SPI slave daughterboard Therefore this interface allows the user to connect any SPI interface based slave device Using UART SCI interface To connect the UART SCI interface first it is necessary to select Asynchronous from the Operation menu as shown in Figure 19 Figure 19 Selection of asynchronous interface So 820501 00 00 00 00 00 00 00 00 00 820501 00 01 0000 00 00 00 00 00 2 0501 1 00 00 00 00 00 00 00 00 AM12222v1 Doc ID 023152 Rev 1 ky UM1540 Running the demonstration board Once the asynchronous interface is selected an additional menu for asynchronous interfacing is open in the GUI which allows the selection of the SCI or UART interface as shown in Figure 20 Figure 20 Selection of SCI UART interface Connected Not Corrected Corrected Connected 20 82 05 01 00 00 00 00 00 00 00 00 00 121712968 220501 00 01 0000 00 00 00 00 00 1205 20501 01 00 00 00 00 09 00 00 00 AM12223v1 Now if the user clicks the SCI interface option a window for SCI interface control is opened as shown in Figure 21 Figure 21 SCI inte
16. ection Here DLL files of the PC GUI are provided with this tool So the user can use these DLL files to make their own customized PC GUI as per requirements Therefore the UUSCI tool provides an option for end users to just focus on its application development as the complexity of the microcontroller is taken care of by the tool itself so increasing its efficiency and time to market The UUSCI tool supports two PC GUISs m Universal dongle PC GUI this PC GUI allows the interfacing of the SPI and the UART interface and the communication parameters to be controlled with the help of the GUI itself m DFU mode PC GUI this PC GUI allows the firmware to be changed if required by the user to suit their applications In the UUSCI demonstration board all the other pins are available in the form of jumpers which can be programmed by changing the firmware in DFU mode Therefore the UUSCI board is a complete tool to rapidly develop the prototyping development of the applications November 2012 Doc ID 023152 Rev 1 1 29 www st com Contents UM1540 Contents 1 Getting started A ala a C s RU Se MR i 4 1 1 System requirements 4 1 2 Package contents rara PTT 4 13 Software installation ooooooooomnranrnnoonno 4 1 4 Hardware setup EE 7 1 4 1 Power supply 8 1 4 2 Jumper connector settings 8 2 Running the demonstration board eeeesss 10 2 1 Using SPI Ri is EED s Rhe RE DR
17. ie F8 OIND Oldd 09d 7 oid 1no oso tad 2 413539 ee E 9 INO 2so ee vd _NI9SO 00d L NI OSO waasna k ziva 1no zeoso siod H daasn or LVd NI EE9SO VLId re SWL elvd 97 z ssp OLY YAdNWL ELOd x OND VDD 2 2 on ivan Lt EAS 8v BORN 5 D T ENE SES reee pp eres P B 4391333332 LI l a IS e LI E E B E E ET P BE vagy 0 ene TAN 100 Tad 1 1009 4 5 EM 5 o A 4u00 auoop 4UOOL 20001 69 89 19 99 EAE i ENE GNOV ces OL anor o L SE vo TE Cp HNOL vada VAN ENE 11 4u00L 9 SE OL ene 8 I O d HLas38 Ge 8d MS LMS 3dez ino oso f T zol WE ZHIN8 gt 18 LA 3dez NI OSO iol SIE 0 v v 9 a ene 346v Doc ID 023152 Rev 1 20 29 UM1540 Schematics Figure 29 JTAG interface 3V3 e 3v3 x VI e o o J1 R16 2 1 10k 4 3 PB4 NTRST EEN 5 PA15 TDI i 8 7 PA13 TMS R36 R37 R38 R39 i 10 9 PA14 TCK 4k7 lt 4k7 4k7 lt 4k7 d 12 11 1 1 14 13 DE PB3_TDO d 16 15 RESET e 18 17 19 o i x i 20 19 R T E B 8 B 4 cw y ES JTAG_20PIN 10 e x x TEE D D n a AM10182V1 Figure 30 Mode selection switch SW2 i RIS 25 10 4 PC5 C25 MODE SELECTION SWITCH TP1 TP2 1 3V3 1
18. 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 UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES 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 EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document
19. interpretation for SPI interface neee eee ee 13 SPI pin interface in PC GU 14 Setting of SPI parameters aaneen eee eee 14 SPI read write window 15 Selection of asynchronous Interface 15 Selection of SCI UART interface 16 SCI interface window 16 J3 interpretation for SCI Interface 17 SCI pin interface in PC GUI eee eeen 17 Setting of SCI parameters 18 Port setting window eneen eee 18 SCI read write window 19 Enumeration in DFU mode 20 Microcontroller section een 21 JTAG le sebiet pr N RE Ar abn ae e trata D wan ee 22 Mode selection switch eeen 22 Power SUDDIV ramon paer ee ER metde EE eden eee eames Eie 23 Opto isolator section oenen ene ee eee 24 16 pin communication interface oee eee 25 Doc ID 023152 Rev 1 3 29 Getting started UM1540 1 1 1 2 1 3 4 29 Getting started System requirements In order to use the universal USB to serial communication interface UUSCI with a Windows operating system a recent version of Windows such as Windows 2000 or Windows XP must be installed on the PC The version of the Windows OS installed on your PC may be determined by clicking on the System icon in the control panel Package contents The UUSCI demonstration board includes the following items e Hardware content One demonstration board BOM Schematic e Software content PC GUI software to be used along with demonstration
20. ion and design tools By using the Licensed Software You are agreeing to be bound by the terms and conditions of this Agreement Do not use the Licensed Software until You have read and agreed to the xl accepte tems c he icense geet pm C do not accept the terms of the license agreement InstallShield lt Back Next gt Cancel AM12204v1 Step 3 Please select the folder in which to install the software By default it installs the software in the following path C STMicroelectronics Universal Dongle GUI d Doc ID 023152 Rev 1 5 29 Getting started UM1540 Figure 3 Destination folder universal Dongle GUI InstallShield Wizard E AM12205v1 6 29 Step 4 After selecting the folder and clicking the Next button it starts to install the software Figure 4 Installation ongoing Universal Dongle GUI InstallShield Wizard Setup Status Doc ID 023152 Rev 1 AM12206v1 UM1540 Getting started Step 5 Figure 5 Installation complete Universal Dongle GUI InstallShield Wizard ky InstallShield Wizard Complete The InstallShield Wizard has successfully installed Universal Dongle GUI Click Finish to exit the wizard h i Cancel AM12207v1 After clicking Finish the software is installed in the directory selected or in the default directory A shortcut for the software is also available in the START menu
21. rade and is shown as Device Firmware Upgrade as shown in Figure 27 in the device manager window H this message does not appear please contact technical support Figure 27 Enumeration in DFU mode 2 Device Manager BAX Fie Action View Help PARA 259 Keyboards A Mice and other pointing devices 2 Monitors BB Network adapters Ports COM amp LPT EI Communications Port COM1 EI Communications Port COM2 d Communications Port COM2 7 ECP Printer Port LPT 1 Processors Sound video and game controllers System devices 2 Universal Serial Bus controllers Intel r 82801DB DBM USB 2 0 Enhanced Host Controller 24CD Intel r 82801DB DBM USB Universal Host Controller 24C2 Intel r 82801DB DBM USB Universal Host Controller 24C4 J Link driver STM Device in DFU Mode USB Root Hub USB Root Hub USB Root Hub Ig AM12230v1 Doc ID 023152 Rev 1 19 29 UM1540 Schematics Schematics 4 Microcontroller section Figure 28 9 Ord P q 85d Snivis LO LO st ICD IN EO CN JON JOL ONION ON EI TON v QO 10 sr OU st st st MD lnm H D I OO d IE a taa A gt gt gt gt mn cyd 9r xi zisven zva d mr anim ovg LEE SLI ziuvsn ei E vL S19 GIS Ovd ge Slad vaan 99d VSSA EL VGA E e EE ONDV BE sod LEX Bod BE SES OLEYEOLAZEN LS iad or x TH GE
22. re 24 Doc ID 023152 Rev 1 OT UM1540 Running the demonstration board Figure 24 Setting of SCI parameters SCI Settings Port Setting Read Buffer Write Buffer Address Lenath 0 X Address Length 0 y Register Address Ox Register Address Ox Length Length iT Read Write Get Status AM12227v1 Another window opens up for port settings which includes parameters such as bit rate parity bits stop bits and hardware flow control required as shown in Figure 25 Figure 25 Port setting window x Port Setting Bits Per Second Data Per Bits 8 Parity Even y Stop Bits f2 y Flow Control None be Default Set Cancel AM12228v1 Once the selection is made click the Set button As soon as this is done and the user exits from the port settings window the control settings part is frozen and the Port Setting button becomes the Reset button whose purpose is to reset the SCI settings The read and write window looks like that shown below OT Doc ID 023152 Rev 1 17 29 Running the demonstration board UM1540 18 29 Figure 26 SCI read write window M SCI Settings Write Buffer 0 Y Address Length Fiegister Address Ox Register Address Ox Lenath Length Write Get Status AM12229v1 In this window depending on the slave device
23. rface window ea 8208010000 0000 0000 000000 REN 009 0000 0900 0000 00 prid 20501 01 00000 0000 000000 AM12224v1 The PC GUI is now ready to be used for testing SCI based devices To use any SCI based slave devices the user needs to make the connection for jumper J2 as shown in Figure 22 a Doc ID 023152 Rev 1 15 29 Running the demonstration board UM1540 2 2 1 2 2 2 16 29 Figure 22 J3 interpretation for SCI interface J3 USART2_TX_DB 3 4 USART2 RX DB USART2 CLK DB 5 12 GPIO 4 14 GPIO 2 16 GND AM12599v1 GPIO settings Before making the connection to the J2 it is necessary to perform the proper settings of the GPIOs which are to be used along with the SCI interface This can be done be clicking the SCI pin interface as shown in Figure 23 Figure 23 SCI pin interface in PC GUI SCI Pin Format Pin 1 Pin 10 AM12226v1 Please follow the instructions given in Section 2 2 1 to perform the GPIO settings Note that in this case only GPIO 3 and GPIO 4 have PWM clock generation capability SCI header settings Once the GPIO settings have been completed it is possible to connect the daughterboard to the UUSCI demonstration board and it can be assumed that the correct settings of daughterboard control and status lines have been performed Now to make the settings for the SCI interface click on Port Setting as shown in Figu
24. trol and status lines have been performed Now before it is possible to use the SPI communication it is necessary to first define some parameters shown in Figure 17 Figure 17 Setting of SPI parameters Daisy Chain 2 Baud Rate Presc 2 y Write Read Buffer gt Write Buffer Address Length 0 y Address Length 0 y Register Address Oxf RegisterAddress Oxf Lenath Length EE Get Status AM12220v1 These parameters include selection of CPHA CPOL and baud rate prescaler selection By default the most significant bit is put first Once the selection is made click the Write button It sets the SPI interface and the system is now ready to read or write the data from the SPI interface based daughterboard connected to the UUSCI demonstration board As soon as this is done the control settings part is frozen and the Write button becomes the Reset button whose purpose is to reset the SPI settings The read and write window looks like that shown in Figure 18 ky Doc ID 023152 Rev 1 13 29 Running the demonstration board UM1540 2 2 14 29 Figure 18 SPI read write window SPI CPHA o z Daisy Chain 2 y CPOL c z Baud Rate Presc 2 z AM12221v1 In this window depending on the slave device the register address length from O to 4 bytes can be selected 0 byte length is used for random read and write operation Th
Download Pdf Manuals
Related Search
Related Contents
Release 1.0 User Manual Cookies Policy 3750 ポータブルハイブリッドレコーダ用通信機能 /GP-IB, /RS-232C Philips Ledino AIRCRAFT OPERATING INSTRUCTIONS Light Copyright © All rights reserved.
Failed to retrieve file