Home
STEVAL-PCC009V2, IBU universal interface based on the
Contents
1. wv UMO935 J User manual STEVAL PCCO09V2 IBU universal interface based on the STM32F103RB January 2011 Introduction The IBU universal interface UI is a tool which contains m An IBU UI board STEVAL PCCOO09V2 which is an STM32 based USB to serial interface bridge consisting of a configurable 10 pin and 30 pin interface m Dil 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 PCCO09V2 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 12C 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 G
2. PA7 SP MOSI DB 17 48 PCT DB PC6 TIM3 CH1 DB 19 20 POH ADC IN10 PC7 TIM3 CH2 DB 21 22 PC1 ADC IN11 u11 AGND 23 24 PC2 ADC IN12 PCO ADC IN10 DB 1 6 PC1 ADC IN11 DB PC3 ADC IN13 25 26 PC12 DB GND 2 Yer VOS 5 GND PA8 DB 27 28 GND PC2 ADC _IN12 DB 3 GND GND F4 PC3 ADC _IN13 DB PA9_UART1_TX_DB 29 30 PA10 UART RX DB 1 02 03 ESDALC6V1M6 CON30A RN4 U4 PA1_USART2 RTS 1 a _PA1_USART2_ RTS_DB PAO_USART2 CTS DB 1 Le PA1_USART2 RTS DB PAO USART2 CTS 2 7 PAO USART2 CTS DB GND 2 01 VOS Ce GND PA2 USART2 TX 3 6 PA2 USART2 TX DB PA2 USART2 TX DB 3 GND GND PA3 USART2 RX DB PA3 USART2 RX 4 PA3 USART2 RX DB vo2 vO3 RES STOR ARRAY_150 ESDALC6V1M6 PA4 USART2 CLK DB RN5 U5 PB9 TIM4 CH4 1 a PB9 TIM4 CH4 DB PB8 TIM4 CH3 DB 4 le PB9 TIM4 CH4 DB PB8 TIM4 CH3 2 7 PRS TIM4 CH3 DB GND 2 o1 VOS Ce GND PA4 USART2 CLK 3 6 PA4 USART2 CLK DB 3 GND GND PB5 1201 SMBAI DB PB5 I2C1 SMBAI 4 5 PB5 12C1 SMBAI DB 1 02 1103 RES STOR ARRAY_150 ESDALC6V1M6 RN6 PB7 I2C1 SDA 1 a FEI GC SDA DB U6 PB6 DCH SCL 2 7 PB6 1201 SCL DB PB6 I2C1 SCL DB 1 6 PB7 I2C1 SDA DB PA6 SP I1 MISO 3 6 PA6 SPIT MISO DB GND 2 o1 Vos Ce GND PA5_SP 11_SCK 4 5 PA5 SPM SCK DB PA6 SPI MISO DB 3 GND GND F4 PA5_SPI1_SCK_DB R S STOR ARRAY 150 102 1 03 ESDALC6V1M6 RN7 PC11 1 8 PC DB U7 PA7_SP I1_MOSI 2 7 _PA7_SPI1_MOSI_ DB PA7_SP 1 MOSI DB 1 le PC11_DB PC6_TIM3_CH1 3 6 PC6 TIM3 CH1 DB GND 2 O1 VOS Ce GND PC7 TIM3 CH2 4 5 PC7 TIM3 CH2 DB PC6 TIM3 CH1 DB 3 GND GND PC7 TIM3 CH2 D
3. To use the SPI interface it must be selected by sending the command from the DLL as mentioned in the DLL help file After this the board is ready to be used in SPI 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 done Figure 13 below shows the interpretation of the 10 pin header when it is configured in SPI mode Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 2 1 3 2 2 Figure 13 J2 interpretation for SPI interface J2 SPI GPIO1 SPI GPIO2 SPI GPIO3 SPI GPIO4 AMO6828v1 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 14 e The SCK synchronous clock line MISO master in slave out MISO master out slave in NSS slave select and GND ground line should be connected to the corresponding lines of the daughter board for SPI communication e VDD power supply line of the two boards should be connected if the daughter board is to be powered using the IBU UI tool e The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements Figure 14 Connecting diagram for the 10 pin SPI interface GPIOs Master IBU UI Tool 10 pin Header Slave SPI based device AMO6829v1 GPIO settings For the GPIO whi
4. e 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 lights up whenever there is any type of communication error of type 2 3 or 4 above The LED status is updated after each read or write operation The transfer sequence for one bye of UART1 SCI is shown in Figure 25 Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool Figure 25 Transfer sequence of one byte of UART1 SCI1 8 bit Word length Posstie Next data frame Party Data frame pez Bia Bis ats Sen B a 1 Stop Bit d veg Next data frame Data frama el b 2 Stop Bits 9 bit word length 1 stop bit Possible Next data frame Dat Data frame bi Next t Start TT 8 bit word length 1 stop bit Possible Next data frame Data frame Parity Start Bt Next Bt ao en e e gu aus ss ger SP Sei AMO6847v1 Therefore this interface allows any UART1 SCI1 interface based slave device to be connected and tested 3 7 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 After this the 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
5. After every read and write operation the user can obtain information about the status of the communication To read write in the register select the register address lengih depending on the slave device The UART2 SCI2 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 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 UART2 SCI2 communication taking place between the IBU UI board and the UART2 SCI2 slave daughter board can be 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 e Communication complete bus free e Error conditions e UART2 SCI2 timeout e 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 lights up whenever there is any type of communication error of type 2 3 or 4 above The LED status is updated after each read or write operation The trans
6. Doc ID 17398 Rev 3 31 53 Running the IBU UI tool UMO935 3 6 1 3 6 2 32 53 Figure 23 J2 interpretation for UART1 SCI1 interface of 30 pin header cy 2 GNO UART1 CTS 3 4 UART1 RTS UART 1 _ UART1 GPIO6 UART1_GPIO8 UART1_GPIO10 ADC CHI UART1_GPIO12 ADC CH2 UART1_GPIO14 ADC CH3 UART1_GPIO1S JART1_GPIO17 A PWMI F2 UAR PWM2 F2 VART 1 _ ADC CH4 UART1_GPIO1 UART1_G 7 UART1_GPIO19 29 30 UART1_GPIO20 A H 4 V_CON A Leen LONO AMOG844v1 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 24 e The SCL synchronous clock line SDA serial data and GND ground line should be connected to the corresponding lines of the daughter board for UART1 SCI1 communication e VDD power supply line of the two boards should be connected if the daughter board is to be powered using the IBU UI tool e The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements Figure 24 Connection diagram for 30 pin UART1 interface GPIOs Master IBU UI Tool 30 pin Header Slave UART based device AMO6845v1 GPIO settings For the GPIO which is to be used along with the UART1 SCI1 interface of the 30 pin header it is necessary to make
7. Rev 3 13 53 Getting started UMO935 14 53 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 DC mode of 10 pin headers and the 12C mode of 30 pin headers at the same time or use the I 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 be used As the user switches between the two modes the settings of the previous mode are reset For Instance if the user is using the 12C mode of a 10 pin header and switches to the I C mode of a 30 pin header the settings of the previous 10 pin header are reset and all the pins of the 10 pin header go into input pull up mode Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 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 1 Checkifthe USB cable is working properly or 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 window If this message does n
8. The duty cycle of the PWM clock can vary from 0 to 100 Logic 0 is obtained with duty cycle 0 and logic 1 is obtained with duty cycle 100 Please refer to Figure 34 Using GPIOs as ADC settings As mentioned above GPIO 4 can also additionally be set as an 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 After that specify the number of samples that are required Analog input can then be provided on this pin and the set of the digital 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 conversion ADC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles SPI header settings Once the GPIO settings are done the daughter board can be connected to the IBU UI board Before using the SPI communication some parameters must first be defined These parameters include the selection of CPOL CPHA and baud rate pre scalar by default the most significant bit is put first As in SPI standard protocol CPHA and CPOL values can be 0 or 1 SPI baud rate should be set with values equal to 2 4 8 16 32 64 128 and 256 The SPI base frequency is 36 kHz Therefore if the baud rate
9. communication peripherals and GPIOs on 10 pin and 30 pin interfaces Interfaces 30 pin interface 10 pin interface c 1 1 SPI 1 1 UART SCI 2 1 PWM GPIOs 4 2 ADC channels 4 1 As shown in Table 3 the user can configure the IBU UI tool in 7 modes 3 of these modes are on a 10 pin header and 4 on a 30 pin header For instance if the user mainly aims at using an DC communication interface there are two available choices a DC mode of a 10 pin header along with the communication peripheral I C the user has 6 GPIOs of which 2 GPIOs can be used as PWM channels and 1 can be used as an ADC channel b 12C mode of 30 pin header along with the communication peripheral IC the user has 22 GPIOs of which 4 GPIOs can be used as PWM channels and 4 can be used as ADC channels Table 3 Number of total GPIOs PWM GPIOs and ADC channels in 10 pin and 30 pin headers in various modes Header Interfaces modes Total GPIOs PWM GPIOs ADC channels 12 mode 6 2 1 10 pin header SPI mode 4 2 1 UART mode 4 2 1 12 mode 22 4 4 SPI mode 20 4 4 30 pin header UART1 mode 20 4 4 UART2 mode 22 4 4 Please refer to Appendix B Table 5 to understand the possible GPIO modes and communication interfaces available on each pin in 10 pin headers Refer also to Appendix C Table 6 to understand the possible GPIO modes and communication interfaces available on each pin in 30 pin headers Doc ID 17398
10. cycles Please refer to Figure 34 in Appendix D Using GPIOs as ADC mode settings As mentioned above GPIO 6 can also additionally be set as analog channel input For that set the GPIO 6 in ADC mode and do the analog settings Analog settings include ADC sample time selection and ADC resolution After that specify the number of samples that are required Then Analog input can be provided on this pin and the set of the digital 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 conversion ADC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles 12C read and write operation Once the fC 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 To read write in the register select the register address length depending on the slave device The IC register address length can range from O 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 Doc ID 17398 Rev 3 17 53 Running the IB
11. menuracturer orderable part Supplier code number R18 R19 R20 R21 R22 R23 4 7 KQ SMD0805 Any RN1 RN2 RN4 RN5 Res array 150 0 5 1206 3216 T 7 EES RN6 RN7 4 res SMD Metric Convex Digi Key YJTSIC TND RN8 RN9 Res array 4 7 KQ 1207 3216 E a RNS 8TRM 4RES SMD Metric Convex Digi Key YSIS ENP Term test point Test points mS Test point TP1 TP2 Slotted 032 DIA slotted Digi Key 1031K ND Length 1 00 Screw 02 series 25 4 inches All electronics Not applicable Pan Style 4 40 mm diameter hardware 12 02 160 Screw 210 5 3 Scews and inches mm nuts Diameter 250 S 6 4 inches All electronics Not applicable 00 series Hex Nut mm hardware 12 00 440 SEGONN 1511 NO pue soneuieuos AppendixB All possible interpretations of the 10 pin interface de Table 5 All possible Interpretations of the 10 pin interface GPIO Input pull up Pin GC UART SPI input floating Output push pull ADC PWM Supply input with and output open interrupt falling drain and rising 1 SCL TX No Yes Yes No No No 2 SDA RX No Yes Yes No No No U 3 No No No No No No No GND S A No No No No No No No V CON zi 5 No CTS MISO Yes Yes No No No S 6 No RTS SCK Yes Yes No No No 3 7 No No MOSI Yes Yes No No No 8 No No NSS Yes Yes No No No 9 No No No Yes Yes No Yes No 10 No No No Yes Yes Yes Yes No 228J19 u1 uid 0 eut jo suonejoJdJjoju
12. pre scalar is set as 4 the SPI runs at a frequency equal to 9 kHz Once the selection is made it sets the SPI interface and now the system is ready to read or write the data from the SPI slave device connected to the IBU UI board 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 To read write in the register select the register address length depending on the slave device Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 3 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 Ox123 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 status communication complete bus free so that the status of the SPI communication taking place between the IBU UI board and the SPI slave daughter board can be 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 comm
13. pue soneuieuos S Lv ASH BEEZ AI 90d Figure 31 JTAG interface mode selection switch and power supply section MODE SELECTION SWITCH PB4_NTRST PA15 TDI PA13 TMS PA14 TCK Vie 10 e PB3 TDO RESET Moe 10 RESISTOR ARRAY_4k7 TP1 1 3V3 1 TEST POINT TEST POINT bR ab Efek EP PB4 NTRST PA14 TCK JTAG 20P IN JTAG interface Mode selection switch Power supply C16 J4 u10 100nF LG USBDM_ SHELL USB_VCC 1 1101 1 01 e DM 5 3V3 SHELL USBDM GND VBUS 4 USBDP 1 PD2 SHELL USBDP 1 02 1 02 ARO SHELL ID x USB GND USBL C6 2P6 USB MINIB TYPE ug GND NC VOUT VOUT VOUT VOUT VIN NC LD1117 D33TR AMO8131v1 ett IOS pue soneuieuos SEGONN Figure 32 10 pin com interface 4 ZS el C1 PB10 I2C2 SCL DB 1 2 PB11 I2C2 SDA DB GND 3 4 3V3 PB14 SPI2 MISO DB 5 6 PB13 SPI2 SCK DB i PB15 SPI2 MOSI DB 7 8 PB12 SPI2 NSS DB 100nF a PBO TIM3 CH3 DB 9 10 PB1 TIM3 CH4 ADC IN9 DB E CON10A RN1 PB10 I2C2 SCL 1 8 PB10 I2C2 SCL DB PB14 SPI2 MISO 2 1 PB14 SPI2 MISO DB PB15 SPI2 MOSI 3 6 PB15 SPI2 MOSI DB PBO TIM3 CH
14. the 30 pin header To use the SPI interface it must be selected by sending the command from the DLL as mentioned in the DLL help file After this the board is ready to be used in SPI 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 done Along with the SPI communication interface the 30 pin header in SPI interface mode also consists of 20 configurable GPIOs in various modes Of these 20 GPIOs 4 can additionally be configured as analog channels and another 4 GPIOs can be configured as PWM channels Figure 20 below shows the interpretation of the 30 pin header when it is configured in SPI mode Doc ID 17398 Rev 3 27 53 Running the IBU UI tool UMO935 Figure 20 J2 Interpretation for SPI interface of 30 pin header DN cl 2 F GND SPI GPIO1 7 13 4 SPI GPIO2 SPI GPIO3 5 6 SPI GPIO4 PWMI F1 SPI GPIOS 7 8 fo PWM2 F1 SPI GPIO6 SPI GPIO7 9 10 SPI GPIOS SPI GPIO9 11 12 SPI GPIO10 GNO 13 14 V CON SPI MISO 15 16 SPI CLK SPI MOSI 17 18 SPI NSS PWM1 F2 SPI GPIO11 19 20 ADC CH1 SPI GPIO12 PWM2 F2 SPL GPIO13 77 121 22 ADC CH2 SPI GPIO14 AGNO 23 24 ADC CH3 SPI GPIO15 ADC CH4 SPI GPIO16 25 26 SPI GPIO17 SPI_GPIO18 3
15. the IBU UI tool you need to make the connection for jumper J1 as shown in Figure 16 e TheTX transmitter RX receiver and GND ground line should be connected to the corresponding lines of the daughter board for UART SCI communication e VDD equal to 3 3 V power supply line of the two boards should be connected if the daughter board is to be powered using the IBU UI tool e The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements Figure 16 Connection diagram for the 10 pin UART interface GPIOs Master IBU UI Tool 10 pinHeader Slave UART based device AMOS833v1 GPIO settings For the GPIO which is to be used along with the UART SCI 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 two pins therefore you need to make the GPIOs 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 GPIOs mentioned UART TX RX CTS and RTS lines and power lines are fixed To perform the settings of a GPIO use the UART SCI DLL referring to the DLL help file available Through selection the GPIO can be set in different modes such as simple inpu
16. 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 4 pins therefore you need to make the GPIOs settings accordingly To understand the modes that are supported by a particular pin please refer to Table 6 Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 6 3 Note 3 6 4 3 6 5 Through selection the GPIO can be set in different modes By default UART1 SCI1 _GPIO1 to VART1 SCI1 GPIO20 are in input pull up mode 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 The PWM channel 1 is available on pin 7 of the 30 pin interface Please refer to Table 9 PWM channel 1 and 2 can have different duty cycles but they share the same frequency To generate different kinds of clocks configure the PWM channel 1 2 3 or 4 by providing the PWM frequency maximum value tested is around 10 MHz and the duty cycle Please refer to Figure 34 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 96 Using GPIOs in ADC mode settings There are 4 ADC channels available on pin 20 22 24 and 2
17. 2 400k 100k 3 3V3 4 3V3 4 AR ABU 4 R25 ABN d 0 z sto zel ds Ol Nan 2933 nose als c4 OSC IN amp FFERSSSER ZE 22pF M oelOlr eho x el Im 2E P AMO a mamjojolo aix Do a aja En ut agsasssusda qs s L e Es 8MHz 1M AAC BABOSO an 000 3V3 1 Bgeegseaaaa PPE 48 3V3 1 VBAT e VDD 2 EEND C5 OSC_OUT gt PC13 TAMPER RTC VSS 2 3 46 PA13 TMS 22pF PC14 OSC32 IN PA13 45 USBDP Scc H PC15 OSC32 OUT PA12 BOM OSC OUT 6 PDO OSC IN PA11 43 PA10 UART RX RESET 7_ PD OSC OUT PATO 45 PA9 UART1 TX PCO_ADC_IN10 g NRST PAS 41 PAS sw1 PC1 ADC IN11 g PCO PAS ag SW PB PC2 ADC IN12 10 EC STM32F103RBT6 PC9 Tag PC S RESET PC3_ADC_IN13 11 PE2 PC8 Ce PC7 TIM3 CH2 L1 AGND 12 PCS PC7 lay PC6 TIM3 CH1 3V3 VpDA VDDA 13 VSSA PC6 Ce PB15 SPI2 MOSI l II 74 3V3 10uH PAG USART2 CTS 14 VODA PB15 35 PB14 SPI2 MISO i 40 PAT USART2 RTS 15 PAO WKUP PB14 54 PB13_SPI2 SCK cipis C6 PA2 USART2 TX 16 PAT PB13 33 PB12 SPI2 NSS DONE PA2 __ PB12 Cp Ge 68 a lat A ee at on 10uF 10nF BEES EE Asta DOLES 60 8 gt gt AGND VAS dessus ss an ABS PB1O 1202 SCL F s 3V3 19 PB11_12C2_SDA z 4 8 x 3V3 0 PB12 SPI2 NSS llo 5 ols HI Re al i o EEL n E EP Sog 3V3 1 PB5 I2C1 SMBAI ele 3v3 NIKE D1 9 Sean Ss Ise C e e lion nio eje e 65 cm e cis PC8 y BAN as 3V3 AR PB6_12C1_SCL 100nF 100nF 100nF 100nF li 3V3 3 PB7 I2C1 SDA AMO6853v1 SEGONN 1511 NOA
18. 27 28 GNO SPI GPIO19 9 29 30 SPI GPIO20 AMOS840v1 3 5 1 3 5 2 28 53 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 21 e The SCK synchronous clock line MISO master in slave out MISO master out slave in NSS slave select and GND ground line should be connected to the corresponding lines of the daughter board for SPI communication e VDD power supply line of the two boards should be connected if the daughter board is to be powered using IBU UI tool e The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements Figure 24 Connection diagram for 30 pin SPI interface GPlOs Master IBU UI Tool 30 pin Header Slave SPI based device AMOS841v1 GPIO settings For the GPIO which is to be used along with the SPI interface of 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 feature available on 4 pins therefore you need to make the GPIOs settings accordingly Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 5 3 Note 3 5 4 3 5 5 To understand the modes that are supported by a particular pin please refer to Table 6 Through selection t
19. 3 4 PBO TIM3 CH3 DB RES STOR ARRAY 150 g RN2 e PB11_12C2 SDA 1 8 PB11 I2C2 SDA DB 5 PB13 SPI2 SCK 2 1 PB13 SPI2 SCK DB e PB12 SP12 NSS 3 6 PB12 SPI2 NSS DB N PB1 TIM3 CH4 ADC IN9 4 PB1 TIM3 CHA ADC IN9 DB a RES STOR ARRAY 150 00 m 6 lt Co U2 PB14 SPI2 MISO DB 1 6 PB13 SPI2 SCK DB em RL ELS PB15 SPI2 MOSI DB o oa e PB12 SPI2 NSS DB ESDALC6V1M6 U3 PB10 I2C2 SCL DB 1 6 PB11 I2C2 SDA DB PEO TIM3 CH3 DB GND GND PBT TING CH4 ADC IN9 DB 5 3 1102 103 4 9 ESDALC6V1M6 AM08132v1 SEGONN 1511 NO pue soneuieuos S v ASH BEEZ CI 90d Figure 33 30 pin com interface J C2 5V0 1 2 GND MOOnF PAO_USART2 CTS DB 3 4 PA1 USART2 RTS DB PA2 USART2 TX DB 5 T BAG USART2 RX DB RN9 PB8 TIM4 CH3 DB 7 8 PB9 TIM4 CH4 DB PCO ADC IN10 1 a PCO ADC IN10 DB PA4 USART2 CLK DB 9 40 PB5 DC SMBAI DB PC1 ADC IN11 2 7 PC ADC IN11 DB PB6 1201 SCL DB 11 12 PB7 I2C1 SDA DB PC2 ADC IN12 3 e PC2 ADC IN12 DB GND 13 14 3V3 PC3 ADC IN13 4 amp PC3 ADC IN13 DB PA6 SEI MISO DB 15 468 PAS SP SCK DB Moon _ RESISTOR ARRAY_150
20. 5 of the 30 pin interface So these pins can also be 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 that specify the number of samples that are required Analog input can be provided on this pin and the set of the digital 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 conversion ADC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles UART1 SCI1 header settings Once the GPIO settings are completed the daughter board can be connected to the IBU UI board Before using the UART1 SCI1 communication some parameters must first be defined These parameters include the selection of parameters such as e UART SCI bits per second values can be 110 300 1200 2400 4800 9600 19200 38400 57600 115200 230400 and 460800 UART SCI data per bits can be 8 bit or 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 UART1 SCI1 interface and now the system is ready to read or writ
21. B RES STOR ARRAY 150 1 02 1 03 ESDALC6V1M6 RN8 PAS 1 a PAS DB u8 PC12 2 7 PC12 DB PC12 DB 1 6 PAS DB PA9_UART1_ TX 3 e PA9 UARTI TX DB GND 2 o1 VOS 5 GND PA10_UART1_RX 4 PA10_UART1_RX_DB PA9 UART1 TX DB 3 GND GND F4 PA10 UARTI RX DB RES STOR ARRAY_150 vo2 V03 ESDALC6V1M6 AMO08133v1 ett IOS pue soneuieuos SEGONN d ASH 86 44 CI 90d S vV Table 4 BOM Manufacturer s Reference Component ordering code Supplier ordering Category designator Description Package Manufacturer orderable part Supplier code number U9 LD1117D33TR SO 8 STMicroelectronics LD1117D33TR STMicroelectronics LD1117D33TR U1 STM32F103RBT6 LQFP64 STMicroelectronics STM32F103RBT6 STMicroelectronics STM32F103RBT6 ST devices U10 USBLC6 2P6 SOT 666 STMicroelectronics USBLC6 2P6 STMicroelectronics USBLC6 2P6 U2 U3 U4 U5 U6 U7 U8 ESDALC6V1M6 uQFN16 STMicroelectronics ESDALC6V1M6 STMicroelectronics ESDALC6V1M6 U11 NON ST devices Crystal and CRYSTAL 8 00 MHZ 11 35 x 4 5 mm S oscillator id 20 pF 49US crystal Digi Key EIS ID Box header 2 54 Header 2x5 pin J1 mm double row 2 54 mmx2 54 Protectron P9604 10 15 1 R A 10pin mm Pitch Box header 2 54 is ES J2 ie Sea 2 54mmx2 54 Protectron P9604 30 15 1 i pin mm Pitch Connectors Header 2x10 and jumpers Box header 2 54 pin 2 54 J3 mm double row UN Protectron P9603 20 15 1 straight 20 pin MRE Stm grep Pitch J4 USB Mini B Type on
22. DC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles ADC resolution values can be 8 bit or 12 bit DC header settings Once the GPIO settings have been made the daughter board can be connected to the IBU UI board Before using the IC communication some parameters must first be defined These parameters include the selection of I C address types 7 bit or 10 bit C slave device address and DC speed As in DC standard protocol the 1 C address type can be 7 bit or 10 bit addressing The 12C address is a one byte address in the case of 7 bit addressing and a 2 byte address in the case of 10 bit addressing The DC speed should be set between 10 kHz to 400 kHz Once the selection is made it sets the 12C interface and now the system is ready to read or write the data from the DC slave device connected to the IBU UI board 12C read and write operation Once the 12C 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 To read write in the register select the register address length depending on the slave device The 1 C register address length can range from O to 4 bytes Depending on the address length given the register address should be provided in h
23. GPIO5 and GPIO6 Depending on the duty cycle and the frequency settings the PWM clock is generated Figure 34 PWM signal 50 53 _ PWM Signal Duty Cycle 50 Frequency 20 kHz LJ LJ LJ AMO6826v1 Doc ID 17398 Rev 3 d UMO935 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 Input mode read default mode 0 or 1 If no connection is made to this pin it reads 1 Input floating 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 O or 1 randomly Input with rising 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 O 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 value as 0 or 1 If no connection is made to this pin it reads 1 As soon as the value changes from 1 to O falling interrupt detected the interrupt status reads 01 from 00 Output mode Output push pull When the Write operation is performed with values 0 or 1 the voltage level on the correspondi
24. L synchronous clock line SDA serial data and GND ground line should be connected to the corresponding lines of the daughter board for IC communication e VDD power supply line of the two boards should be connected if the daughter board is to be powered using the IBU UI tool e The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements e Asshownin Figure 18 the SDA and SCL line of the interface is already pulled up to 3 3 V through a resistive pull up value of 4 7 k Figure 18 Connection diagram for CC interface GPIOs VDD 3V3 Master IBU UI Tool 30 pin Header Slave I2C based device AMO6837v1 GPIO settings For the GPIO which is to be used along with the 12C interface of 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 feature available on 4 pins therefore you need to make the GPIOs settings accordingly To understand the modes that are supported by a particular pin please refer to Table 6 Through selection the GPIO can be set in different modes as shown in Table 8 By default I2C_GPIO1 to I2C GPIO22 are in input pull up mode Using GPIOs in PWM mode settings Also in 30 pin interface in 12C mode there is provision to use pin 7 8 19 21 to use these GPIOs as PWM c
25. U UI tool UMO935 3 2 18 53 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 status communication complete bus free so that the status of the 12C communication taking place between the IBU UI board and the DC slave daughter board can be 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 e Communication complete bus free e Wrong acknowledge failure connection errors e DC timeout that occurs when the slave device does not respond for a predefined interval of time e 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 D1 available on the board It lights up whenever there is any type of communication error of type 2 3 or 4 above The LED status is updated after each read or write operation The transfer sequence for one byte of I2C is shown in Figure 12 Figure 12 Transfer sequence of one byte of IC SDA SCL Start Stop condition condition AMO6827v1 Therefore this interface allows any DC interface based slave device to be connected and tested Using the SPI interface of the 10 pin connector
26. UI 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 m Application mode this PC GUI allows interfacing of the SPI I C and UART interface and controlling the communication parameters with the help of the GUI itself m DFU mode this mode allows the user to change the firmware if required to suit its applications Doc ID 17398 Rev 3 1 53 www st com Contents UMO935 Contents 1 Section organization of the user manual 7 2 Getting started ca ri A cs 8 2 1 System requirements 8 2 2 Package contents uussssak X34 RER A RO AEN RE 8 2 3 Software installation evene een 8 2 4 Hardware installation A eh RR RR RR RE ERR 11 2 4 1 Power supply as cera uiae dre ded dose Row xc Rs X eae x 12 2 4 2 Jumper header settings 12 2 5 Selection of the interface 13 3 Running the IBU Ul tool eee 15 3 1 Using the 12C interface of the 10 pin header 16 3 1 1 Steps for making the hardware connection enen 16 3 1 2 GPIO settings 17 3 1 3 Using GPIOs in PWM mode settings 17 3 1 4 Using GPIOs as ADC mode settings 17 3 1 5 12C read and write operation eenen 17 3 2 Using the SPI interface of the 10 pin connector 18 3 2 1 Steps for makin
27. ch is to be used along with the SPI 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 Therefore you need to make the GPIOs settings accordingly To understand the modes that are supported by a particular pin please refer to Table 5 By default SPI GPIO1 to SPI GPIOA are in input pull up mode Here you can set only the GPIOs mentioned SPI lines MISO MOSI NSS and SCK and power lines are fixed To make the settings of a GPIO use the SPI DLL referring to the DLL help file available Doc ID 17398 Rev 3 19 53 Running the IBU UI tool UMO935 3 2 3 3 2 4 3 2 5 3 2 6 20 53 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 GPIOA to use this GPIO as the PWM clock signal And there is an option in GPIO4 to use it as the ADC channel Using GPIOs as PWM settings As mentioned above GPIO 3 and GPIO 4 can also additionally be set in PWM mode To do this set the GPIO3 or GPIO4 in PWM mode and provide the PWM frequency maximum value tested is around 10 MHz and also the duty cycle to generate different kinds of clocks The frequency of the PWM clock generated can vary from 10 kHz to 10 MHz
28. communication peripherals and GPIOs on 10 pin and 30 pin lnc qe 13 Number of total GPIOs PWM GPIOs and ADC channels in 10 pin and 30 pin headers in various modes uiu eed oh dens auo ae rure ine EUR le E ER RC ea EU e EE e 13 io MD 44 All possible Interpretations of the 10 pin interface 47 All possible interpretations of the 30 pin interface neen eenen 48 GPIO modes of 10 pin Interface 50 GPIO modes of 30 pin Interface 51 PWM channel settings 51 Document revision history 52 Doc ID 17398 Rev 3 5 53 List of figures UMO935 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 Figure 34 6 53 Installation Window e rs 9 License Window eee 9 Destination folder eee 10 Installation ongoing neee 10 Installation complete neee 11 STEVAL PCCO09V2 IBU universal interface board 11 JUMPEN IN sa uires Roe eed Parties Blan a pa ade eee pe a 12 Seg 12 Enumeration result 15 J1 Interpretation for 12C interface oenen en 16 Connection diagram for 12C interface GPIOs ene 16 Transfer sequence of one byte of IC 18 J2 interpretation for SPI interface
29. e 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 conversion ADC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles ADC resolution values can be 8 bit or 12 bit SPI header settings Once the GPIO settings have been made the daughter board can be connected to the IBU UI board Before using the SPI communication some parameters must first be defined These parameters include the selection of CPOL CPHA and baud rate pre scalar By default the most significant bit is put first As in SPI standard protocol CPHA and CPOL values can be 0 or 1 SPI baud rate should be set with values equal to 2 4 8 16 32 64 128 or 256 The SPI base frequency is 36 kHz So if the baud rate pre scalar is set as 4 the SPI runs at a frequency equal to 9 kHz Once the selection is made it sets the SPI interface and now the system is ready to read or write the data from the SPI slave device connected to the IBU UI board Doc ID 17398 Rev 3 29 53 Running the IBU UI tool UMO935 3 5 6 30 53 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
30. e the data from the UART1 SCI1 slave device connected to the IBU UI board Doc ID 17398 Rev 3 33 53 Running the IBU UI tool UMO935 3 6 6 34 53 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 To read write in the register select the register address length depending on the slave device UART1 SCI1 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 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 SCI1 communication taking place between IBU UI board and the UART1 SCI1 slave daughter board can be 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 e Communication complete bus free e Error conditions e UART1 SCI1 timeout
31. ed slave with the IBU UI tool you need to make the connection for jumper J2 as shown in figure below e The UART2 TX and UART2 RX lines and GND ground line should be connected to the corresponding lines of the daughter board for UART2 SCI2 communication e VDD power supply line of the two boards should be connected if the daughter board is to be powered using the IBU UI tool e The GPIOs of 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 Master Slave IBU UI Tool 30 pin Header UART based device AMO6849v1 3 7 2 Select UART2 SCI2 interface using DLL software To use the UART2 SCI2 interface it must be selected by sending the command from the DLL as mentioned in the DLL help file After this the board is ready to be used in UART2 SCI2 mode 3 7 3 GPIO settings For the GPIO which is to be used along with the UART2 SCI2 interface of 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 feature available on 4 pins therefore you need to make the GPIOs settings accordingly 36 53 Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 7 4 Note 3 7 5 3 7 6 To understand the modes that are supported by a particu
32. en 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 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 SCI1 communication taking place between the IBU UI board and the UART1 SCI1 slave daughter board can be checked Please note that the number of bytes to be written should Doc ID 17398 Rev 3 23 53 Running the IBU UI tool UMO935 be non zero and in decimal format The status messages are of the following types depending on the communication that has taken place e Communication complete bus free e Error conditions e UART SCI timeout e 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 lights up whenever there is any type of communication error of type 2 3 or 4 above The LED status is updated after each read or write operation Depending on the stop bits and data per bits configured the transfer sequence for one byte of UART SCI is shown in Figure 25 Therefore this interface allows any UART SCI interface based slave device to be connected and tested 3 4 Using the DC i
33. ersion ADC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles UART1 SCI1 header settings Once the GPIO settings are completed the daughter board can be connected to the IBU UI board Before using the UART1 SCI1 communication some parameters must first be defined These parameters include the selection of parameters such as e UART SCI bits per second values can be 110 300 1200 2400 4800 9600 19200 38400 57600 115200 230400 and 460800 UART SCI data per bits can be 8 bit or 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 UART1 SCI1 interface and now the system is ready to read or write the data from the UART1 SCI1 slave device connected to the IBU UI board 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 To read write in the register select the register address length depending on the slave device The UART1 SCI1 register address length can range from 0 to 4 bytes Depending on the address length giv
34. ex 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 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 12C communication taking place between IBU UI board and the I C slave daughter board can be Doc ID 17398 Rev 3 ky UMO935 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 e Communication complete bus free e Wrong acknowledge failure connection errors e C timeout e 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 lights up whenever there is any type of communication error of type 2 3 or 4 above The LED status is updated after each read or write operation The transfer sequence for one byte of I C is shown in Figure 19 Figure 19 Transfer sequence of one byte of Ic SDA SCL Start Stop condition condition AMO6839v1 Therefore this interface allows any DC interface based slave device to be connected and tested 3 5 Using the SPI interface of
35. fer sequence for one bye of UART2 SCI2 is shown in Figure 28 Figure 28 Transfer sequence of one byte of UART2 SCI2 8 bit Word length Possible Next data frame Data frame Parity Siart Sian Star T TS St Be m att et eas oes sus ee ger SP Est a 1 Stop Bit Posee Next data frame Data frame m iu Next 2 Br Bio Biti Bt2 pra Bes sus Ep e Cu P bj 2 Stop Bits 9 bit word length 1 stop bit e PossiDio Next data frame Date frame PREY bt Next 8 bit word length 1 stop bit Possible Next data frame Data frame Gs Bit Next an Bro an Bi2 ar grs ans Sam ger n bd AMO6851v1 Therefore this interface allows any UART2 SCI2 interface based slave device to be connected and tested Doc ID 17398 Rev 3 ky UMO935 Working in DFU mode 4 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 The folder contains 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 Files STMicroelectronics DFUSe Driver The user manual for the DFU GUI is also available on the same li
36. fer sequence of one byte of SPI CPHA 21 CPOL 1 CPOL 0 l dim Vy emm ses y MISO Wl wien gt Y 1 5I Yl Dmm from master LALO z e La No A MOS AWWW Y ps pr r 7 os A OD waat I ks GL I I X TR from slave VV Fee SS SS NA A NSS to slave CPHA 0 CPOL 1 CPOL 0 i MISO MAM meth A Ac A A A Atr from master k e A ES E pee Y A y M3 GA moss mnst A DL A A A A USB AN Pasce RS M A AAA NSS to slave AMO6843v1 Therefore this interface allows any SPI interface based slave device to be connected and tested 3 6 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 After this the 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 be done Figure 23 below shows the interpretation of the 30 pin header when it is configured in UART1 mode Along with the UART1 SCI1 communication interface the 30 pin header in UART1 SCI1 interface mode also consists of 20 configurable GPIOs in various modes Of these 20 GPIOs 4 can additionally be configured as analog channels and another 4 GPIOs can be configured as PWM channels ky
37. g hardware connection 19 3 2 2 GPIO settings 2s van rak net da us 19 3 2 3 Using GPIOs as PWM settings 20 3 2 4 Using GPIOs as ADC settings 20 3 2 5 SPI header settings 20 3 2 6 SPI read and write operation 20 3 3 Using the VART SCI interface of the 10 pin header 21 3 3 1 Steps for making hardware connection 22 3 3 2 GPIO settings c sarren diaken kade a ATERT ENN 22 3 3 3 Using GPIOs in PWM settings 22 3 3 4 Using GPIO in ADC settings 23 3 3 5 UART1 SCI1 header settings 23 3 3 6 UART1 SCI1 read and write operation 23 3 4 Using the 12C interface of the 30 pin header 24 2 53 Doc ID 17398 Rev 3 DI UMO935 Contents 3 4 1 Steps for making hardware connection 25 3 4 2 GPIO settings Aa varones EE AN eS 25 3 4 3 Using GPIOs in PWM mode settings 25 3 4 4 Using GPIOs in ADC mode settings 26 3 4 5 12C header settings 26 3 4 6 12C read and write operation enden eneen 26 3 5 Using the SPI interface of the 30 pin header nn 27 3 5 1 Steps for making hardware connection 28 3 5 2 GPlO settings semi ELA vastere dense 28 3 5 3 Using GPIOs in PWM mode settings 29 3 5 4 Using GPIOs in ADC mode settings 29 3 5 5 SPI header settings 29 3 5 6 SPI read and write operation 30 3 6 Using the VART1 SCI interface of the 30 pin header 31 3 6 1 Steps for making hardware connection 32 3 6 2 GPIO setti
38. he GPIO can be set in different modes as shown in Table 8 By default SPI_GPIO1 to SPI_GPIO20 are in input pull up mode Please refer to Table 8 Using GPIOs in PWM mode settings Also in the 30 pin interface in SPI mode there is a provision to use pin 7 8 19 and 21 to use these GPIOs as the PWM clock signal PWM channel 1 is available on pin 7 of the 30 pin interface Please refer to Table 9 PWM channel 1 and 2 can have different duty cycles but they share the same frequency To generate different kinds of clocks configure the PWM channel 1 2 3 or 4 by providing the PWM frequency maximum value tested is around 10 MHz and the duty cycle Please refer toFigure 34 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 96 Using GPIOs in ADC mode settings There are 4 ADC channels available on pin 20 22 24 and 25 of the 30 pin interface So these pins can also be 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 that specify the number of samples that are required Analog input can then be provided on this pin and the set of the digital value can be obtained If the resolution set is 8 bit on
39. he software and hardware setup To choose how to select a communication interface the user must read Section 2 5 this section explains the seven modes as shown in Table 1 that are available in the 10 pin and 30 pin header and how to select which interface mode is best suited to the development of their application After 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 3is documented in such a manner that the user need only refer to the section corresponding to the communication interface to be used For instance if the user wants to use the UART2 interface mode of the 30 pin header they need only refer to Section 3 7 of this document Table 1 Section to be referred to for a particular mode of a 10 pin or 30 pin interface Header Interface Refer to section 12 mode 3 1 10 pin header SPI mode 32 UART mode 37 12 mode a7 SPI mode 3 7 30 pin header UART1 mode 37 UART2 mode Qu Section 4 explains how to use the DFU capability of this tool This section needs to be referred to when there it is necessary to update the firmware of the microcontroller of this tool Doc ID 17398 Rev 3 7 53 Getting started UMO935 2 2 1 2 2 2 3 8 53 Getting started System requirements In order to use the IBU universal interface IBU Ul tool with a Windows operating system a recent version of Windows such a
40. is to be done Figure 26 below shows the interpretation of the 30 pin header when it is configured in UART2 mode Along with the UART2 SCI2 communication interface the 30 pin header in UART2 SCI2 interface mode also consists of 22 configurable GPIOs in various modes Of these 22 GPIOs 4 can additionally be configured as analog channels and another 4 GPIOs can be configured as PWM channels ky Doc ID 17398 Rev 3 35 53 Running the IBU UI tool UMO935 Figure 26 J2 interpretation for UART2 SCI2 interface of 30 pin header SV 1 2 GND UART2_GPIO1 3 4 UART2_GPIO2 UART2_GPIO3 34 5 6 UART2_GPIO4 PWMI F1 UART2_GPIOS 34 7 8 PWM2 F1 UART2 GPIO6 UART2 GPIO7 J 9 10 UART2_GPIO8 UART2 GPIO9 11 12 UART2_GPIO10 GND 13 14 v coN UART2_GPIO11 34 15 16 UART2_GPIO12 UART2_GPIO13 1 17 18 UART2_GPIO14 PWMI F2 UART2 GPIO15 1 19 20 ADC CHI UART2 GPIO16 PWM2 F2 UART2 GPIO17 1 21 22 ADC CH2 UART2 GPIO18 AGND 7 23 24 ADC CH3 UART2_GPIO19 ADC CH4 UART2_GPIO20 25 26 UART2_GPIO21 UART2 GPIO22 27 28 GND UART2_UART2_TX 29 30 UART2_RX AMO6848v1 3 7 1 Steps for making hardware connection To use any UART2 SCI2 bas
41. lar pin please refer to Table 6 Through selection the GPIO can be set in different modes as shown in Table 8 By default UART1 SCI1 GPIO1 to UART1 SCI1 GPIO20 are in Input pull up mode please refer to Table 8 Using GPIOs in PWM mode settings 3 Also in the 30 pin interface in UART2 SCI2 mode there is a provision to use Pint 7 8 19 and 21 to use these GPIOs as PWM clock signals PWM channel 1 is available on pin 7 of the 30 pin interface Please refer to Table 9 PWM channel 1 and 2 can have different duty cycles but they share the same frequency To generate different kinds of clocks configure the PWM channel 1 2 3 or 4 by providing the PWM frequency maximum value tested is around 10 MHz and the duty cycle Please refer to Figure 34 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 96 Logic 0 is obtained with the duty cycle at 0 and logic 1 is obtained with the duty cycle at 100 96 Using GPIOs in ADC mode settings There are 4 ADC channels available on pin 20 22 24 and 25 of the 30 pin interface So these pins can also be 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 that specify the number of samples that are required Analog input can then be provided on this pin and
42. liiis 19 Connecting diagram for the 10 pin SPI interface GPIOs 19 J1 interpretation for UART SCI interface 21 Connection diagram for the 10 pin UART interface GPIOs 22 J2 Interpretation for I2C interface of 30 pin header 24 Connection diagram for 12C interface GPIOs nen 25 Transfer sequence of one byte of IC 27 J2 Interpretation for SPI interface of 30 pin header 28 Connection diagram for 30 pin SPI interface GPIOs 28 Transfer sequence of one byte of SPI nnen 31 J2 interpretation for UART1 SCI interface of 30 pin header 32 Connection diagram for 30 pin UART1 interface GPIOs nn 32 Transfer sequence of one byte of UART1 SCI neee een 35 J2 interpretation for UART2 SCI2 interface of 30 pin header 36 Connection diagram for 30 pin UART2 interface GPIOs 36 Transfer sequence of one byte of UART2 SCI2 nennen eeen 38 Enumeration in DFU mode 39 Microcontroller section illis n 40 JTAG interface mode selection switch and power supply secti0N 41 10 pin com interface 42 30 pin com Interface 43 xL Een an fe ee heten el nar an eee aed ai we Rn 50 Doc ID 17398 Rev 3 ky UMO935 Section organization of the user manual Section organization of the user manual The user must go through Section 2 1 to 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 t
43. lock signal As shown in the table below PWM channel 1 is available on pin 7 of the 30 pin interface Please refer to Table 9 PWM channel 1 and 2 can have different duty cycles but they share the same frequency To generate different kinds of clocks configure the PWM channel 1 2 3 or 4 by providing the PWM frequency maximum value tested is around 10 MHz and the duty cycle Please refer to Figure 34 for the PWM signal Doc ID 17398 Rev 3 25 53 Running the IBU UI tool UMO935 3 4 4 3 4 5 3 4 6 26 53 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 96 Using GPIOs in ADC mode settings There are 4 ADC channels available on pin 20 22 24 and 25 of the 30 pin interface So these pins can also be 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 that specify the number of samples that are required Analog input can then be provided on this pin and the set of the digital 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 conversion A
44. n as the board is powered using the USB mini B cable it lights up Jumper header settings e J1 J1 is the 10 pin header available 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 AMO6821v1 e J2 J2 is the 30 pin header available on the IBU UI board There are 24 GPIOs GND and VDD lines available as shown in Figure 8 below Figure 8 Jumper J2 SV 1 2 GND GPIO1 3 E GPIO2 GPIO3 5 6 GPIO4 GPIOS 7 8 GPIO6 GPIO7 9 10 GPIO8 GPIO9 11 12 GPIO10 GND 13 14 V CON GPIO11 77 15 16 GPIO12 GPIO13 117 18 GPIO14 GPIO15 19 20 GPIO16 GPIO17 21 22 GPIO18 GNO 23 24 GPIO19 GPIO20 25 26 GPIO21 GPIO22 27 28 GND GPIO23 29 3 GPIO24 AMO6822v1 e J3 This is the standard 20 pin JTAG header available on the board This can be used by the user to run the board in debug mode using any JTAG based debugger for an STM32 device e SWh1 this is the reset switch that can be used to reset the board at any point Doc ID 17398 Rev 3 ky UMO935 Getting started 2 5 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 2 These headers and their corresponding pins can be used in various modes and GPIO configurations Table 2 Availability of various
45. ng GPIO pin can be observed corresponding to the value written write When the Write operation is performed with value O the voltage level on Output open the corresponding GPIO pin is 0 When the Write operation is performed drain with value 1 the voltage level on the corresponding GPIO pin can be 0 or 1 randomly Table 9 PWM channel settings PWM channel Pin see Figure 17 Frequency Duty cycle PWM channel 1 7 F1 D1 PWM channel 2 8 F1 D2 PWM channel 3 19 F2 D3 PWM channel 4 21 F2 D4 4 Doc ID 17398 Rev 3 51 53 Revision history UMO935 Revision history 52 53 Table 10 Document revision history Date Revision Changes 17 Sep 2010 1 Initial release 21 Sep 2010 2 Typo error in cover page Modified Table 4 BOM GE i Modified title Doc ID 17398 Rev 3 UMO935 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 t
46. ngs ENEE en he Rede E edn e Phew ee 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 6 6 UART1 SCI1 read and write operation 34 3 7 Using UART2 SCI2 interface of 30 pin header 35 3 7 1 Steps for making hardware connection 36 3 7 2 Select UART2 SCI2 interface using DLL software 36 3 7 3 GPIO settings ayie NEE TEEN SE NEE e RR EGER War 36 3 7 4 Using GPIOs in PWM mode settings 37 3 7 5 Using GPIOs in ADC mode settings 37 3 7 6 UART2 SCI2 header settings 37 3 7 7 UART2 SCI2 read and write operation 38 4 Working in DFU mode oi E ct des dk a ARE nd bebe annie 39 Appendix A Schematics and BOM list se e 40 Appendix B All possible interpretations of the 10 pin interface 47 Appendix C All possible interpretations the of 30 pin interface 48 ky Doc ID 17398 Rev 3 3 53 Contents UMO935 Appendix D Tables and figures ooocoooooonnnnn ee 50 REVISION DISIOFV ege wer a ea hd aped Cee rca e keer eee eed Bim ww es verd 52 4 53 Doc ID 17398 Rev 3 ky UMO935 List of tables List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Section to be referred to for a particular mode of a 10 pin or 30 pin interface 7 Availability of various
47. nk As a result you should find the board enumerated as device firmware upgrade and it is shown as Device Firmware Upgrade as seen in Figure 29 If this message does not appear please contact technical support Figure 29 Enumeration in DFU mode 2 Device Manager Joe Fie Action View Help gt S RK Mice and other pointing devices Monkors Ml Network adapters Y Ports COM amp LPT F Communications Port COMI Y Communications Port COM2 Commurications Port COM2 ECP Printer Port LPT1 Processors 0 Sound video and game controllers System devices z Universal Serial Bus controllers Intel r 8280108 DEM USB 2 0 Enhanced Host Controller 24CD Inkel r 8280108 D amp M USB Universal Host Controller 24C2 Inter 8280108 DEM USB Universal Host Controller 24C4 STM Device in DEU Mode USB Root Hub USB Root Hub USB Root Hub Y DIE Doc ID 17398 Rev 3 39 53 ASH 86 Z1 AI 90d S 0v Appendix A Schematics and BOM list Figure 30 Microcontroller section NOTE R3 amp R4 MOUNT ONE AT A TIME NOTE R24 amp R25 MOUNT ONE AT A TIME 14 BOOTO 5 BOOT PB
48. nterface of the 30 pin header To use the 12C interface it must be selected by sending the command from the DLL as mentioned in the DLL help file After this the board is ready to be used in 12C 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 done Figure 17 below shows the interpretation of the 30 pin header when it is configured in UART mode Along with the VC communication interface the 30 pin header in DC interface mode also consists of 22 configurable GPIOs in various modes Of these 22 GPIOs 4 can additionally be configured as analog channels and another 4 GPIOs can be configured as PWM channels Figure 17 J2 Interpretation for I C interface of 30 pin header sy 2 I2C_GPIO1 3 4 I2C_GPIO3 5 6 PWM1 F1 12C_GPIOS 7 8 2C_GPIO I2C_GPIO7 9 10 f M 12 14 5 16 7 18 sf 9 20 DC CHI I2C GPIO14 1 22 2 12C_GPIO16 AGNO 23 24 I2C GPIO17 ADC CH4 T2C_GPIO18 39 25 26 12C_GPIO19 _GPIO20 127 208 GNO 12C_GPIO21 129 30 f 12C_GPIO22 AMO6836v1 24 53 Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 4 1 3 4 2 3 4 3 Note 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 18 e The SC
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 Yes No No No Spuet UId OE JO eyy suonejeJdaoju ejqissod IV SEGONN Tables and figures UMO935 Appendix D Tables and figures Table 7 GPIO modes of 10 pin interface Mode Input mode read Sub mode Input pull up default mode Expected result 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 Input with rising 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 0 As soon as the value changes from 0 to 1 rising interrupt detected the interrupt status reads 01 from OO 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 1 to O falling interrupt detected the interrupt status reads 01 from 00 Output mode write Output push pull When the Write operation is performed with values 0 or 1 the voltage level on the corresponding GPIO pin can be observed corresponding to the value written Output PWM only
50. o the choice selection or use of the ST products and services described herein 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 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 AN AUTHORIZED ST REPRESENTATIVE 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 pr
51. oducts with provisions different from the statements and or technical features set forth in this document 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 2011 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 17398 Rev 3 53 53
52. older and clicking the Next button the software starts installing Figure 4 Installation ongoing USB to Serial Interface SDK InstallShield Wizard Setup Status USB to Serial Interface SDK is configuring your new software installation AMO06818v1 10 53 Doc ID 17398 Rev 3 ky UMO935 Getting started 2 4 Figure 5 Installation complete Universal Dongle GUI InstallShield Wizard InstallShield Wizard Complete The InstallShield Wizard has successfully installed Universal Dongle GUI Click Finish to exit the wizard AMOS819v1 After clicking the Finish button the software is installed in the 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 Hardware installation Figure 6 below shows a snapshot of the IBU Ul board Figure 6 STEVAL PCCO09V2 IBU universal interface board 30 pin SPI I2C UART and Analog Interface Reset 3 pin We Power 10 pin sPI Select I2C Jumper UART USB Interface SW3 TET vam JS Mode DFU Appii 20 pin JTAG Selection Switch connector AMOS820v1 Doc ID 17398 Rev 3 11 53 Getting started UMO935 2 4 1 2 4 2 12 53 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 soo
53. ot appear please contact technical support Figure 9 Enumeration result 24 Device Manager Jog File Action View Help Coe E Y ga 3 IDE ATA ATAPI controllers A C Keyboards Mice and other pointing devices g Monitors M Network adapters Y Ports COM amp LPT x Communications Port COMI SF Communications Port COM2 d Communications Port COM2 ECP Printer Port LPT1 fh Processors Sound video and game controllers D System devices d Universal Serial Bus controllers Intek r 82801DB D8M USB 2 0 Enhanced Host Controller 24CD Intekr 82801DB DBM USB Universal Host Controller 24C2 InteKr 82801DB DBM USB Universal Host Controller 24C4 STM32 based IBU UI Tool USB Root Hub USB Root Hub USB Root Hub Ki AMO6823v1 Once this is done the user can use their own customized GUI to connect to the board The user can create their own GUI using the DLLs provided in the package along with the board The DLL help file is also available along with the package Doc ID 17398 Rev 3 15 53 Running the IBU UI tool UMO935 3 1 3 1 1 16 53 Using the I7C interface of the 10 pin header Select the 12C 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 12C mode The section below explains how the tool and its features behave once selection has been made using the DLLs and it also explains h
54. ow the hardware setup is to be done Figure 10 shows the interpretation of the 10 pin header when it is configured in 12C mode Figure 10 J1 Interpretation for 12C interface J2 I2C_GPIO1 I2C_GPIO3 I2C_GPIO5 I2C_GPIO2 I2C_GPIO4 I2C_GPIO6 AMO6824v1 Steps for making the hardware connection To use any I C based slave with the IBU UI tool you need to make the connection for jumper J1 as shown in Figure 1 1 e The SCL synchronous clock line SDA serial data and GND ground line should be connected to the corresponding lines of the daughter board for IC communication e VDD power supply line of the two boards should be connected if the daughter board is to be powered using the IBU UI tool e The GPIOs of the IBU UI tool and daughter board can be connected or left unconnected as per user requirements e Asshownin Figure 11 below the SDA and SCL line of the interface is already pulled up to 3 3 V through a resistive pull up of value 4 7 kQ Figure 11 Connection diagram for CC interface GPIOs VDD 3V3 Master IBU UI Tool 10 pin Header Slave I2C based device AMO6825v1 Doc ID 17398 Rev 3 ky UMO935 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 o
55. r ejqissod uv SEGONN a Appendix C All possible interpretations the of 30 pin interface Table 6 All possible interpretations of the 30 pin interface GPIO Input pull up Pin GC UART SPI input floating Output push ADC PWM Supply input with pull and output interrupt falling open drain and rising 1 No No No No No No No 5V 2 No No No No No No No GND CG 3 No CTS No Yes Yes No No No d 4 No RTS No Yes Yes No No No Si 5 No TX No Yes Yes No No No 6 No RX No Yes Yes No No No 3 7 No No No Yes Yes No Yes No R 8 No No No Yes Yes No Yes No 9 No No No Yes Yes No No No 10 No No No Yes Yes No No No 11 SCL No No Yes Yes No No No 12 SDA No No Yes Yes No No No 13 No No No No No No No GND 14 No No No No No No No V CON 15 No No MISO Yes Yes No No No 16 No No CLK Yes Yes No No No 17 No No MOSI Yes Yes No No No 5 18 No No NSS Yes Yes No No No oo SEGONN 228eJ19 u1 uid 0g JO y suonejoJdJo1ur ejqissod Iv S 6v ASH BEEZ CI 90d Table 6 All possible interpretations of the 30 pin interface continued GPIO Input pull up Pin GC UART SPI input floating Output push ADC PWM Supply input with pull and output interrupt falling open drain and rising 19 No No No Yes Yes No Yes No 20 No No No Yes Yes Yes No No 21 No No No Yes Yes No Yes No 22 No No No Yes Yes Yes No No 23 No No No No No No N
56. r to generate a clock signal using the PWM feature available on one pin Therefore you need to make the GPIOs settings accordingly To understand the modes that are supported by a particular pin please refer to Table 6 By default I2C GPIO1 to 12C_GPIO6 are in input pull up mode Here you can set only the GPIOs mentioned C lines SDA and SCL and power lines are fixed To perform the settings of a GPIO use the I C DLL referring to the DLL help file available 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 DC interface there is an option in GPIO5 and GPIO6 to use this GPIO as the PWM clock signal and there is an option in GPIO6 to use it as an ADC channel Please refer to Table 7 in Appendix D Using GPIOs in PWM mode settings As mentioned above GPIO 5 and GPIO 6 can also additionally be set in PWM mode To do this set GPIO5 or GPIO6 in PWM mode and provide the PWM frequency maximum value tested is around 10 MHZ and also the duty cycle to generate different kinds of clocks 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 96 Logic 0 is obtained with the duty cycle at O and logic 1 is obtained with the duty cycle at 100 Please note that the PWM generated on GPIO5 and GPIO6 shares the same frequency but can have different duty
57. rface SOK InstallShield Wizard License Agreement Please read the following license agreement carefully yy 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 documentation 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 Y O accept the terms of the license agreement O I do not accept the terms of the license agreement TTE NETT AMO6816v1 Doc ID 17398 Rev 3 9 53 Getting started UMO935 e 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 DII amp Libraries Figure 3 Destination folder USB to Serial Interface SDK InstallShield Wizard Choose Destination Location Select folder where setup vall install files de Setup will install USB to Serial Interface SDK in the following folder To install to this folder click Next To install to a different folder click Browse and select another folder Destination Folder C NUSB to Serial Interface SDK AMO6817v1 e Step 4 after selecting the f
58. s E Samtec MUSB 05 S B SM A SW1 RESET switch Push button Farnell 9471898 SW2 DNM SPDT switch Slider Farnell 674357 LEDs D1 D2 LED SMD0805 Any SEGONN 1511 NOg pue soneuieuos EGIGb ASH B6EZL CI 90d Table 4 BOM continued Manufacturer s Reference Component ordering code Supplier ordering Category designator Description Package manutacturer orderable part Supplier code number C1 C2 C3 C6 C9 C10 C11 C12 C14 C16 100 nF SMD0805 Any C19 C4 C5 22 pF SMD0805 Any Capacitors C15 4 7 UF SMD1206 Any CAP CER 10 pF 16 T C7 C18 V X5R 1206 SMD1206 Digikey 587 1339 2 ND C8 10 nF SMD0805 Any C17 4 7 nF SMD0805 Any Inductor multilayer me Inductors L1 10 uH 2012 SMD0805 Digi Key 445 1059 1 ND Res 100 kO 1 8 W BE R1 R5 5 0805 SMD SMD0805 Digi Key 311 100KARTR ND R3 DNM R25 R8 Res 0 0 O 1 8 W GC R24 DNM 0805 SMD SMD0805 Digi Key RMCF1 100RTR ND R4 O asma Deel WEE Wore esposos Digi Key RMCF1 101MJRTR ND 0805 SMD Resistors R2 R15 360 Q SMD0805 Any R7 R9 R10 R16 R11 10 kQ SMD0805 Any R12 R17 100 0 SMD0805 RES 1 5 KQ 1 8 W EN RMCF1 101 5KJRTR R13 5 0805 SMD SMD0805 Digi Key ND ett IOS pue soneuieuos SEGONN d ASH 86 44 CI 90d S 9v Table 4 BOM continued Manufacturer s Reference Component ordering code Supplier ordering Category designator Description Package
59. s Windows 2000 or Windows XP must be installed on the PC The version of the Windows OS installed on the PC may be determined by clicking on the System icon in the control panel Package contents The IBU UI tool includes the following items e Hardware content One board BOM list Schematic e Software content DFU firmware DLL files of the 12C SPI and UART interface of the 10 pin header DLL files of the IC SPI and UART1 and UART2 interface of the 30 pin header Source code including DFU e Documentation User manual to work in functional mode User manual to work in DFU mode Help file on how to use the DLL file Software installation The DLLs are provided with the tool mainly in the form of a CD as a part of the package The folder contains the setup files e Stepi as soon as the user clicks the setup exe icon the following window appears Doc ID 17398 Rev 3 ky UMO935 Getting started 4 Figure 1 Installation Window USB to Serial Interface SDK InstallShield Wizard er Welcome to the InstallShield Wizard for USB to y Serial Interface SDK The InstallShield Wizard wil install USB to Serial Interface SDK on your computer To continue click Next SES AMO6815v1 e Step 2 read the license file and click the Next button if you accept the license Figure 2 License Window USB to Serial Inte
60. t mode input with interrupt and push pull output mode Also in the UART SCI interface there is an option in GPIOS and GPIOA to use this GPIO as the PWM clock signal and there is an option in GPIO4 to use it as an ADC channel Using GPIOs in PWM settings As mentioned above GPIO 3 and GPIO 4 can also additionally be set in PWM mode To do this set the GPIO3 or GPIO4 in PWM mode and provide the PWM frequency maximum value tested is around 10 MHz and also the duty cycle to generate different kinds of clocks The frequency of the PWM clock generated can vary from 10 kHz to 10MHz The duty cycle of the PWM clock can vary from 0 to 100 96 Logic 0 is obtained with the duty cycle at O and logic 1 is obtained with the duty cycle at 100 Please refer to Figure 34 Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool 3 3 4 3 3 5 3 3 6 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 After that specify the number of samples that are required Analog input can then be provided on this pin and the set of the digital 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 conv
61. the communication To read write in the register select the register address length depending on the slave device 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 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 SPI communication taking place between the IBU UI board and the SPI slave daughter board can be 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 e Communication complete bus free e SPI timeout e 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 lights up whenever there is any type of communication error of type 1 2 or 3 above The LED status is updated after each read or write operation The transfer sequence for one byte of SPI is shown in Figure 22 Doc ID 17398 Rev 3 ky UMO935 Running the IBU UI tool Figure 22 Trans
62. the set of the digital 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 conversion ADC sample time selection values can be one of the following 7 5 cycles 13 5 cycles 28 5 cycles 41 5 cycles 55 5 cycles 71 5 cycles or 239 5 cycles UART2 SCI2 header settings Once the GPIO settings are completed the daughter board can be connected to the IBU UI board Before using the UART2 SCI2 communication some parameters must first be defined These parameters include the selection of parameters such as e UART SCI bits per second values can be 110 300 1200 2400 4800 9600 19200 38400 57600 115200 230400 and 460800 UART SCI data per bits can be 8 bit or 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 UART2 SCI2 interface and now the system is ready to read or write the data from the UART2 SCI2 slave device connected to the IBU UI board Doc ID 17398 Rev 3 37 53 Running the IBU UI tool UMO935 3 7 7 38 53 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
63. unication that has taken place e Communication complete bus free e SPI timeout e 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 lights up whenever there is any type of communication error of type 2 or 3 above The LED status is updated after each read or write operation Depending on the CPHA and CPOL values the transfer sequence for one byte of SPI is shown in Figure 17 Therefore this interface allows any SPI interface based slave device to be connected and tested Using the UART SCI interface of the 10 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 After this the 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 be done Figure 15 below shows the interpretation of the 10 pin headers when it is configured in UART mode Figure 15 J1 interpretation for UART SCI interface J2 UART TX UART RX UART_RTS UART_CTS SCI_GPIO1 SCI GPIO2 SCL GPIO3 SCI GPIO4 AMOS832v1 Doc ID 17398 Rev 3 21 53 Running the IBU UI tool UMO935 3 3 1 3 3 2 3 3 3 22 53 Steps for making hardware connection To use any UART SCI based slave with
Download Pdf Manuals
Related Search
Related Contents
Finisar SFP LC 2km MMF 「00009B(9ポ/h、 50Hz) : Free Download, Borrow, and Streaming : Internet Archive ノートン エンドレス ベルト User Manual - Oracle Documentation Mappa del sito senza il CMS FlexCMP Samsung SGH-A226 User Manual N8142-17A 冗長無停電電源装置(AC200V 入出力用 ラック Pioneer DV58AV_KU_EN User's Manual Utilisation et fonctionnement Copyright © All rights reserved.
Failed to retrieve file