Dear Sir,
I want to know about these two things listed below:
1). for UART Communication, are we can be able to select pins in different ports?
2). For SAR ADC, which pin we can use as a input (For Eg : Pin Number 44 for SAR ADC1 , like that)
Show LessHello,
I am trying to read data from ADC. If I probe signal lines with a logic analyzer, I can see actual samples (with their respective headers). If I look at data read by SPI slave peripheral using a debugger, I just see some meaningless numbers. Do I have a mismatch on CPOL/CPHA?
CY_ISR_PROTO(RxC1);
CY_ISR_PROTO(RxC2);
void SendData();
uint8_t Data1[32] = {0};
uint8_t Data2[32] = {0};
uint8_t Ptr1 = 0;
uint8_t Ptr2 = 0;
volatile uint8_t Ready1 = 0;
volatile uint8_t Ready2 = 0;
uint32_t Channels[10] = {0};
uint8_t Usb[40] = {0};
void ADCData_Init()
{
Data1_RxC_StartEx(RxC1);
Data2_RxC_StartEx(RxC2);
SpiData1_Start();
SpiData2_Start();
}
CY_ISR(RxC1)
{
while(SpiData1_ReadRxStatus() & SpiData1_STS_RX_FIFO_NOT_EMPTY)
{
uint8_t dummy;
if(Ptr1 < 32)
{
Data1[Ptr1++] = SpiData1_ReadByte();
}
else
{
dummy = SpiData1_ReadByte();
if(dummy < 0xFF)
{
Data1[0] = dummy;
Ptr1 = 1;
}
}
if(Ptr1 == 32)
{
Ptr1++;
Ready1 = 1;
if(Ready2)
{
Ready1 = 0;
Ready2 = 0;
SendData();
}
}
}
}
CY_ISR(RxC2)
{
while(SpiData2_ReadRxStatus() & SpiData2_STS_RX_FIFO_NOT_EMPTY)
{
uint8_t dummy;
if(Ptr2 < 32)
{
Data2[Ptr2++] = SpiData2_ReadByte();
}
else
{
dummy = SpiData2_ReadByte();
if(dummy < 0xFF)
{
Data2[0] = dummy;
Ptr2 = 1;
}
}
if(Ptr2 == 32)
{
Ptr2++;
Ready2 = 1;
if(Ready1)
{
Ready1 = 0;
Ready2 = 0;
SendData();
}
}
}
}
Show Less
Hi,
I was using the PSoC 5LP Verilog Generate when I am declaring the memory register(array of register with the command line)reg [7:0] registers[255:0] so I was creating 256 registers with width of 8, the error it's showing is:
that memory declaration is not supported. Any idea/approach what to do next.
Any another approach with how to write/read into registers, please give me the full detailed solution with your code, if possible.
Show LessHello
I am building a project based on another, working one (just a new, smaller PCB basically).
I assembled the prototype, but I notice over 200mA is drawn when power is applied, and the LP051 gets warm - I am afraid I have probably damaged the IC.
Kitprog doesn't detect the LP051. Cannot acquire port.
Before I replace the IC, I need to find the problem. I have removed almost every other part from the board, and the problem remains, so I must have missed something in the schematic.
I thought it was odd that the original schematic had the NC pins connected to GND, but I left that in since it worked. Could this be the problem and I've interpreted something wrong?
Here is what's left of the schematic after removing parts.
Note that the LED glows at a different brightness most times power is applied.
On a side note, that 5-pin header is suitable for programming the blank chip via KitProg USB included with CY8KIT059 ?
Thanks!
JD
Show LessWe have been using CyUSB.DLL with our VC# program that interfaces with our product using a PSoC5. We are using Generic HID. Now the Cyber Cops are telling us we need a signed DLL. Considering CyUSB is so old, is there another option that is already signed?
Mike.
Show LessDear Cypress Community,
I am using an evaluation board for PSoC 5LP (CY8CKIT-059) and trying to downmix a signal.
My aim is to downmix a noisy signal that contains a very small sine wave (1mVpp) whose frequency is known, e.g., 10 MHz. The DC value I would get after the mixing+filtering tells me if that sinewave is present in the signal or not.
I was able to achieve this only for sine waves of max. 4 MHz using the mixer component of 5LP.
Question: Is it possible to mix with a frequency higher than 4 MHz so that I can downmix a 10 or 15 MHz signal?
I ask this because I do not want to include/pay a separate (I-Q) demodulator in my design.
Cheers,
Matija.
Show Less
It seems everyone, mostly, agrees that DFB assembler is super hard and not to be tinkered with.
Some dedicated hobby hackers don't take no for an answer, and given that the assembler is documented in the manuals, together with a DFB asm block containing both an assembler and a simulator showing how data flows through the unit, I decided that to give it a go. The real reason for not using the filter block was that I want real time update of filter coefficients, actually just a simple PID regulator as a filter. The filter component also don't like the unstable character of PID regulators.
My findings are described at:
http://arttools.blogspot.se/2016/02/psoc-5lp-dfb-assembler.html
Comments and corrections are welcome, my time for this is limited so I cannot guarantee any fast responses, but I figure it could be helpful to collect some more help and instructions about DFB asm programming.
Regards
Magnus
Show LessThe datasheet says that the comparators may be preceded by a low pass filter. A low pass filter appears on the analogue routing diagram. The lime green is my addition. It's greyed-out.
There is no LPF in the comparator config and there isn't a LPF in the component catalogue.
How do I get my mitts on this component? It seems tantalisingly out of reach.
I bet I'm doing something silly.
PSoC Creator 4.4, Win 10, CY8C5666AXI-LP001
Show Less私はPSOC5LPにてSDカードを使用したプログラムを書いています。
emfileとFS.hを使用しています。
できる限り省電力にしたいため、SDカードの電源も制御しようとしています。
そのため4端子の3.3Vレギュレータを用いてsleep前にSDカードの電源を切っています。
また、SPIのCS端子もLOWに設定するようにプログラムを書きました。
#include <project.h>
#include <FS.h>
#include "stdio.h"
FS_FILE * pFile;
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
CONS_Start();
FS_Init();
while(1){
SD_Power_Write(1);
emFile_SPI0_CS_Write(1);
pFile = FS_FOpen("\\data\\4.csv", "a");
if(pFile)
{
if(0 == FS_FClose(pFile))
{
CONS_PutString("File was closed\r\n");
}else
{
CONS_PutString("Failed to close\r\n");
}
}else{
CONS_PutString("Failed to write file\n");
}
SD_Power_Write(0);
emFile_SPI0_CS_Write(0);
CyDelay(5000);
}
return 0;
}
こちらのプログラム実行結果が下記の内容です。
Start
File was closed
Failed to write file
Failed to write file
Failed to write file
Failed to write file
Failed to write file
Failed to write file
電源を一度切るとその後はファイルを開くことができません。
電源を切る前に実行すべきメソッドがあるのでしょうか?
それともそもそも電源を切ってはならないのでしょうか?
追記:
回路図と使用部品を記します。
microSDソケット:https://akizukidenshi.com/catalog/g/gK-05488/
SD電源用4端子レギュレータ:https://akizukidenshi.com/catalog/g/gI-09261/
主電源DCDC(3.3V出力):https://strawberry-linux.com/catalog/items?code=12060
Show LessVDDIO5VポートとVDDIO3.3Vポートの入力信号を、
PSoCCreator上でLOGICに入力(例えばAND)してVDDIO5Vポートで出力したいのですが、
異なる入力電圧で正常に論理出力可能でしょうか。
よろしくお願い致します。
Expert II
Honored Contributor II
Honored Contributor
Esteemed Contributor
Esteemed Contributor
Valued Contributor II
Honored Contributor II
Employee