PSoC™ 5, 3 & 1 Forum Discussions
Hello! 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 LessAt all users of Mecrisp-Stellaris FORTH Version 2.4.1,
unfortunately in version 2.4.1 for the Eva-Kit-050 lacks the following hint in README:
7. /! \ In the menu bar of the PSoC Creator switch from Debug to Release /! \
For an error-free translation, it is necessary to select RELEASE in the menu line. Debug is currently not supported.
Show Less
Hi @LL,
I am pleased to announce that from now the free FORTH Mecrisp-Stellaris in the latest version 2.4.2 for the Eva-Kit-059 with the PSoC cy8c5888lit is available for download.
See: https://sourceforge.net/projects/mecrisp/files/ >>> mecrisp-stellaris-2.4.2 for cy8c5888lti.zip
So currently supported two Eva-Kids: -059 and -050.
See also: https://sourceforge.net/projects/mecrisp/files/ >>> mecrisp-stellaris-2.4.2 for cy8c5868axi.zip
Another porting for the Eva-Kit-049-4xxx is for now in progress. The porting for the PSoC 6 is also planned. With this FORTH-pagage it is possible to test all C-applications interactively without debugger. The Kernel have integrated an interpreter and compiler. The Compiler is extendabel in FORTH itself.
If you would like to know more about FORTH, you will find the classic Starting-FORTH and Thinking-FORTH by Leo Brodie:
http://thinking-forth.sourceforge.net/
The Definition of ANS FORTH you can find here: http://lars.nocrew.org/dpans/dpans.htm
If you want to know more about Mecrisp-Stellaris you are right here:
https://www.forth-ev.de/filemgmt_data/files/4d2015-arm.pdf (sorry, unfortunately only in German)
Show Lesshello I am trying to meassure voltage across potentiometer how ever i get the wrong voltage (and get even negetiv Voltage ) that displayes on the LCD , here is the code and top design :
any ideas why am i getting the wrong voltage ?
Show LessHi, i'm a student who is taking a course of control devices. I recently acquired a PSoC 1 Evaluation Kit with the CY8C29466 as the main uC for this reason. I have a problem with my evaluation kit and i can´t found a specific reason:
Doing a laboratory practice, i was assigned to do an 555 piano circuit, normaly this don´t make use of the PSoC but the objetive is to put wires between the resistances and the pins of the Port1 of the IC, at the same time, 8 buttons are connected to port 1 using Pull Down settings (Modifying the Data Mode registers in the main code) , the port 0 is setting to Hi-z, until one of the buttons of P0 are pressed thus gives that one of the ports of the P1 is adjusted to Strong and Vcc (Using Data Mode and Data registers), if no button is pressed, all port 0 is Hi-z. The change to Strong and Vcc occurs only for one button pressed at the time.
I wrote the code taking note of the requirements both in C and Assembler, but i have a problem with the program part to the uC. First, i connected the 555 circuit to the pins of the evaluation board, disconnecting the JP1 to JP3 jumpers, the buttons with common Vcc, and the positive pins of the circuit to Vcc of the board with the ground of the circuit and board to the ground of the eval board, meaning, i plug my circuit to the evaluation board, finally, the buttons to P0 and resistances to P1 with the common of these to pin 7 of the 555 IC. I build the project in C first, open the program window and try to load but the problems appear: The board starts to blinking the LED power indicator and the red LED of the MiniProg with the windows saying BUSY|POWERED|CONNECTED, late, i give a communication error. Then i try to load the Assembler code into the board keeping the 555 circuit connected and this time i give a PASS in the Designer, i turn on the board and try by pressing the buttons but only 1 or 2 buttons give a speaker sound and the other nothing, as precaution i connected the P1 jumpers to the LED1 to LED4 and these light up, but if I return them to piano, nothing happens like if are 0V.
I send the code to a college partner to testing and he gets success in load the C code and sound for all the buttons for the circuit. Also i try to change resistors, debbuging the code, rearmed the circuit but, for my Evaluation Kit with the CY8C29466 installed from the beggining the practice is a failure.
What could have happened? It's a factory defect or something? I discard short circuits from innapropiate connections since i loaded a program for the LCD and connected the outputs to LEDs of the evaluations board also with the test of inputs with external buttons and everything worked. If i plug a power supply to the 555 circuit directly without uC works perfectly, but if i took power from the evaluation board without using the GPIO pins, no sound at all, ony static from a reused speaker, then if i connected as described before nothing changes.
Thank you for viewing
Greetings
Show Less