PSoC™ 5, 3 & 1 Forum Discussions
Hello, is it possible for the DDS24 component for PSoc5LP to produce a frequency sweep sine wave between 1Hz and 80Khz at a rate of 8Khz? perhaps by using external components such as the ADS1256? would it be possible to change the frequency sweep from an Arduino/Teensy input?
Show LessHi all,
I am new to cypress community,I am currently working with CY8Ckit-059 psoc kit. I want to read data from the SD card that contaion "new.txt" file.and according to receive data I want to drive some signal(like LED or any thing through GPIO). I am using somthing like Below code. But I am not able to get any data into buffer. so the lile if (n != 0) is not getting executed... even after I am getting pFile as 1 because this loop for( i = 0; i < 5; i++ ) is getting executed I can see that.
can anayboday please help regarding this?
#include "project.h"
#include "string.h"
#include "stdlib.h"
#include <FS.h>
#include <string.h>
#include <Global.h>
int main()
{
char abBuffer[1];
FS_FILE * pFile;
FS_Init();
//FS_Mount(0);
pFile = FS_FOpen("new.txt", "r");
int i = 0;
int n=0;
CyGlobalIntEnable;
if (pFile)
{
for( i = 0; i < 5; i++ )
{
LED_Write(0u);
CyDelay(1000);
LED_Write(1u);
CyDelay(1000);
}
while(NULL != pFile && FS_FEof(dataFile)!=1 )
{
n=FS_Read(pFile, abBuffer, 1);
if (n != 0)
LED_Write(0u);
CyDelay(5000);
LED_Write(1u);
CyDelay(5000);
}
if (abBuffer[0] == 1)
{
LED_Write(0);
}
else if (abBuffer[0] == 0)
{
LED_Write(0);
}
FS_FClose(pFile);
}
}
Show LessHi,
I am using psoc 5lp 059 kit, in that i am using spi connection with sd card (micro sd card 16 gb, class 4, san disk)
In that I have error -1,
ex:
int abx = FS_Mount(sdVolName);
sprintf(cmdnum,"a : %d ",abx);
UART_2_PutString("\n\r");
UART_2_PutString(cmdnum);
UART_2_PutString("\n\r");
abx = -1, and its error of FS_ERRCODE_EOF (End of file reached)
ref: https://www.segger.com/downloads/emfile/UM02001
how to resolve this?
Show LessI have created a blog at http://socmaker.com, where I am posting about PSoC 5LP, combined with 3D Printing.
I had a requirement to add date and time into my compile. This post covers solving that problem using a feature of PSoC Creator:
I will be adding to this blog about one time per week, and checking for comments there at the same time.
Thanks!
Show LessHi,
I have faced a permenant onchip EEPROM damage on a certain byte two times in different units. The byte is stuck at FF no matter what, I tried reprogramming over EEPROM config tool etc. Why this may occur and how can I mitigate this problem?
Best,
Nico
Show LessHi Everyone,
I am facing a problem with SPI communication. I am trying to read data from an external ADC (MCP3201), transform it to temperature value and show it in PUTTY terminal using UART. But I always get garbage value. I am using the ADC as SPI slave and PSOC5LP as SPI Master. I don't understand why I am not getting correct values. Can anyone help? Thanks.
Show LessHi, I am trying to load the chip into a new circuit with miniprog3. It gives the following errors. EraseAll Finished at 00:16:08 | | FAILED! EraseAll operation failed! | Timeout of SPC polling. Lost communication with chip (Status = 0x22) Program Finished at 00:09:30 | | FAILED! Timeout of SPC polling. Lost communication with chip (Status = 0x82) | Programming of Flash Starting... | Erase Succeeded Device set to CY8C5888LTI-LP097 at 00:09:26 | 262144 FLASH bytes Device Family set to CY8C5xxxLP at 00:09:26 | | Automatically Detected Device: CY8C5888LTI-LP097 | JtagID: 2E 16 10 69 Program Requested at 00:09:25 | Successfully Connected to MiniProg3/1343DD00057F at 00:09:16 | MiniProg3 version 2.05 [3.11/2.10] Opening Port at 00:09:16 | Memory Types Load from HEX Finished at 00:09:16 | Device set to CY8C5888LTI-LP097 at 00:09:15 | 262144 FLASH bytes Device Family set to CY8C5xxxLP at 00:09:15 | Memory Types Load from HEX Requested at 00:09:15 |
Show LessHi,
This is announcement of the new custom component, Pins Annotation v0.0, which facilitates PSoC pins configuration. It identifies terminals with direct access to PSoC internal hardware and graphically displays pin configuration.
Pins Annotation component for PSoC5 and PSoC4
odissey1
Show Less
Hi everyone,
I'm working on a project, and I want to power the micro-controller inside CY8CKIT-062-BLE Kit,
So,I'm asking about the pins that I should connect the 3.3V for powering the micro-controlle only without the other kit peripherals for measuring the power consumption?
Best regards,
Khalil Azouz
Show LessHi all,
I am using UART[v2.50] with CY8CKIT-059 that is is configured at 115200 Baud rate, 8 bytes data, parity none, 1 stop bit, oversampling 8 (default). I want to send large .txt file (~2-3 MB) over UART. I am sending that .txt file from my PC COM port ( that is also configured at same specifications ) to CY8CKIT-059 using Tera term (terminal) but I am seeing data loss at receiver side (on CY8CKIT-059). is there any way I can get perfect data on receiver side (no data loss). I have tried Xon/xoff flow control (in tera trem) also but still data loss is there.
Is there possible to use hardware flow control to get rid of data loss? if Yes please help with an example of hardware control in PSOC creator. I am not getting any eample.
or is there any other way I can send that large file to CY8CKIT-059 without any dataloss?
Show Less