Author: RajathB_01 Version: **
How to identify if the kit functionality is power adapter (PA) or power bank (PB)?
Follow these instructions to identify the application firmware type (PA/PB) loaded on the CY4532 EVK:
- Connect the power adapter to the DC jack (J3) of the CY4532 EVK Power Board.
- Set the Input Power Selection Switch (SW1) on the Power Board to the ‘DC input’ position.
- Ensure that the green power LED lights up and remains ON (On earlier version EVKs, it blinks and turns OFF). Jumper J14 should be there for LED to light up.
- Ensure that main board jumpers J4 shorts 1-2, and J6 shorts 2-3.
- Use a multimeter and measure the voltages on the yellow test points TP11 (CC1 test point) with respect to GND TP16, and TP8 (CC2 test point) with respect to GND TP16. See Table 1 to identify the application firmware type that is programmed on the kit.
Table 1. Voltage Ranges on CC Lines for Different Applications
For more information, see the kit guide.
Question: What should be done if neither PA nor PB FW is detected?
Answer: If neither PA nor PB firmware is detected, the default kit firmware must be programmed into the controller. Connect a USB micro-B cable from the PC to the power board and use the default CYACD firmware provided with the kit software that you downloaded to update the FW using the EZ-PD Configuration Utility. Detailed steps are provided in Section 4 of CY4532 EVK user guide.
Question: What should be done if the CCG3PA controller is not detected in the EZ-PD Configuration Utility?
Answer: If the CYPD3171 (UFP-AMA) device is not being detected in the EZ-PD Configuration Utility, check the following:
- Verify that jumpers J2, J3, and J4 on the CY4532 EVK Main Board are set correctly as per the existing firmware loaded on the EVK.
- Verify that power is supplied according to the existing firmware.
If you have made any firmware modification (outside of SDK), and the CYPD3171 (UFP-AMA) device is not detected even after verifying the power and jumper settings, follow these steps to flash the default CC bootloader and update the firmware using the default kit binaries provided.
1. Remove any external supply to the kit (DC power / battery / Type-C devices).
2. Remove jumpers on J6 and J7 of the power board.
3. On jumper J6 on main board, short pins 2-3 (VTARG – VDDD).
4. Connect a MiniProg3 Programmer/Debugger (CY8CKIT-002) to the SWD header J1 on the main board and connect the MiniProg3 USB interface to a PC.
5. Open PSoC Programmer utility on the PC. Make sure that MiniProg3 is detected and ensure that the programmer settings are as follows:
a) Programming Mode: Power Cycle
b) Verification: On
c) Connector: 5p
d) AutoDetection: On
e) Clock Speed: Default
f) Protocol: SWD
g) Voltage: 3.3 V
6. Choose the bootloader HEX file as EZ-PD CCGx Power SDK\CCGx\Firmware\binaries\CYPD3171-24LQXQ_cla\CYPD3171 24LQXQ_cc_sink_boot_3_1_1_1458_0_0_0_pb.hex
7. Program the device. After successful flashing, disconnect MiniProg3.
8. Use jumper J6 on main board to short 1-2 (VDDD – VDDD CCG3PA) and load jumpers J5 and J7 on main board.
9. Power the board from DC input and connect the power board to the PC using a micro-B cable. The EZ-PD Configuration Utility should now be able to establish PD contract and identify the CYPD3171 UFP.
Question: What are the specifications of batteries that can be used with CY4532?
Answer: CY4532 supports 1-cell and 2-cell standard quality Lithium-ion batteries for power bank applications. R14 and R23 must be accordingly loaded on the power board. Table 2 shows the specifications of a battery to be used with CY4532. You can exceed the listed specifications if the application demands so, but you should ensure that appropriate changes in PB firmware are made to prevent false triggering of protection events.
Table 2: Li-ion Battery Specifications for CY4532 PB Application
Question: In a PB application, the Type-C device is charging the battery instead of battery discharging into the Type-C device.
Answer: This may happen because of the following reasons:
1, The battery is almost empty and has insufficient charge to power the EVK and device.
3. Even though the battery is full, it was connected after the Type-C device (like a notebook) was plugged to the Type-C port of the EVK. This causes the CCG3PA device to go into sink role; the device then establishes a PD contract with the Type-C device to draw power. To avoid this, in the PB application, always connect the battery first before connecting any Type-C DRP devices.
Question: How do I add VCONN support to the EVK?
Answer: CY4532 Kit can be modified to support VCONN operation for Power Adapter (PA) application.
The following items are required to perform VCONN operation on the CY4532 kit:
1. Complete firmware CYPD3171-24LQXQ_cla from EZ-PD CCGx Power SDK.
2. PSoC Creator™ 4.2 version - www.cypress.com.
3. 24 V / 5 A power supply if the application requires 100 W output.
Follow these instructions to enable VCONN operation on the CY4532 kit:
1. Update the hardware for VCONN operation:
a. Remove the power supply or the battery connected to CY4532 EVK.
b. Detach the CY4532 Main Board from the CY4532 Power Board.
Note: To remove the CY4532 Main Board, hold it around the longer edges of the board and lift it up.
c. Move the VCONN selection jumpers J6 (position 2-3) and J7 (position 2-3)
d. De-populate the 0-Ω resistor located at R5 and populate the same at R1.
e. De-populate the 0-Ω resistor located at R42 and populate the same at R54.
Note: If a new resistor is populated at R23, make sure that it meets the following specification: 0.0-Ω, 0603 Package, 22.4 A current rating. Figure 1 shows the key hardware areas that need to be modified.
f. Mount the CY4532 Main Board on the CY4532 Power Board.
Figure 1. Hardware Configuration for VCONN Operation
The hardware is now ready for VCONN operation.
Note: To switch from PA - VCONN configuration to PA - Normal configuration (factory default state):
- De-populate the resistor from R54 to populate the same at R42.
- De-populate the resistor from R5 to populate the same at R1.
- Restore Jumpers J6 (position 1-2) and J7 (position 1-2).
2. Update Firmware for VCONN operation
i. Using PSoC Creator, open the Power SDK project CYPD3171-24LQXQ_cla.cywrk
ii. Open the file stack_params.h and edit the macro
#define VCONN_SUPPORT_ENABLE (1u)
as shown in figure 2.
Figure 2. Editing Macro to Enable VCONN
iii. Open the file TopDesign.cysch.
iv. Go to the General tab. Right-click the pin VCONN_CC1 and select Enable. Repeat for the pin VCONN_CC2, as shown in Figure 3.
Figure 3. Enabling VCONN Pins in Firmware
v. Open the file TopDesign.cysch.
vi. Go to the TypeA tab.
vii. Right-click the pin Buck_Boost_EN_A and select Disable. Repeat for the pin Type_VBUS_A_EN, as shown in Figure 4.
Figure 4. Disable Pins for Type-A
viii. Open Design Wide Resources CYPD3171-24LQXQ_cla.cydwr > Pins.
ix. Assign VCONN_CC1 to Port P0. Assign VCONN_CC2 to Port P0, as shown in Figure 5.
Figure 5. Assign VCONN Pins
x. Build the project to generate the new hex file.
xi. Program CCG3PA using MiniProg3 on J1 of the mainboard.
Connect 24 V power supply on J2 screw terminals of the Power Board and slide the switch to DC input side.
Note: You must use an external supply instead of the DC jack ( J1) and connect it to J2 terminals else VCONN operation will not happen.