PSoC™ 4 Forum Discussions
Hi guys.
Hey Guys I'm coming from a basic arduino Uno and was wondering how I would be able to get a analog input and display it using a Serial output (already know how to get that to work). Right now the issue is that I have a basic moisture sensor (YWROBOT moisture sensor) and any attempts are worthless on my part
Show LessHi,
If all others fails => read the Datasheet carefully.
The SW_Tx_UART supports PSoC 3, PSoC 4 and PSoC 5LP.
Small notice on the page 7 of the SW_Tx_UART Version 1.10 Datasheet
.... is IMPORTANT ....
"Software Transmit UART component requires to have Instruction Cache to be enabled for PSoC 3 and PSoC 5LP. This could be done in PSoC Creator project Design-Wide Resources editor on the System tab. By default, this option is enabled".
If the Instruction Cache is disabled the SW_Tx_UART works but erroneously.
Behaviour - using 115200 Baudrate and 24MHz BusClock same number of characters transmitted, but all characters NONREPRODUCIBLE - RANDOMLY substituted.
NO WARNING in PSoC Creator 3.0 compilation/linking, NO USABLE INFORMATION from the logic analyzer.
May be this helps.
Regards,
Viktor
I complained to Cypress about the high shipping price for CY8CKIT-049-4xxx and they reduced it to 15$
So not only these boards are now available, but shipping is much more ressonable as well.
Go buy some, I'll get 5 myself 🙂
Show LessHi All,
Please let me know how to locate and edit the boot.tpl/boot.asm file for PSoC 4.
I am a novice in this field, so thanks for your help!!
BR,
ksnf3000
Show LessOkay so I have an extremely simple program, all it does it shoot an array of chars out of the UART. Before it starts communicating it sends a digital line high, then once it's done it makes it low again.
The project is attached but here it is for anyone who wants a quick scan.
It is straight forwards enough, as far as I can tell, there is no way that the line can go to zero until the UART has finished sending every one of its bytes. However the reality is much different.
If you look the green channel is the UART TX line and the yellow line is the lineDriver. If you notice the line goes high just before transmitting as you could expect, however it then goes immediately low before all the chars have finished sending.
I think that the UART is operating asynchronously from the C code, it is just taking the inputs from the for loop and then sending them at a later timer. Does anyone know how to force it to run synchronously? maybe there is a status bit I can check for?
I have got problems when I tried to use the outputs of a TCPWM configured as Timer. Measurements revieled that the pulse at the ov-output is just ~45ns wide which is far too small to use it as a trigger for a PWM (UDB-version). It seems that the module internally uses the HFCLK to generate its outputs.
Is there a trick to lengthen the pulse width without using more internal resources?
Project attached
Bob
Show LessHi, I am new to this development kit and I just want to start a simple project.
However I have some questions.
I just want to make a simple try with digital input and digitat output.
In the .cysch file I named 2 switches as input (Pin1,Pin2 ) and 4 LEDs as output (Po1, Po2, Po3, Po4)
I want to program that if different pattern of 2 switches are pressed, different pattern of LEDs light on.
I have set the input pins to P1[4]/P1[5], and output pins to P1[0]/P1[1]/P1[2]/P1[3] in the .cydwr file
However I don't know how to start on the .c file. I know I need to type in my "if" case but
how should I define the pins?
e.g. If p1[4] is off and p1[5] is on, P1[0]/P1[1]P1[2]/P1[3] should be off/off/off/on
Show LessIs there a straight-forward way to power the Pioneer from a 3.6V power supply? I have tried multiple methods of doing so without much success... Applying 3.6V to Vin seems to do nothing. Applying it through the USB port does not provide enough power and so one of the lights dimly lights up, but doesn't do much else. It seems applying 3.3V-3.4V through the 3.3V EXT works, but the onboard protection circuitry shuts off the board when I get to about 3.47V (tested using a bench power supply).
Is there a straight-forward method of powering this board with 3.6V without needing to result to external regulation circuitry?
Show Less