USB EZ-PD™ Type-C Forum Discussions
Hello,
I have an Led that controls brightness through PWM, and a button that controls PWM working, but the PWM only works at begining.
#define LED_BLINK_TIMER_ID (0xC6)
#define LED_BLINK_PERIOD (5000)
#define LED_W_ON() \
do { \
PWM_1_Stop(); \
PWM_1_WritePeriod(5000); \
PWM_1_WriteCompare(1000); \
PWM_1_WriteCounter(0); \
PWM_1_Enable(); \
}while(0)
#define LED_W_OFF() \
do { \
PWM_1_Stop(); \
}while(0)
void led_module_init(void)
{
PWM_1_Start();
PWM_1_Stop();
}
static void led_blink_handle(uint8_t port, timer_id_t id)
{
(void)port;
(void)id;
timer_stop(0, LED_BLINK_TIMER_ID);
LED_W_OFF();
}
void btn_press_detect(void)
{
if (btn_get_press_short())
{
LED_W_ON();
timer_start(0, LED_BLINK_TIMER_ID, LED_BLINK_PERIOD, led_blink_handle);
}
}
void app_main_loop(void)
{
btn_press_detect();
//CyDelay(50);
}
When I first press the button, the led blinks for about 3 seconds and then goes off. When I press the button again, the led goes off, If I add CyDelay(50) to the app_main_loop function, it will always work.
Please help to see what is going on. In addition, serial port, I2C and other GPIO resources are used in the project. Looking forward to your reply!
Show LessHello,
I have never used PSoC Creator. I need to slightly modify the project CYPD3125-40LQXI_notebook because the multiplexer from Parade Technologies that is used on the CCG3 evaluation kit is not recommended for new design so I have used the latest one from Parade Technologies but the address map is not the same.
What is the best way to proceed? Is it to copy the project CYPD3125-40LQXI_notebooke in my work directory?
I would like to keep only the main project in my workspace. What is the best way to delete all the unused files from my work directory?
Thank you
Best Regards,
Patrice
Show LessI have the CCG2 Notebook SDK I'm trying to build.
However it says it cannot find the ARM MDK toolchain.
I installed ARM MDK5.37 from https://www2.keil.com/mdk5
from the website but I'm still getting a build error cannot find armcc.exe when I point it to KEil_5. Is there some other Keil ARM files I need to install? Maybe I need a different version that's not MDK5.37?
Hello,
I have a question regarding CCG2 APIs.
I am currently using the SDK version 3.0.2, April 10, 2017.
The stack version for CCG2 is 2.3.1 Build 306.
The stack version for CCG3 device is 3.0.2 Build 905.
EZ PD part numbers are as below.
- CCG2: CYPD2122-24LQXI
- CCG3: CYPD3125-40LQXI
There is an API to change source capability mask for CCG3.
-------------------------------------------------------------------------------------------------------------------------------
ccg_status_t dpm_update_src_cap(uint8_t port, uint8_t count, pd_do_t* pdo)
-------------------------------------------------------------------------------------------------------------------------------
Here is the comment about this API.
-------------------------------------------------------------------------------------------------------------------------------
@brief This function updates the source PDOs at runtime thereby overriding the source PDOs in the config table.
@param port Port index.
@param count Count of PDOs.
@param pdo Pointer to the PDO array.
@return CCG_STAT_SUCCESS if operation is successful, CCG_STAT_BAD_PARAM otherwise.
-------------------------------------------------------------------------------------------------------------------------------
I am looking for an equivalent API to it for CCG2 devices.
It seems that there is no information about it in the API guide.
Could anyone please let me know APIs to change source capability mask at runtime for CCG2 devices?
If there is no API to do that, could you please let me know the way to produce the same result?
Thank you.
I connected CY7111 CC pin to my USB-C board, modified USBPD_SINK example and managed to get Source (PC) to enter DP-ALT mode, but I could not find where to send ATTENTION REQ VDM from SINK, could anyone give some suggestions?
Thank you.
Show LessI am working on Intel TGL motherboard and Intel have explicitly said we should use the cypress PD controller
Has anyone else used this part with TGL?
can it be used for a signal port controller ? I can only find the dual port controller (in stock)
Has anyone used this part without the Intel the BB-ReTimer ?
I only what USB3 and Alternative mode and do not need the USB4/THT support from this part.
I find this all a bit of a mine field as there are so many variants (CCG1,2,3,4,5,6) and which one will Intel support ?
I have reference deigns for CCG5,6 only but the CCG6 is not available leaving only the CCG5 part I can procure
Thanks Martyn
I am looking forward to some feedback from someone who knows a more about this complicated USB-C port
Show LessHello
I am downloading FW of CYPD2301 using CY4532 and EZ-PD Configuration Utility.
I can't use batch programming with the CY4532, is there a replacement?
CY4501 is discontinued and cannot be purchased.
Also, is it possible to repeat "read from device" through batch programming?
For example, it is a repetitive task that only changes cables with one click, such as batch programming.
Hi,
I am using the CYPD3121 for PD negotiation. The firmware it is running is the CYPD3120 example project, modified for the 3121. Link to original thread here.
When I flash my own configuration and restart the device, it negotiates PD correctly, however cannot be programmed anymore over differential lines. I am attaching the configuration I am using.
What parameters need to be changed to allow programming over the differential lines?
I should mention that I am not all familiar in depth with USB-C or this chip, so if someone could provide me with a finished configuration, that would be great. The CYPD3121 ONLY needs to negotiate sinking PD. I can set up the PDOs by myself.
Thank you for your help!
Show LessDear Sir
I have a CY4532 development board in my hand. Due to the previous verification problem, after burning another program, I cannot use the PB demo burning method in the CY4532 Kit Guide.pdf document to burn the CYPD3171-24LQXQ_pb_3_1_2_1511_0_0_0_pb.cyacd firmware ( Now you can only use the swd method to directly burn the firmware to the main board). Could not establish PD contract is always prompted in EZ-PD configuration Untility. Please help me analyze the problem.
Sincerely,
arthur
Show Less[my environment]
BOARD : CY4532 EZ-PD CCG3PA EVK POWER BOARD
Cable : CYPD2103
OS : Windows 10
My purpose is develop program like EZ-PD Configuration Utility for our factory. (more automatic firmware download program)
but I can't find EZ-PD API for C++.
help please. thank you!
Show Less