PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi to all,
after reading forum and examples and after a couple of problems regarding USB drivers, now I am able to use USBUART (CDC) interface with PSoC5LP!
It remains only a problem: manage the connection/disconnection of the USB cable.
I read KBA210620:
This document suggest to monitor the VBUS line to detect the disconnection event.
But, in my current design, I cannot monitor the VBUS line (SELF POWERED - NO VBUS).
I did a bit of experiments but I was not lucky.
There is someone that knows a solution to detect USB disconnection (USBUART - CDC) without monitoring the VBUS line?
Thank you in advance to all 😉
PS: UBUART component datasheet v.3.20 does not define USBUART_GetConfiguration() API
Show LessI am making an project where I would implement a start button.
My plan was to initialize everything and the enter a while loop waiting until the button was press with code like this:
bool START=false;
main()
{
Init all
while(!START)
{ }
Program
}
And then having a interrupt changing START=true;
The problem is I can see the interrupt routine is called, but the program doesn't leave the while loop.
I have tried to turn on a LED in the interrupt routine and the read the output pin afterward but that doesn't work either.
I have isolated the problem to this archive, where i have placed an LED in port 1[7] to GND and uses Port 15[5] as button by pulling it low.
pressing the button should turn on the LED.
Any working solution for a button will be appriciated, but a fix or reason to the problem would be nice too
Show LessHello!
I have an application that is taking timing info from a UART and updating the frequency and duty cycle using a PWM block. I want to be able to MUX a signal to output pins. Ideally, I'd like to scale it so that I can vary the number of channels I'm MUXing it to (either in software or hardware) so I could have a desired number of outputs (ie 3, 7, 13, etc rather than just 2, 4, 8, or 16) but this is less important.
I was wondering what the best approach would be? I thought about using the interrupt on the PWM to create a signal that toggles everytime the PWM toggles (using the interrupt on terminal counter, I think it was) and use that as a clock for a counter (though the counters are only 4 bit, so if I wanted to use a desired number of outputs, such as 7, I assume I'd have to have some sort of software comparison to the MUX signals to reset the counter if the count is over 7 or something to that effect?
The other possibility, I guess, is to create my own UDB block that's custom for my application but I'm not sure if I'd be able to vary the number of outputs at that point.
Anyway, if anyone has any suggestions as to the best way to approach this application (or a way, or feedback on my previous thought process), I'd appreciate it. Thanks!
Show Lesshello I want to use the UART ,how ever i saw this video
as you can see he used UART(scb) how ever in my PSoc Creator ver 4.1 when i search for the UART(scb) I cant use this block becouse it is incompatible . maeby becouse the verson of the UART(scb) it self is old verson . Is there a new verson of this block ? or maeby other solution ?
Show LessI have to switch to Cypress microcontrollers, but I do not know which one to direct me to.
I would need a microcontroller with 2 QEI, 4 SPI, 3 UART, 1 PWM and other meters.
I have to check a brushless motor, read one or two optical lines and read 3 adc.
which microcontroller can you recommend me?
best regards
Renato
Dear all,
I have a issue with spi bus between two PSOC5LP (cyc85888lti-lp097 and cy85c868axi-lp035).
I would like to send 20 byte of command from master spi and read it in slave one and respond based of command.
Seems slave not responds and its second week trying to solve it.
On attached file you will see psoc project for master and slave spi.
Thanks in advance for your advice!
Show LessHello everyone,
I am a student, and this is my second attempt to trying to find out how I can code for my PSoC5LP Dev Board on Linux.
(if it is of any relevance: Debian, 32bit, i686, refurbished hardware - not everyone buys a Windows10-Touch-Thingy every second year)
Unfortunately (with my current limited knowledge), there seems no way to do that 😞
* PSoC Creator was started using M$ .NET, which may quickly look fancy in the first place, but is apparently a dead end when it comes to portability.
* Other Cypress software is also purely Windows
* the old m8cutils project seems to be discontinued
* there may be a way to use e.g. OpenOCD to program the board using SWR or JTAG, and to compile with gcc, but as far as I can see, there is no hope to write anything sensible without some support from a standard library. And I don't see one. If there is, please point me to an example, since I was not able to find one.
* It is said to be possible to run the Creator software via VMware or thelike - but this forces me to support their (M$) doing by buying an expensive license (which I will never do), and secondly I go crazy using this unusable windows surface after a few minutes...
i) Am I wrong/missing something?
Some months ago, iym mentioned in Creator for Mac that there would be "new tools" supporting "Mac OS and other OS's" in 2018.
ii) Have I missed anything so far?
iii) What exactly is planned - and is it planned for linux, indeed? (I'd like to know if it is worth coming back then...)
many thanks for any reply
Stefan
PS: In the meantime, I'll practise with a nicely working cross-platform stm32 toolstack.
Show LessHi all,
I am using CY8CKIT-001 for programming a PSoC5 LP device. Everything was working fine. But suddenly the PSoC creator software is unable to acquire the device. the error message I am getting is ... "Warning: dbg.M0039: There was an error running port acquire: Can not acquire SWD device!" . one more observation on the Main board of the CY8CKIT is that the LED near to the 12 V power supply connector keeps blinking every one second. This blinking is reflected on all PSoC pins. Please explain this problem and provide a solution to trouble shoot it.
Show LessI need a voltage 3.5V from cy8c3866.I use DA generated 3.5V, and with a follower to output the voltage. Output voltage is 3.5V when no any load,and voltage will down to 2.7V when drive a resistance 1.8K. The problem is, why follower cann't drive a 1.8K resistance?How much the max current and internal resistance of follower? Thank you.
Show Less