PSoC™ Creator & Designer Forum Discussions
I'm getting into embedded programming - my last experience was C/ASM about 20 years ago....
I am trying to use the SPI component to transmit some data. I looked at the example SPI_Master project, and a couple of things I don't understand...
One of the lines states
SPIS_WriteTxData(0x22u);
what does the 'u' signify at the end of the number? It was my understanding that writing 0xFF signifies a hex number. But I see tons of examples where people write hex just as "0xFF" without any suffix... so is the 'u' needed? What other suffixes are there besides the 'u'? How does one denote binary, hex, decimal, etc?
Also,
As I understand, there are C standard datatypes of char, int, long, double, float, etc. I used PSoC Designer in the past and used these data types. But in many examples, I see uint16, uint32, etc. What is the reason that Cypress has these other data types listed? Or are they something from Keil? Is there any advantage to using uint16 instead of just unsigned int?
Show LessI am building a project on psoc 5LP. By using easy to use cc2500 module I am able to receive the string I wanted to psoc and display it in the lcd screen. But I want to analyse the number and make the decisions accordingly. I am receiving it as character. How do I convert it to int and do mathematical operations on it? c syntaxes I use in seems to be not working with .For eg I want to access the MSB of the string I receive but string[0] is not letting me access it. It is showing error. How do I solve this problem? Where can I get a extensive list of basic functions and operations used in creator?
Show LessHi,
Since a week I have started to work with PSoc creater and I must say I like the concept. I didn’t take to long however to run into it’s limitations – the analog router. My goal is easy: 16 pins need to be connected to an analog multiplexer, easy. Also I want to be able to drive a logical 1 onto each and every one of these pins. This is where the trouble starts. The compiler does not allow this for the following reason:
The digital input of pin "Pin_16(0)" is occupied. This pin is connected to an AMuxHW component, which indicates its digital input is expected to be controlled by the only matching hardware control signal on the AMuxHW component.
I got a nice explanation with the error message to:
If a GPIO pin is connected to an AMuxHW component, its digital input is expected to be used by the matching digital control signal on the AMuxHW component. So this GPIO pin's digital input signal should be reserved for the matching digital control signal on AMuxHW component only.
I must say I find it nice that the compiler presumes to know what I want to do. My Goal is easy. Put a logical 1 on one of the pins and measure the voltage on the other pins. I know this should be possible for 2 reasons: A pic processor can do this, even the most stupid one, and the analog part of a pin should have nothing to do with the digital part. It is perfectly valid to write a digital 1 using the digital logic and read it out with the analog logic (which should be separate and apparently is) to check if there is no short circuit.
I tried 5 different approaches to do this, differential muxes,… most of the time I got routing problems. I somebody could explain me why I got this problem and how to tell the compiler to ignore this please do. If I need to write to the registers directly to circumvent the router, my pleasure.
Thank you for your help.
Show LessHi,
I'm trying to compile an open-source program that requires FX3 SDK v1.2.3. But, I couldn't find the download link for that particular version of FX3 SDK from cypress website (maybe, I didn't look for it in the right place). Does anyone know where I can download FX3_SDK_Windows_v1.2.3.exe? Thanks for your help!
Show LessHi,
I'm developing a firmware which should communicate with I2C or RS23 switching the two method runtime. I'm using The CY8C4245AXI-483 chip on which I'm using quite all the pins.
If I place two component EZI2C Slave and a UART (SCB mode) in the designer assigned to the same pins I get a conflict with pins assignment. My project uses all pins, so i can not use secondary i2c and rs232.
Actually I generate two diffrent firmware, One for I2C and the other for RS232, Enabling one component at time and using #ifdef to enable different code.
There is a way to have one firmware switching runtime the two component.
Following the version of creator I'm using
Environment:
PSoC Creator 3.1 SP1 (3.1.0.1722)
Culture: Italian (Italy)
OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
CLR Version: 2.0.50727.5485
Installed CyInstaller Products:
PSoC Programmer 3.22.2
PSoC Creator 3.1 SP1
Show LessSo this is new... I tried adding an include file at the top of a source file and I can type "#include" but typing anything after that will result in an assertion. Strangely enough I can paste the line in without any problems. I assume this is the clang.dll bug. I added some blank lines around the end of the file and it appears to be okay now.
-Ray
Show LessHi
Is PSoc 5 development kit (With creator 2 and Chip cy8c5568axi-060) compatible with Win 8 64 bit OS?
I installed the creator which came in disc with the kit. Although it is instaling , it is not detecting the PSoC 5 board attatched.
How can I fix the isssue using Win 8 itseld?
Show LessI can't believe PSoC creator 3.0 refuses to allow projects using PSoC 5.
I understand PSoC 5 has been deleted from the product catalog, and replaced with 5LP - but I still need to develop and maintain hundreds (possibly thousands) of users who have my boards with PSoC 5 on them. I make available regular software updates and almost all my users upgrade each time.
I understand not allowing new designs with PSoC 5, but surely we should be allowed to maintain existing projects with PSoC 5 - there can't be that much huge technical reason why the compiler can't support 5 any more.
Show LessI use about a dozen different development environments, and in pretty much all of them there is a way to output debug text and values to the IDE in a "console", "output", or "debug" tab ...
Ive' been looking everywhere in the PSoC Creator, and I can't find a way to do a "console.log" or output debug information into the IDE when running in debug.
I've read all sorts of people saying to "use a UART" or "use a serial cable" ... but really? There *HAS* to be some way to get deubg in the IDE ... isn't there?
Show Less