Advertisement

Quick Links

Getting Started with EZ-PD™ CCG3
AN200210 introduces the USB Type-C EZ-PD™ CCG3 controller. It provides a brief overview of the CCG3
architecture and its features and applications and covers the evaluation kit in detail along with the development and
debugging tools that can be used. It also references CCG3 resources to help you ramp up quickly with your product
designs.
Contents
1
Introduction ............................................................... 1
1.1
EZ-PD CCG3 Features .................................... 1
1.2
CCG3 Block Diagram ...................................... 2
1.3
Prerequisites .................................................... 2
1.4
CCG3 Design Flow .......................................... 3
1.5
CCG3 Resources ............................................. 5
2
CCG3 Hardware Details ........................................... 5
2.1
CY4531 EZ-PD CCG3 EVK ............................. 5
2.2
CY4500 EZ-PD Protocol Analyzer ................... 6
3
3.1
3.2
Flash Memory Organization ............................. 9
3.3
Firmware Build Environment .......................... 10
3.4
Firmware Configurable Features ................... 13
3.5
Firmware Operation ....................................... 14
3.6
4
Development and Debugging .......................................... 15
4.1
EZ-PD Configuration Utility ............................ 15
1

Introduction

EZ-PD CCG3 belongs to Cypress's family of USB Type-C microcontrollers that complies with the latest USB Type-C
and Power Delivery (PD) standards. It consists of a dual bank of 64 KB of flash memory, 8 KB of SRAM memory, a
crypto engine for authentication, and a pair of VCONN field-effect transistors (FETs). In addition, with the integrated
Billboard controller, over-voltage protection (OVP), and over-current protection (OCP), it helps to reduce the need for
additional components and the overall cost of a Type-C ecosystem. Typical applications using CCG3 include power
adapters, power banks, Type-C dongles, notebooks, Thunderbolt hosts and cables, monitors, and docks.
1.1

EZ-PD CCG3 Features

