Table of Contents

Advertisement

Quick Links

UM2342
User manual
Getting started with the STEVAL-PCC020V1: USB to I²C UART interface board
and associated GUI for STNRG products
Introduction
®
The
STEVAL-PCC020V1
USB to I²C/UART board interfaces a Windows
-based PC with STNRG digital power supply
controllers such as STNRG011.
It is basically a bidirectional bridge between USB and I²C/UART buses and embeds an on-board power supply to communicate
and program the STNRG IC without need of mains.
The associated GUI allows monitoring the status of the digital controller in real-time and tuning specific parameters according to
customers' needs.
Figure 1.
STEVAL-PCC020V1 interface board
UM2342 - Rev 1 - February 2018
www.st.com/
For further information contact your local STMicroelectronics sales office.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCC020V1 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST PCC020V1

  • Page 1: Figure 1. Steval-Pcc020V1 Interface Board

    UM2342 User manual Getting started with the STEVAL-PCC020V1: USB to I²C UART interface board and associated GUI for STNRG products Introduction ® STEVAL-PCC020V1 USB to I²C/UART board interfaces a Windows -based PC with STNRG digital power supply controllers such as STNRG011.
  • Page 2: Interface Board Aim

    Customer typical application Figure 3. STNRG011 in demo/debug configuration shows the STNRG011 on the STEVAL-PCC020V1 interface board or during debug configuration. In the latter case, you can access the external optional E²PROM using the I²C protocol to program the associated patches and reset the black box content.
  • Page 3 UM2342 Interface board aim Figure 3. STNRG011 in demo/debug configuration To minimize STRGN011 pin count, UART and I²C interfaces share the same pins. The interfaces are not isolated from the mains as they are located on the offline converter primary side. Important: This adapter board is exclusively designed to interface with STNRG011 products.
  • Page 4: Getting Started

    UM2342 Getting started Getting started STEVAL-PCC020V1 interface board overview The STEVAL-PCC020V1 interface board key features are: • Bidirectional communication between PC (USB) and STNRG011 • Self-powered from the USB line • On-board 19 V generation for STNRG011 programming • Electric Isolation between USB and other board electronics •...
  • Page 5: Hardware Description And Setup

    Hardware description and setup Hardware description and setup Block diagram Figure 4. STEVAL-PCC020V1 block diagram Galvanic isolation STNRG011 has to be placed on the offline converter primary side: the galvanic isolation between the USB and the remaining electronic of the board prevents any voltage from reaching the host PC and causing electrical damage or interference.
  • Page 6: Figure 5. Vcc Ramp-Up Typical Waveform

    Figure 5. VCC ramp-up typical waveform 3.3.2.2 NVM programming STEVAL-PCC020V1 interface board provides a VCC voltage to the target device that is high enough for an NVM programming operation. STNRG011 programming requirements are +18 V and 35 mA max. current.
  • Page 7: Usb Bridge

    USB bridge USB bridge The communication between the STEVAL-PCC020V1 and the PC is managed by the latter as a standard serial peripheral; the IC U3 converts the USB connection into a virtual COM port (refer to the electrical schematic). By default, the virtual COM port operates at 921600 bps.
  • Page 8: Using The Board

    Using the board Using the board Board connectors, LEDs and buttons Figure 6. STEVAL-PCC020V1 interface board connectors Figure 7. STEVAL-PCC020V1 interface board status LEDs Table 1. STEVAL-PCC020V1 LEDs (ON, OFF, blinking state) Blinking Blinking Waiting for VCP not Receiving Normal Firmware...
  • Page 9: How To Connect The Steval-Pcc020V1 Interface Board To The Offline Converter

    UM2342 How to connect the STEVAL-PCC020V1 interface board to the offline converter How to connect the STEVAL-PCC020V1 interface board to the offline converter Figure 8. STEVAL-PCC020V1 interface board typical connection Procedure Step 1. Connect the STEVAL-PCC020V1 interface board to a PC via a USB cable Step 2.
  • Page 10: Software Installation

    UM2342 Software installation Software installation You have to install the USB driver and the PC GUI before using the STEVAL-PCC020V1 interface board. Virtual COM port driver installation (SiLabs CP2102) To use the STEVAL-PCC020V1 interface board, first install one of the USB drivers located in the CD folder Driver \CP210x_VCP_Windows: •...
  • Page 11: Gui Introduction

    UM2342 GUI introduction GUI introduction GUI features STNRG011 GUI is designed for debugging power supply applications. It allows: • reading instantaneous power metering information and PFC operating modes; • reading and modifying STNRG011 NVM parameters defining the supply behavior (gain, fault management, delays, PFC/LLC parameters, etc.);...
  • Page 12: Figure 11. Gui Com Port Selection

    UM2342 Connection management Figure 11. GUI COM port selection Once the right COM port is selected, the GUI tries to communicate with the interface board microcontroller, as shown below. Figure 12. Traces during GUI connection Once the microcontroller has been detected, the GUI displays the associated hardware and firmware version, and build date.
  • Page 13: Gui Settings

    UM2342 GUI settings Figure 13. SiLabs VCP in the Device Manager GUI settings You can access GUI settings through the Application→Settings menu. UM2342 - Rev 1 page 13/57...
  • Page 14: Table 2. Gui Setting Parameters

    UM2342 GUI settings Figure 14. GUI Settings menu Some settings (e.g. GUI refresh rate or power averaging) can be changed in real-time. Pressing the Save Settings button saves the settings into the config.xml file. Table 2. GUI setting parameters Serial Port UART Tx delay (ms) Optional Tx Delay.
  • Page 15 UM2342 GUI settings Serial Port DefaultWatch files Default path for the Watch settings, used to monitor internal variables of the firmware Default Pwr file Calibration file for the power metering GUI settings Delay in ms between each GUI refresh GUI refresh rate Messages sent to STNRG are concatenated to avoid USB overhead (Write1- Concatenate commands Write2..Read1-Read2 instead of Write1-Read1-Write2-Read2….)
  • Page 16: Gui Normal Mode

    UM2342 GUI normal mode GUI normal mode Power metering During normal mode, STNRG011 sends the information used to compute the actual power delivered by the PFC, that is: • the estimated power computed by the power integration algorithm • some factors used for power estimation correction : –...
  • Page 17: Event History And Factory Data Pre-Requisite: E²P

    UM2342 Event history and factory data pre-requisite: E²P Event history and factory data pre-requisite: E²P Event history and factory data are available only if an external E²PROM (M24C32) is connected to the STNR0G11. This allows retrieving some information in case of system failures. Since the fault history and factory data content is only sent at system power up, you have to turn the power supply off and on to get the status.
  • Page 18: Table 3. Gui E²P Parameter Description

    UM2342 Factory data display Factory data display Figure 18. GUI factory data panel Like faults history, factory data are sent at each STNRG011 power up. The table below shows the factory data parameters and lists some fields as examples for a possible user application.
  • Page 19: Power Metering Calibration

    UM2342 Power metering calibration Power metering calibration Background STNRG011 provides to the host continuous power metering information about: • PFC integrated power in raw format (resulting from the PID integrator) • Input voltage • PFC operating mode and skipping area •...
  • Page 20: Figure 19. Gui Power Metering Calibration Window

    UM2342 Metering calibration Figure 19. GUI power metering calibration window To calibrate the PFC mode parameters: Procedure Step 1. Set a load to make the systems enter the transition mode (near nominal power, e.g. 150 W) Step 2. Enter the associated reference power read on a precision power meter in the Ref Pwr box Step 3.
  • Page 21: Ate Mode

    UM2342 ATE mode ATE mode Normal and ATE mode: differences STNRG011 supports two main modes of operation: • Normal (or running): is the GUI normal operation mode (described in the previous chapter) • ATE: is mainly used to program the STNRG011 NVM section and is based on the ATE protocol Table 4.
  • Page 22: Autobaud

    UM2342 Autobaud Enter ATE Mode: attempts ATE mode procedure. The GUI: asserts the SCL pin low (request to enter ATE mode) switches the internal VCC generation on checks the ATE mode is effectively working Auto baud: is used for internal debug purposes but also to check UART speed. Basically, it performs auto baud and computes the optimal UART link speed Go Run Mode: switches off Internal VCC generation Once the device has successfully entered ATE mode, the status bar is updated and the ROM ID is displayed...
  • Page 23: Nvm Options

    UM2342 NVM options After ST factory calibration (trimming), the resulting accuracy is about 2.3%; enough to ensure normal UART communication. However, if the accuracy is outside UART tolerances, the GUI might not be able to communicate with STNRG011 and ATE mode would fail.
  • Page 24: Nvm Options

    UM2342 NVM editor Danger: You must take care when changing the NVM parameters. Improper settings can lead to the offline converter destruction. Figure 27. NVM editor window 9.5.1 NVM options • Read from IC: reads NVM content from chip • Write to IC: writes current NVM content to chip •...
  • Page 25 UM2342 NVM editor Step 3. Press OK to validate the change. Once the parameter has been changed and is different from the current NVM, it is highlighted in yellow. Step 4. Click the Write to IC button to program the NVM memory. UM2342 - Rev 1 page 25/57...
  • Page 26: 10 E²P Operations

    UM2342 E²P operations E²P operations Important: STNRG011 shares the E²P interface (SDA/SCL) with the UART interface to minimize pin count. During normal operation (switching), the optional E²P is only accessed at boot and when a fault occurs. It is possible to access E²P in normal mode, but this might cause conflicts due to simultaneous access by the STNRG011 metering information (UART) and the GUI accessing the E²P.
  • Page 27: E²P Patch And Image Upload/Download

    STNRG011 firmware does NOT support an empty (FF) image. The E²P must be cleared using the All 0s pattern. Alternatively, a full image can be written (provided by ST). Both Erase and Write operations need confirmation to be saved. UM2342 - Rev 1...
  • Page 28: E²P Parameter Editor

    UM2342 E²P parameter editor 10.2.2 Patch programming box There are two different types of patches: • Cold, downloaded from E²P to XRAM just before the IC starts switching • Hot, downloaded after IC has started switching operations Only the cold patching is used here. Note: Normally, you do not have to specify the patch type (hot/cold).
  • Page 29: Additional Tools

    UM2342 Additional tools Important: It is recommended to edit these field with STNRG011 in ATE mode or via VCC externally powered. If the parameters are written whilst STNRG011 is running, they will be overwritten when STNRG011 is shut down. When STNRG011 is powered up, it makes a copy of the event history in its RAM, which changes during the active phase. At shutdown, the RAM content will be overwritten in the E²P, hence the E²P content will be overwritten.
  • Page 30: Table 6. Psu Monitor: Pfc/Llc Features

    UM2342 Additional tools Figure 34. PSU monitor window Table 6. PSU monitor: PFC/LLC features Input Power Estimated PFC power corrected by Vin/PAM/Mode/Tdel parameters Mains voltage in RMS value Line Freq Mains Frequency Vout Target PFC output Voltage (target) Vout PFC output Voltage (measured) Tsw Meas PI Algo Ton Ton added computed by power integration algorithm...
  • Page 31: Pfc Calibration

    UM2342 PFC calibration PFC calibration 11.1 Introduction The STNRG GUI can calibrate the PFC parameters thanks to the embedded wizard, which features: • PFC parameter semi-automated calibration • THD improver manual tuning • Possibility to manually change some parameters to test the overall behavior •...
  • Page 32: Pfc Protection

    UM2342 PFC protection Note: The PFC calibration has to be performed for a given design (based on the component choice, supply output power, etc.). It is not necessary to perform the calibration for each unit created. 11.3 PFC protection During the PFC calibration, the normal algorithm behavior is changed. In particular, the PFC mode change algorithms can be disabled to adjust some parameters.
  • Page 33: Mode Of Operation

    UM2342 Step by step calibration example 11.4.1 Tuning calibration tabs The following picture shows the PFC tuning main window with tabs representing the various steps to be followed during the calibration. Figure 37. Main PFC tuning tab 11.4.2 Mode of operation You have to choose the operating mode (manual or not) and the power supply characteristics.
  • Page 34: Step 1: Thd Improver

    UM2342 Step by step calibration example If manual mode is selected, you have to manually change the AC source voltage and DC load current: a window will pop-up each time an action is necessary. STNRG011 is able to detect when the AC source is switched on/off, which limits the interactions. Figure 39.
  • Page 35: Step 2: Delta Pin Calibration

    UM2342 Step by step calibration example Figure 41. PFC tuning: THD improver tab 11.4.4 Step 2: delta pin calibration The second step is to calibrate delta pin correction factor when changing from on mode to the other. To compute the delta pin calibration, the GUI: •...
  • Page 36: Step 3:Tsw Test

    UM2342 Step by step calibration example Figure 42. PFC tuning: delta pin calibration 11.4.5 Step 3:TSW test After computing the delta pin, the third step is to determine the mode changes based on the PFC frequency. You have to manually select the minimum/maximum bounds for the PFC frequency. During normal operations, if the PFC actual frequency crosses this boundary, a mode change is required.
  • Page 37: Step 4: Skipping Area Threshold

    UM2342 Step by step calibration example Figure 43. PFC tuning: determining TSW limits Finally, the GUI computes the PFC parameters. Figure 44. PFC tuning: PFC min./max. pin and DCM power 11.4.6 Step 4: skipping area threshold The forth step consists in setting the skipping area power threshold (below this threshold, the system will apply power skipping, i.e.
  • Page 38: Step 5: Final Verification

    UM2342 Step by step calibration example Figure 45. PFC tuning: determining skipping area threshold 11.4.7 Step 5: final verification Once all steps have been performed, the GUI simply checks the supply behavior. To perform the final verification, the GUI: • enables PFC mode change (both PFC frequency and estimated power-based) as the normal mode •...
  • Page 39: Pfc Parameter Update

    UM2342 Step by step calibration example Figure 47. PFC tuning: final verification 11.4.8 PFC parameter update Once you are satisfied with the PFC calibration performance, you can update the NVM to make the parameters permanent, by simply clicking the Write to NVM button. Figure 48.
  • Page 40: Troubleshooting

    UM2342 Troubleshooting Troubleshooting 12.1 No LED activity detected on the STEVAL-PCC020V1 interface board When the board is plugged to the system: • LED D2 lights up, indicating the MCU is working, hence, the power supply is present; • the yellow LED D1 starts blinking, indicating the USB port has been enumerated correctly.
  • Page 41: Figure 50. Disabling Cp2102 Usb Suspend Mode

    UM2342 USB yellow LED shutdown in few seconds Step 2. select the SiLabs COM port Step 3. go to the Power Management tab Step 4. untick the Allow the computer to turn off this device to save power box Figure 50. Disabling CP2102 USB suspend mode UM2342 - Rev 1 page 41/57...
  • Page 42: Steval-Pcc020V1 Interface Board Hardware

    The connection between the supply and the interface board is made via a Molex 6-pin low profile connector (J3). The signals are also available on a 4-pin HE10 header (J4). Figure 51. STEVAL-PCC020V1 interface board signal connectors Table 8. STEVAL-PCC020V1 J3 and J4 pinout...
  • Page 43: Firmware Upgrade

    UM2342 Firmware upgrade 13.2 Firmware upgrade Figure 52. STEVAL-PCC020V1 interface board firmware update menu Figure 53. STEVAL-PCC020V1 interface board firmware update window Figure 54. STEVAL-PCC020V1 interface board firmware update in progress UM2342 - Rev 1 page 43/57...
  • Page 44: Schematic Diagram

    UM2342 Schematic diagram 13.3 Schematic diagram Figure 55. STEVAL-PCC020V1 circuit schematic: USB power CT S RT S SUSPEN D RX D /SUSPEN D TX D DS R RS T DT R VBU S GND _U SB GND _USB UM2342 - Rev 1...
  • Page 45: Figure 56. Steval-Pcc020V1 Circuit Schematic: Mcu

    UM2342 Schematic diagram Figure 56. STEVAL-PCC020V1 circuit schematic: MCU GN D GN D GN D GN D PA1 4 VDDS D PA1 5 VSSSD / VREFSD - PB 3 PE 9 PB 4 PE 8 PB 5 PB 2 PB 6...
  • Page 46: Layout

    UM2342 Layout 13.4 Layout Figure 57. STEVAL-PCC020V1 interface board layout (top view) UM2342 - Rev 1 page 46/57...
  • Page 47: Bill Of Materials

    UM2342 Bill of materials Figure 58. STEVAL-PCC020V1 interface board layout (bottom view) 13.5 Bill of materials Table 9. STEVAL-PCC020V1 bill of materials Item Q.ty Ref. Part/Value Description Manufacture Order code C1, C2, 100 nF, 50 V, 0603, Ceramic capacitors Murata...
  • Page 48 UM2342 Bill of materials Item Q.ty Ref. Part/Value Description Manufacture Order code 85 V, 0.5 A, 4 nS, Diode BAS16 /T3 BAS16, SOT23 Semiconduct 0.5 A, 63 V, SLO, SMD, Fuse Littelfuse 0466.500NR 1206 FIX1, FIX2, HOLE_3.2MM_6 Through hole FIX3, FIX4 CN-USB 1734035-1 USB_B_MINI_AMP_1 1734035-1...
  • Page 49 UM2342 Bill of materials Item Q.ty Ref. Part/Value Description Manufacture Order code 3.3 V, 100 mAh, Ultra low drop voltage LD2981ABM33TR LD2981ABM33TR regulators with inhibit SOT23-5 low ESR output 100 mAh, LM2931D-R Very low drop voltage LM2931D-R regulators with inhibit function STM32F373C8T6 Mainstream mixed...
  • Page 50: Revision History

    UM2342 Revision history Table 10. Document revision history Date Version Changes 01-Feb-2018 Initial release. UM2342 - Rev 1 page 50/57...
  • Page 51: Table Of Contents

    STEVAL-PCC020V1 interface board overview........
  • Page 52 UM2342 Contents Faults history ..............17 Factory data display.
  • Page 53 STEVAL-PCC020V1 interface board hardware ........42...
  • Page 54 STEVAL-PCC020V1 LEDs (ON, OFF, blinking state) ........
  • Page 55 STEVAL-PCC020V1 interface board firmware update menu ........
  • Page 56 STEVAL-PCC020V1 interface board firmware update in progress ....... . 43...
  • Page 57 ST’s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’...

Table of Contents