PSoC™ Creator & Designer Forum Discussions
has anybody worked up an SQI component. there are many memory and i/o chips that now support the 4 bit style of SQI. they quote much higher throughput, almost as good as a parallel bus speed but so much cleaner.
setting out to start developing one ... will keep progress advised.
btw: i don't know how much to say i love the PSoC way. we are just finishing up a new design with a Spansion (kept it in the family) FM3 chip with dual Ethernet plus a third one as an external controller but HATE the lack of 5V/3.3V mixed i/o and reassigning pins to be where i want them, not where they decided it. even swapping CS_, SCLK, MISO, MOSI around on 4 pins to be in the order that makes for traces with NO vias to rearrange on the way to the SPI slave has spoiled me SO much!!
And here is another example: FM3 doesn't support SQI but i can, hopefully, make my lowly PSoC do it!!
-Ed
Show LessHello, just starting to ramp up on the PSoC creator. I am looking for the "go back" feature--similar to the back arrow in Visual Studio, or Alt-left-arrow in Eclipse. I apologize if this should be obvious.
Show LessHi,
I have worked on a component for Modbus in Creator about three years ago. It's completed for about 80% and was discontinued as we found another solution where we would not use Modbus anymore.
However, I would like to share the component with people willing to finish it . The component mainly consists of the CRC implementation, which currently works well. The rest would be done with the UART component which still has to be implemented.
Let me know if you are interested, email me at: rolf (at) nooteboom (dot) biz
Show LessI've spent the last two days trying to get a basic hello world to display on the a HD44780 character lcd. There is something inherently wrong with this library.
So far what I've tried was a PSoC4 pioneer kit & PSoC5LP stick with 2 different LCD modules a 2x16 and a 4x20. Both are cheep Chinese versions so they are probably not a real HD44780.
I'm using the version 2.10 of the library and I've also tried some of the older versions as well with not luck.
Just ot verify that the Character LCDs are good, I connected them to an ArduinoUNO and ran their lcd hello world. Both worked with out any issues.
I hooked up both to a logic analyzer and the waveforms look very very different from the Ardunio LCD Library and the PSoC library. See the attached images.
Has anyone else seen this? This really should work out of the box. Suggestions for fixing this other than rolling my own LCD library.
Show LessHi all, i´m trying to create my first component (a nRF24), so i did the symbol, and schematic implementation (see attached), until here is where the video tutorials guide me, so reading the component author guide is how i'm trying to make the API´s, i added the .h and .c files, same name on both (nRF24).
Here is where the questions begins:
- Section 6.4 of the component author guide says i should include references to the cyfitter.h and cytypes.h files, i did as the example says:
#include "cytypes.h"
#include "cyfitter.h"
- on the nRF24.c i add #include "`$INSTANCE_NAME`.h" as the section 6.3 section indicates.
- 6.1 API Cases says when i got other components on the schematic implementation i would need to use API of those components i would refer as:
`$INSTANCE_NAME``[SPI]`Init()
so i didn't know if i must include something similar on the top of the C file like:
#include "`$INSTANCE_NAME``[SPI]`.h"
#include "`$INSTANCE_NAME``[Control]`.h"
When i try to use a SPI function on the nRF24.c file no help displayed, i mean no SPI_Start, i also tried `$INSTANCE_NAME``[SPI]`_ and no help is displayed, as i know i'm bad explain my questions i attach some images to try help me.
all help and suggestions are welcome.
ps: http://origin-www.cypress.com/forum/psoc-creator-software/spi-component-schmatic-implementation this topic help me, but no mention about API generation.
Carlos
Show LessHi,
I need to implement a synchronous receiver that receives 4 Data Bytes. The bytes are clocked by a hardware clock pin. I have written a routine that works well when data is coming in but if the transmitter stops at certain points part way through, my code hangs. My code should be receiving bits based on clock state but have an overall timeout so if data stops then the routine exits after timeout period but it is not working. If I call the "sampleLF" routine when no data being received, it hangs in the loop and never sees Timer_Flag set.
Any help much appreciated, thanks.
Here is my code that uses a 32 bit timer component
#define LFSAMPLETIME 24000000/1000*80
void StartTimer(volatile uint32 tdelay){
Timer_WritePeriod(tdelay);
Timer_WriteCounter(tdelay);
Timer_Enable();
Timer_Flag = 0;
}
void StopTimer(void){
Timer_Stop();
Timer_Flag = 0;
}
void SampleLFData(uint8 * buf){
volatile uint8 Sample;
volatile uint8 nBytes;
volatile uint8 SamplePtr;
Sample = 0;
nBytes = 0;
SamplePtr = 0;
StartTimer(LFSAMPLETIME); //12ms Data 4 Bytes should take 8ms to receive
while ((!Timer_Flag)&&(nBytes < 4)){ //get 4 bytes or timeout
while(!CL_DAT_Read() & !Timer_Flag){} //wait for clock high
Sample<<=1;
if(DAT_Read()) Sample |= 1; //read data bit
SamplePtr++;
if(SamplePtr == 8){ //save every 8 bits as byte
if(nBytes < 4) buf[nBytes] = Sample;
Sample= 0;
nBytes++;
SamplePtr = 0;
}
while(CL_DAT_Read() & !Timer_Flag){} //wait for clock low
CyDelayUs(50); //clock settle time
}
StopTimer();
}
I would like to know whether it is possible to integrate external hardware like LED, LCD etc with CY8CKIT-042 Pioneer board . I could see lots of sample project with lighting the onboard led and other features. If possible please guide me to the docs for this.
Show LessIf I could have one wish granted in PSoC Creator, it would be the ability to search the dropdown autocompletion list.
An easy implementation would be similar to using the CRTL+Space key that currently filters the list, simply use CTRL + F to initiate a filter of the current visible list for any entry containing the letters that you type after CTRL + F.
For instance, recently I needed to find out how to set the drive mode of a GPIO pin that is already assigned to an I2C component.
I did find CY_SYS_PINS_SET_DRIVE_MODE eventually by scrolling down hundreds of choices (I didn't even know it started with CY).
With searching I could have found this unknown to me command simply by typing any letter in the list on a blank line (c is a good bet), backspacing to populate the list to all starting letters, press CTRL + F and then type 'drive'. I am sure the list would have been filtered down to a few at that point and I would just click what I needed.
Would this be useful to others?
Regards,
Dale
Show LessI have recently run into an issue of not being able to use the math.h cosine function with an argument that is a variable if TCWPM_WriteCompare() is present. It doesn't even seem to matter if WriteCompare() is opperating on the same variable that cos() is. A compiler error is generated of "Build error: undefined reference to 'cos'." See below for relevant code snippet.
double a = 0; double b = 0;
....
int main()
{
TCPWM_Start();
for(;;)
{
b = cos(a);
TCPWM_WriteCompare(a);
}
}
A bare bones project demonstrating this issue is attached. Any feedback on what is causing this error would be appreciated.
Show Less