PSoC™ Creator & Designer Forum Discussions
text.format{('custom.tabs.no.results')}
Hi everybody,
I was wondering if it is possible to use same ressource - an analog input pin - which is connected on different input pins on Analog Mux component.
Use Case:
I would like to provide several channels for differential analog measurement which are currently muxed to ADC internally. Let's say U+ for positiv voltage and U- for negative voltage. As U- is mainly put on one voltage level(not GND/VSS) i'd like to route it externally on one pin end internally on the negative input for all differential inputs of Analog Mux then.
Having said that I simpy worked it out and got fhe following message:
mpr.M0099: The digital input of pin "XXX" is occupied. This pin is connected to an AMuxHW component, which indicates its digital input is expected to be controlled by the only matching hradware control signal on the AMuxHW component.
Can somebody explain me what I'm doing wrong please?
Thanks in advance!
Joe
Show LessHi All,
I am using Cypress PSoC 5LP for communicating with sensor over I2C Bus.
PSoC acts as master while sensor act as slave device.
PSoC sends read command to sensor. Sensor responds after 80ms with 3 Bytes reading.(Hold master SCK Line pull low)
I am getting the data properly without any error.
Stat = I2C_MasterReadBuf(DeviceAddress, pBuffer, NumBytes, I2C_MODE_COMPLETE_XFER);
if(Stat == I2C_MSTR_NO_ERROR)
{
while (0u == (I2C_MasterStatus() & I2C_MSTAT_RD_CMPLT))
{
/* Waits until master completes Read operation */
}
}
As per the code snippet master polls in while loop for almost 80ms till data comes.
How can I avoid this polling?
Is there is any other API which tells when data is available now read it?
Thanks & Regards,
Pratik Pawar
Show LessWhen using Find in the text editor, the autocompletion is totally broken. When I type a character, the text box is immediately changed to some autocompleted text, which is selected, so that when I type the next character, the same thing happens again. This makes it impossible to type any search string at all.
I tried turning off "Automatically populate Find What" under Tools -> Options -> Text Editor -> Find And Replace, but this doesn't seem to have any effect.
What gives?
Show LessHi,
I'm implementing two custom components, both based on SPI, one use the SPI ( UDB version ) and the other use the SPI on PSoC4 devices ( based on SCB block ), i'm adding some custom parameter types to one of them, it's a little time consuming so i would like to know if this custom parameters are saved as text on the cysym file, if so i could copy that text from one custom component to the other and save time.
Also other problem i had, when creating the schematic implementation there's no way to update the custom component symbol, you can only generate it again, so i lost all the work i did before. Maybe it would be useful to add the option to update the component symbol based on the changes on the implementation.
Hope there's a way to solve this issues.
Thanks in advance 🙂
Carlos
Show LessThis is more of a "fundamental C" question, where we are using the PSOC5LP to accomplish our task. Here goes:
Problem statement:
We have a "special.c" file in PSOC creator, that has some of our special proprietary algorithms. We know they work on our PSOC5 development board through testing and debugging. We want to allow our customer to use the algorithms, but we do NOT want them to "see" the algorithms (I.E. the "special.c" file should be a "black box" to the customer). As a side note, this project's schematic (.cysch) and pin configurations are common information between the two of us (not secret).
In order to do this, we want to compile special.c into special.o (the object file), and then give this special.o file to the customer.
--> How do we create the external inputs/outputs in "special.c" so that the customer can see them, but not see the internals of special.c?
Show LessI used the Chinese language GB2312 coding fonts, but PSoc Creator does not seem to support GB2312 coding, I would like to ask you can change the coding method?
Show LessHi all,
I purchased a CY8CKit-059 and I want to make the kitprog psoc loading custom code. I downloaded and installed the files available under http://www.cypress.com/file/139876 but I found no kitprog_bootloader.hex as mentionned in the KitProg User Guide.
Do I have to generate it using bootloadable component?
Thanks in advance for your help.
Regards,
Herrmattoon
Show LessHello,
I'd like to use a bidirectional pin and change its direction from the code. This doesn't seem to be possible using the provided API. What's the easiest way to configure a bidirectional pin as input, and then change it to output?
I'm using a PSoC 5LP.
Thanks, Jacob
Show LessHello,
I don't understand how to do a thing I believe should be pretty straight-forward. Which component should I use to create a node that has a value that I can control from code?
For instance, let's say I want to control one of the inputs to an OR gate from code - how to do that?
I'm using an PSoC 5LP.
Thanks, Jacob
Show LessOver on the PSoC Sensei Blog, Brad has started posting about my implementation of an Integer Square Root Calculator using datapaths. Here is the component.
A quick overview:
8, 16, 24 & 32 bits.
In 32-bit mode, takes a 32-bit input and calculates a 16-bit square root in at most 114 clock cycles. Smaller widths are even faster.
CPU-mode for easy firmware interaction, DMA-mode for HW-controlled, CPU-free operation.
Even if you have no use for a hardware-based square-root calculator, I think this is another good example of just how flexible and powerful the PSoC datapaths are.
Show Less