32-bit MCU subsystem
48-MHz ARM
Dual 64-KB flash memory with fail-safe firmware updates
www.cypress.com
®
®
Cortex
-M0 processor
Document No. 002-00210 Rev. *A
Associated Part Family: CYPD3xxx
Associated Software:
Related Application Notes:
4.2
EZ-PD Analyzer Utility ................................... 17
5
Example .......................................................................... 18
5.1
5.2
Configuration Utility .................................................... 21
5.3
Program
Configuration
Configuration Utility .................................................... 26
5.4
Document History ............................................................ 32
Worldwide Sales and Design Support ............................. 33
Products .......................................................................... 33
PSoC® Solutions ............................................................ 33
Cypress Developer Community....................................... 33
Technical Support ........................................................... 33
AN200210
Author: Vihang Trivedi
TM
EZ-PD
Configuration Utility
AN210403
CCG3
Device
with
Parameters
Using
the
Modification
Updated
EZ-PD
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EZ-PD CCG3 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress EZ-PD CCG3

  • Page 1: Table Of Contents

    Introduction EZ-PD CCG3 belongs to Cypress’s family of USB Type-C microcontrollers that complies with the latest USB Type-C and Power Delivery (PD) standards. It consists of a dual bank of 64 KB of flash memory, 8 KB of SRAM memory, a crypto engine for authentication, and a pair of VCONN field-effect transistors (FETs).
  • Page 2: Ccg3 Block Diagram

    CCG3 architecture. For more details, refer to the CCG3 datasheet. Figure 1. CCG3 Architecture Block Diagram Prerequisites This section lists the hardware and software required to get started with CCG3 devices. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 3: Ccg3 Design Flow

    These reference schematics can be based on the reference designs available on the Cypress’ CCG3 webpage. The...
  • Page 4 Get CY4531 CCG3 DESIGN FLOW EVK OR use prototype hardware Build reference schematic based on application. (Refer to CCG3 datasheet or contact Cypress for reference Minor design schematics) Modifications? Use EZ-PD Start with CCGx SDK. Do board design & build...
  • Page 5: Ccg3 Resources

    CY4531 EZ-PD CCG3 EVK The CY4531 EZ-PD CCG3 EVK consists of a base board and a daughter card. The CCG3 device is mounted on the daughter card, which is connected to the base board to enable the CCG3 device’s Type-C port functionality.
  • Page 6: Cy4500 Ez-Pd Protocol Analyzer

    The CY4531 EZ-PD CCG3 EVK includes power provider and consumer path control circuitry on the CCG3 daughter card to showcase EZ-PD CCG3’s ability to switch its power role from a provider to a consumer and vice versa. It contains over-voltage protection (OVP) and over-current protection (OCP) circuitry for VBUS and supports EZ-PD CCG3 device programming over SWD and I C interfaces.
  • Page 7: Ccg3 Firmware Details And Build Environment

    Micro USB USB 2.0 port cable Downloading and installing the latest analyzer software setup (CY4500Setup.exe) from the Cypress website http://www.cypress.com/CY4500 also installs the EZ-PD Analyzer Utility for running the analyzer, required drivers, and all relevant documentation. An overview of this utility is provided in the EZ-PD Analyzer Utility section.
  • Page 8: Ccg3 Firmware Architecture Overview

    CCG3 provides this functionality using commands, responses, events, and asynchronous messages that are modeled as registers. Detailed documentation on CCG3 HPI Interface is available. Contact your local Cypress FAE or contact Cypress Technical Support for this information.
  • Page 9: Flash Memory Organization

    Dual firmware images enable firmware updates to be fail-safe; that is, the firmware update does not interrupt the normal operation of the device. All applications supported by CCG3 support dual firmware images. Figure 6 shows the flash map of the CCG3 device. Figure 6. CCG3 Firmware Organization www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 10: Firmware Build Environment

    (SDK) is a PSoC Creator project that allows users to harness the capabilities of Cypress’s CCG families of Type-C Controllers. It provides a Type-C and USB-PD specification compliant firmware stack along with the necessary drivers and software interfaces required to implement applications using CCG controllers.
  • Page 11 PSoC Creator workspace file structure for a CCG3 device–based notebook application. PSoC Creator generates bootloadable .cyacd files and a Cypress format .hex file every time a project is successfully compiled and built. In every PSoC Creator project, a system-level design diagram is included. This schematic is located in the TopDesign.cysch file.
  • Page 12 Getting Started with EZ-PD™ CCG3 Figure 8. PSoC Creator Workspace Structure for CCG3 Notebook Application www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 13: Firmware Configurable Features

    Enable toggling of the LED to indicate firmware operation. 1 for LED enable It is recommended that this be left disabled in production 0 for LED disable designs to save power and also to free up the GPIO used for LED control. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 14: Firmware Operation

    .cyacd file as the input for the firmware binary file to be programmed. Refer to Chapter 4 of the CY4531 EZ-PD CCG3 Evaluation Kit User Guide for more details on how to program CCG3 devices using the EZ-PD Configuration Utility. The PSoC Creator/PSoC Programmer tool uses a .hex file for programming all devices.
  • Page 15: Software Tools For Ccg3 Application Firmware Development And Debugging

    You can download and install this tool from the Cypress website. After installation, the utility can be executed from the following location: Windows > Start > All Programs > Cypress > EZ-PD Configuration Utility > EZ-PD Configuration Utility. Figure 10 shows the utility running on a Windows machine.
  • Page 16 EZ-PD Configuration Utility User Manual for more details on firmware update and configuration of the device. You can open the user manual by choosing Help > User Manual in the EZ-PD Configuration Utility, as shown Figure www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 17: Ez-Pd Analyzer Utility

    PD messages over CC (for example, PR_SWAP, DR_SWAP, and PDOs) as shown in Figure 12 while the CCG3 device is establishing a PD contract with the connected Type-C device. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 18: Ccg3 Configuration Parameter Example

    Program the updated configuration parameters into the CCG3 device using the EZ-PD Configuration Utility and verify. Retest the CY4531 CCG3 EVK setup with a Type-C power adapter to verify the updated PDOs using the CY4500 EZ-PD Protocol Analyzer. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 19: Test Cy4531 Ccg3 Evk Setup With The Default Configuration And Type-C Power Adapter

    Connect the Type-C plug of the CY4500 EZ-PD Protocol Analyzer to the Type-C port of the CCG3 EVK. Launch the EZ-PD Analyzer Utility from Windows > All Programs > Cypress > EZ-PD Analyzer Utility > EZ-PD Analyzer Utility and click on the Start Capturing icon shown in...
  • Page 20 PC should look similar to that in Figure Figure 15. Connecting CY4500 EZ-PD Protocol Analyzer to CY4531 CCG3 EVK Type-C Power Jumper Setting Adapter HOST PC USB 2.0 port Micro USB cable www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 21: Modify Configuration Parameters Using Ez-Pd Configuration Utility

    CY4531 CCG3 EVK’s daughter card’s USB2.0 receptacle at the J7 connector (on the backside of the CCG3 daughter card) must be used for this setup as shown in Figure 17. Wait for driver detection and binding for the USB-Serial controller on the CY4531 CCG3 EVK. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 22 CCG3 Daughter Card at the bottom Launch the EZ-PD Configuration Utility from Windows > All Programs > Cypress > EZ-PD Configuration Utility > EZ-PD Configuration Utility. If the device driver binding is successful, the GUI should report one...
  • Page 23 Parameters, Port Parameters, and User Parameters. For multi-port devices, there will be multiple copies of the port parameter entries. Port parameters are further classified and grouped into a hierarchical tree structure. In this example, select Device Parameters in the left panel. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 24 For example, clicking on Sink PDO 2 will show the corresponding power profile of 14.8V, 900mA (expressed in units of 50mV, 10mA) in the main window. That is, 296 * 50mV = 14.8V and 90 * 10mA = 900mA. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 25 For more details on the functionality related to the EZ-PD Configuration Utility, refer to its user manual by clicking here. You can also open the user manual by choosing Help > User Manual in the EZ-PD Configuration Utility, as shown in Figure www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 26: Configuration Utility

    Therefore, in this case, the alternate mode firmware will become the running firmware after the configuration update is complete and the device is reset. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 27 Flashing Configuration Succeeded. Click OK. The Message window at the bottom of the utility also shows progress during the update process as shown in Figure 25. This shows that the configuration table of the CCG3 device of the CY4531 CCG3 EVK is successfully updated. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 28 27, it can be seen that the CCG3 device of the CY4531 CCG3 EVK now only supports four sink PDOs listed as PDO 0 – 3, and not five PDOs as shown in Figure 20 earlier. Also note that PDO 2 no longer supports the power profile of 14.8V, 900mA. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 29 Getting Started with EZ-PD™ CCG3 Figure 26. Reading back Updated Configuration Table of CCG3 Device using EZ-PD Configuration Utility Figure 27. Verifying the Updated Configuration Table in CCG3 device using EZ-PD Configuration Utility www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 30: Re-Test Cy4531 Ccg3 Evk Setup With Modified Configuration And Type-C Power Adapter

    Connect the Type-C plug of the CY4500 EZ-PD Protocol Analyzer to the Type-C port of the CCG3 EVK. Launch the EZ-PD Analyzer Utility from Windows > All Programs > Cypress > EZ-PD Analyzer Utility > EZ-PD Analyzer Utility and click on the “Start Capturing” icon shown in...
  • Page 31 CCG3 EVK. In order to restore the CY4531 CCG3 EVK back to the default configuration parameters, follow the steps described in section “Programming the CCG3 Device on CY4531 CCG3 EVK” of the CY4531 EZ-PD CCG3 EVK Guide. Once completed, the steps described in the...
  • Page 32: Document History

    Document History Document Title: AN200210 – Getting Started with EZ-PD™ CCG3 Document Number: 002-00210 Revision Orig. of Submission Description of Change Change Date 5320774 06/23/2016 New application note. 5857634 HARA 08/18/2017 Updated logo and copyright. www.cypress.com Document No. 002-00210 Rev. *A...
  • Page 33: Worldwide Sales And Design Support

    Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products.

This manual is also suitable for:

An200210

Table of Contents