PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello, I'm looking for an SPI example for the PSoc 5 CY8C5888LTQ. I have found some example but they are for the CE95377 and the schematic page has a bunch of errors. If anyone has an example to share I would greatly appreciate it.
Thanks,
Joe
Show LessHi,
I'm looking for the solution of the following problem using Digital Filter Block in PSoC5:
Input: Data block (72bit = 3 x 24bit) consist of 3 channels (24bit)
Function: 3 channels data processing using DFB
- Data blocks coming from the PSoC as stream with the 10kHz frequency
- For N data blocks the average value of each channel should be calculated
Output: After N data blocks processing in DFB, average values for all 3 channels should be generated (3 x 32bit).
In the attachment problem is graphically described. I would be very thankful if someone could help me with the assembler code or useful examples.
Best regards,
Matej
Show LessHello,
I have two circuit boards. One contains a PSOC4 CY8C4245PVI-482. The other contains a CY8C5868AXI-LP035 PSOC5.
The PSOC4 board monitors 12 analog sensors with the SAR. The results are converted into floating point voltage values. I have this part is working. Also, I am using a union to represent the 4 byte float as a uint8 array with 4 locations, so getting the bytes for transmission is no problem.
I need to transmit the bytes from the PSOC4 to the PSOC5 for further processing. I have the infrastructure setup in my system to use I2C for this purpose, as I am using other I2C devices.
The master is on the PSOC5 board. The slave is the PSOC4 (address 0x0A). So far, I can talk I2C from the PSOC5 board to the PSOC4 board but am having trouble having the slave talk back to the master. I have a suspicion I am not utilizing the I2C object in the most optimal way, as I have not used I2C on a PSOC yet. I have the I2C code posted for both the master and the slave.
Can anyone offer any suggestions to most effectively write the bytes back to the master? I have the project for the PSOC4 attached. The master code is too involved to post here, so I attached only the I2C header and code files.
Show LessHey guys.
I'm fairly new to PSoC development. Just got a CY8CKIT-050 5LP Development Kit recently. I've been trying to control the brightness of an LED using the Capsense slider. I used the "CapSense CSD Design" code example to get started, and made some changes to include an output pin at P3[7] (connected to an external LED) , and a VDAC to convert the capsense position value to analog for the pin. I got the LED to turn on/off using the capsense buttons without using the VDAC. I was wondering if anyone could guide me on controlling the brightness of the led with the slider.
I've added some screenshots of my project.
Thank you.
Show LessHello! We are trying to set up a USB general data transfer interface (AN82072) on a PSoC 5LP (CY8C588LTI-LP097) using a Windows 7 Enterprise PC (64 bit). Because AN82072 was not designed for this kit, we updated the components and commented out the sections of main.c involving the LCD. We were able to program the PSoC without any errors using the prog kit, but when we plugged the PSoC into the PC using the microUSB, the PSoC was not detected by the PC (did not show up in the Device Manager). We have downloaded the CyUSB SDK and appear to have a full complement of USB drivers. As a control, we were able to successfully run the USB HID Basics with PSoC 3 and PSoC 5LP project (AN57473). We have attached our project archive for our modified AN82072. Does anyone have suggestions for what to try next? Thank you!!
Show LessHi there,
I have a device based around a CY8C5667LTI-LP009 whose firmware includes a bootloader and my custom application code/firmware (loaded onto it using the cybootloaderhost via USB).
Id like to be able to take a "dump" of the PSOC's firmware (bootloader and app code combined) so I can send it to a fab house I'm working with who will then flash my next batch of PSOC's before shipping, saving me hours of work!
Is it possible to export a hex file that contains the flash contents of a PSOC? And if so can that be flashed onto a clean PSOC that will mimic the functionality of the original?
I have used the "Read" function of PSOC Programmer 3.23.1 but not sure if the output produced is what I'm looking for.
Many thanks!
Charlie
Show LessHello everyone,
I started this discussion because I have a question regarding the timings between:
- ADC to memory, using DMA;
- PSoC to computer using USBFS.
The way I want to approach this is: (using 100 2-bytes samples as an example)
1 - ADC sample to memory1, using DMA
2 - Copy those samples from memory1 to memory2
3 - ADC sample to memory1, using DMA & USBFS transfers from memory2 to PC
4 - repeat step 2 to 4 until desired number of samples is acquired.
Is this possible with the PSoC?
I'm struggling with:
- is the process of copying memory1 to memory2 fast enough that I don't loose data?
- how can I pause the DMA for the copy from memory1 to memory2 to happen?
Thank you for your help
Show LessHi,
Recently i try to make a program to control a servomotor by giving an angle between 0° and 90°, i made the program with the main code in C where the microcontroller reads the caracter given by a matrix keyboard using pins interruptions (An assembler code which gives the equivalent character of the keyboard to A), rests '0' to convert the ASCII caracter into numbers ('0' now is 0 for example) and make a new number by multiplying by 10 the tens and adds the unit (i.e. '9''0' in LCD converts to 9*10+0 = 90).
The program works well, but i need to rewritte the program in assembler. No problem, the PWM interrups are in ASM, the GPIO interrups also, but the main.c where i multiply is in C because of the multiplications.
I know about the MAC aviable for the PSoC 1 but investigating i found a document from Cypress called "Arithmetic Libraries User Guide" where describes a subroutine that multiplies 2 8-bit numbers (just what i need because i don't use signed ints and the result is 8-bit also) but says i need to write the following line include "arith.inc", when i build the project says that inc file is not founded.
Where i can find that file? What i can do?
BTW, in the compiler i see suggestions like "MULX", "MULY", how i can use that to Multiply assuming that do this.
Greetings
Show Lesshello i want to measuure voltage across on potentiometer and get the voltage on the LCD screen,how ever I asked this question befoure and a user by the name EVEGENY helped me and gave me code that its eror is about 20mV and this is great . How ever his code works by doing samples and then making avrage of this samples and getting Vout of the potentiometer on the screen . In my project i want to get the same Accuracy but doing it REAL TIME is it posbbile ?
Show Less