46116 Discussions
22909 Members
26629 Solved
Hello!
I have the cy4531 ez-pd ccg3 evaluation kit.
I wanted to know if there is a possibility to use it to work in this way:
To type C I connect a tablet, and to type B I connect a mouse (for example), then when the power supply is connected, the tablet will charge, and when the power supply is disconnected - the mouse will get its power from the tablet battery?
Dear sir,
After power on,Why CyU3PGpifLoad failed?
Log is below
CyFx3UvcIoMatrixReInit:Cfg1 = 0x410, Cfg = 0x510
CyFx3UvcInitGpifSm: CyU3PPibInit Success
CyFx3UvcInitGpifSm: CyU3PGpifLoad failed, error code = 0x46
CyFx3UvcAppInit:Not Super speed enumeration with MUX_SEL low. Fllipping Mux to try again
FX3 UVC App init complete
CyFx3UvcAppUSBEventCB: Default USB evtype = 6
CyFx3UvcAppUSBEventCB: Detected HS USB Connection
Rcvd suspend evt
Hi Cypress,
I have consulted about EMCA source code before:
https://community.cypress.com/t5/USB-EZ-PD-Type-C/How-to-get-CYPD2103-source-code/m-p/262140#M4825
But I was told that the source code was not open by local(Chinese mainland) Distributors and Cypress Application Engineer.
Is it possible to obtain a CYPD2103 templates or demo code that has removed EMCA protocol stack?
Thanks,
Nathan
Show LessI found out some outlier values read from Quadrature Decoder module. Could you help us to solve this issue ?
I'd like to confirm the limitations of the Quadrature Decoder settings and I'd like to know other more convenient module to resolve this issue.
- Part number
PSoC5 (CY8C5888LTI-LP097)
- Usage of Quadrature Decoder
Counter of BLDC motor's encoder
- How to check
1. Drive motor at constant velocity (10000rpm, 2000pulse/rev -> 333kpulse/s)
2. Read counter value by using ENC_COUNTER_GetCounter(). This function called by Timer IRQ (generated by Counter module, 5kHz) *:ENC_COUNTER is the name of Quadrature Decoder
3. At constant velocity, counter value increased/decreased constantly. But sometimes, outlier value can be read. The value is 2^15 pulses higher than the value estimated by the velocity.
- Settings of Quadrature Decoder
CLOCK: 11.8MHz (BUS_CLK: 59MHz)
Counter size: 32bit
Counter resolution: 4x
User Index: Disable
Glitch filtering: Disable
I checked the auto-generated sources of PSoC Creator 4.3 and I found some part of "Quadrature Decoder" is implemented by the software. "ENC_COUNTER_count32SoftPart" is updated by "ENC_COUNTER_ISR ".
I think it may be better not to use "Quadrature Decoder" with 32bit because it is possible to prevent ENC_COUNTER_ISR by "CyIntDisable". ENC_COUNTER_count32SoftPart may not be updated by the latest real count.
Just I'd like to count the 2-phase pulses. How should I configurate it ? Do you have any other modules I can use ?
ENC_COUNTER.c
int32 ENC_COUNTER_GetCounter(void)
{
......
CyIntDisable(ENC_COUNTER_ISR_NUMBER);
tmpCnt = ENC_COUNTER_Cnt16_ReadCounter();
hwCount = (int16) ((int32) tmpCnt - (int32) ENC_COUNTER_COUNTER_INIT_VALUE);
count = ENC_COUNTER_count32SoftPart + hwCount;
CyIntEnable(ENC_COUNTER_ISR_NUMBER);
......
}
ENC_COUNTER_INT.c
CY_ISR( ENC_COUNTER_ISR )
{
......
if (0u != (ENC_COUNTER_swStatus & ENC_COUNTER_COUNTER_OVERFLOW))
{
ENC_COUNTER_count32SoftPart += (int32) ENC_COUNTER_COUNTER_MAX_VALUE;
}
else if (0u != (ENC_COUNTER_swStatus & ENC_COUNTER_COUNTER_UNDERFLOW))
{
ENC_COUNTER_count32SoftPart -= (int32) ENC_COUNTER_COUNTER_INIT_VALUE;
}
......
}
Dear community,
I'm trying to use a GPIO pin that was previously used as a PWM.
The problem is that when I re-configure it, it stay in 3-state mode instead of High level.
What I'm doing wrong?
In attached you can find the code, many thanks in advance.
Regards,
Corrado
Show Less
Hello,
I have been using the CYPD3177 IC on a product for the last 6 months or so, and was looking to add it to a new product. This is an active part but I see no supply for at least the next several months. What is happening and can I expect difficulty obtaining this part going forward? Is there a substitute option available?
Show LessHi,
I have a PSoC 6-BLE Pioneer Kit (CY8CKIT-062-BLE). I would like to display the status of PSoC6 with (TeraTerm) on the UART of the PC, but I would like to display it using the BluleTooth (BLE4.2) built into the PC instead of using the dongle. Is there any samplea close to this?
Especially for the development on the PC side, it would be helpful if you could give me advice on whether to take the same approach.
Thanks,
Kenshow
Hello,
I have created a trackpad using the PSoc 4 MCU that will be utilized as a BLE Mouse to control a cursor on a computer screen. I would also like to collect information on the position of the finger on the trackpad. Up until now, I have used the Launch tuner to log this position data, however, I would ideally like this to be done on a computer software. How can change the provided BLE HID Mouse code by Cypress to read information related to the position of the finger on the trackpad rather than the displacement?
Thank you,
Show LessHello
Is there any document that can be used as a reference for the external clock of PSoC6 and PSoC6 + BLE?
A document like this.
https://www.cypress.com/file/141216/download
Best Regards
Hayato
Show LessHello
I want to write the PSoC 6 HEX file created in the PSoC Creator project to another device.
I want to write the PSoC 6 HEX file created in the PSoC Creator project to another device.
Since PSoC 6 is dual core, HEX files are created in the M0 folder and the M4 folder respectively.
(A total of three HEX files have been created)
If I want to write with PSoC Programmer, should I write the HEX file in M4?
(Do I need both HEX files to write to PSoC6?)
Best Regards
Hayato
Show LessEsteemed Contributor II
Esteemed Contributor
Employee
Employee
Honored Contributor II
Honored Contributor
Honored Contributor
Employee