PSoC™ 5, 3 & 1 Forum Discussions
Hello,
I am trying to send a 5 KB packet from my linux PC to the PSoC using USB Bulk transfer. As far as I understand the Bulk Transfer can only support transfer of 64 bytes at a time. I am using the USB_Bulk_Wraparound example code to receive the data (ignoring the loop back by writing into IN Endpoint). I observe that I can only receive 64 bytes at time, no matter how much the Host is sending in one shot. I have configured the Endpoints buffer management in DMA with Automatic Buffer Management. I am using PSoC Creator 4.1. Any help would be greatly appreciated.
Thanks,
Anand.
Show LessHello everyone, I am looking for your help in solving the following case:
I need to sample in parallel two sine signals.
For this, I have two ADCs (SAR) in PSoC5LP working at 1 Msps, as shown in the figure below. Each of the bypass capacitors have been connected to the PSoC5 pins and the configure system clock meets the requirements for the mentioned sampling frequency.
Each "eoc" output of these ADCs is connected to a separate DMA channel which stores the respective ADC data (ch1 and ch2).
Activation of the DMA channels and the start of conversion of the ADCs are carried out with the firmware using the following APIs:
CyDmaChEnable(DMA_Ch1_Chan, 1);
CyDmaChEnable(DMA_Ch2_Chan, 1);
ADC_Ch1_StartConvert();
ADC_Ch2_StartConvert();
Then, if I use the same input sine signal for the two ADCs (Pin_Ch1 and Pin_Ch2) and assuming that the acquisition happens in parallel, the graphs of the results should overlap.
However, it is obvious that there is a delay, but I have not managed to be "constant" and therefore the results are random. That is, sometimes the results overlap and in other cases the data have delays.
So how can I achieve my parallel acquisition requirement or with a constant delay?
What are your tips?
regards
JJ
Show Lessplease give the details on power supply jumper settings j10,j11 while programming through miniprog3
I am trying to program PSoC5 CY8C5566AXI-061 on a custom made PCB using 5pin connector, with miniprog3 (active protocol: SWD). The CY8C5566AXI-061 is detected correctly in PSoC Creator. In PSoC programmer it's detected as CY8C5586AXI-061.
The board is powered from external source.
Anyways, when I try to program it from PSoC Creator i get the error (same happens from PSoC Programmer):
Error: dbg.M0023: There was an error while programming the device: PSoC Programmer reported error (100 - FAILED! SWD respond packet contains Failed status!)
(I tried to lower the clock speed but nothing changed)
The settings from PSoC Creator are:
Active Protocol: SWD
Clock speed: 1.6MHz
Power: External
Acquire mode:
Reset Connector: 5pin
The settings from PSoC Programmer are:
Programmer: MiniProg3
Programming mode: Reset
Auto detection: OFF
Protocol: SWD
Voltage: 5V Connector: 5p
Clock Speed: 1.5MHz
Device: CY8C5566AXI-061
The pin connectios from MiniProg3 to PSOC5 (on the custom made PCB) are:
VTARG - VDDDIO1
GND - GND
XRES - XRES (on pin 15)
SCLK - P1[1] (on pin 21)
SDAT - P1[0] (on pin 20)
VDDIO0, VDDIO1, VDDIO2, VDDIO3, VTARG, VDDD, VDDA are all conected together to 5V.
VSSD, VSSA are connected together to ground.
The two VCCD pins are connected together with 1uF capacitor.
VCCA is connected with 1uF capacitor to ground.
I made the PCB again (now the external supply is 3.3V) and I get the same error. I am struggling with this issue since about 1 week
Show Less使用UART Bootloader 在线下载程序,经常出现如附件所示的错误信息,有时候又能正常下载,请问这是什么原因造成的?另外那两个错误代码表示何意?
Hi,
I've two data values which should control the frequency and the amplitude of a waveform output by DAC. Changing the frequency is already implemented. What's the best way to achieve this? Implementing a IDAC and control the value with a PWM as suggested in AN60305 to get a multiplying DAC would be one way. This solution seems to require a low-pass filter, but there's no starting point to calculate the LPF component values.
Are there any other ways to change the amplitude (aside of multiplying the values in software and using the upper bits of the result)?
Regards,
Ralf
Show LessHI,
I just installed the CY8CKIT-002 for the purpose of programming a CY8C24123. I don't see the CY8C2 device family in drop down option list. Is there a separate download to add this family? If not, how do I do it?
Thanks
Show LessI have changed the target device for the project from the original CY8C3866 to Cy8c5888, for both the bootloader project and the bootloadable1 project.
However, when i build the two projects, I get the following error
"pft.M0076: The selected device for the Bootloader and Bootloadable projects must match, but don't. Bootloader is targeting 'CY8C866.. and Bootloadable is targeting 'Cy8C5888..."
Where else is the bootloader target set?
Thanks.
Giri
Show LessI have encountered an issue where the value from the precious channel affects the next value in the Sequencing SAR ADC. It appears that the settling time after the mux has changed the input, has a longer settling time than the time before the next ADC sample.
My settings: The clock range is set to be between 1-18MHz and the issue exists over the entire range but is lager closer to 18MHz. I'm using external Vref (2.5V reference voltage), "0.0 to 2.048 (Single Ended) 0 to Vref*2", internal clk, hardware trigger (from pwm).
How to replicate: add a SAR seq object, connect some channels (IOs) and set the voltage to high, low low low (from the bottom). Check the result. I get some thing like 1000-60-4-0 (should be 1000 - 0 - 0 -0) about 6% of the previous value is added to the next.
Also, I read that the Vrefhi-out is the ground reference and when looking at the Analog routing it looks like it is going from the SAR into the SAR. Not much in the documentation regarding this critical signal. I assume one would like to connect it to AGND. It can be done in the analog routing, but I assume there is an API for this. I can't be the only one wanting to ground the negative input to the ADC.
/Jacob
Show LessI was trying to hook up a cy8ckit-059 to a mpu6050 and stumbled upon an example a user posted here:
I modified it to fit the psoc5 and changed the order of functions for initialization.
I stepped through the program and narrowed the problem down to the following two lines:
I2C_MPU6050_MasterSendStart(devAddr, I2C_MPU6050_WRITE_XFER_MODE);
I2C_MPU6050_MasterWriteByte(regAddr);
The start is sent without error however the second function call fails with I2C_MSTR_NOT_READY.
Any ideas what could be going wrong? I have attached my project below
Show Less