Quantcast
Channel: Cypress Semiconductor - PSoC 5 Known Problems and Solutions
Viewing all 264 articles
Browse latest View live

Changing LUT values exceeds design

$
0
0

Hi.

I'm using the CY8CKIT-059 board for my evaluation.

Right now my design uses 79% of UDBs. It has many components in it, two of them are 5-in 6-out LUTs.

At some point I decided to change some values in them. After doing that I get the "E2071: Unable to pack the design into 24 UDBs. See the Digital Placement section of the report file for details. For additional assistance, see the Mapper, Placer, Router section in the PSoC Creator help".

I would like to stress that the only change between successful compilation and the above error is LUT values. All I have to do is clicking "Undo" once, and it compiles successfully again.

Why does this happen? How can I overcome this problem?

Thanks.


VID and PID for PSOC5

$
0
0

Hi,

I am using the PSoC5 Pioneer Kit USB as USBUART and for development purposes, I still used the Cypress VID. 

I wanted to be able to get the PSoC5 VID and PID using a command protocol sent from the PC Terminal such that if the pioneer kit received "?UVID"command from the hyperterminal, the pioneer kit will display, "Vendor ID = 04b4" and I wouldn't want to manually code the vendor ID .

char8* reply_str;

reply_str = "Vendor ID = 04b4";

while ( USBUART_CDCIsReady() == 0u ); 
USBUART_PutString(reply_str );

Although this code excerpt would work just the same, I am looking for a dynamic way to read out the Vendor ID and Product ID. There was no GetVendorID() or GetProductID() from the list of the USB API. 

We will be changing the VID and the PID on the final release for the production in the future which explains basically why I am after the dynamic acquisition of both the VID and the PID. It would be great if someone could help me out.

 

Thanks

K

View a decimal number on LCD

$
0
0

Request help for PSOC 5LP
Hello, 
I have a little problem on PSOC 5LP.  I have to be displayed on a LCD display a decimal value (2.5 V). The problem is: the software can not show me the decimal value.
Cordially

ADC_DMA_Filter

IIR Filtering Design for PSOC by Virtual DSP Required.

$
0
0

Hello Every one,

 

I am using PSOC 5LP by Cypress. I am interested to design an nth order IIR filter. I read an application note “AN2312” from cypress psoc and it seems very interesting to me. But, I am unable to download this tool.

Can you please guide me how I can find this tool?

 

Looking forward for your reply.

 

Best Regards

Awais

Need help in IIR Filter design in PSOC 5LP?

$
0
0

Hello Everybody,

I am programming an IIR Filter and following the cypress application note AN2099 (PSoC® 1, PSoC 3, PSoC 4, and PSoC 5LP - Single-Pole Infinite Impulse Response (IIR) Filters).

I dont know how efficient it would be. Can any body guide me regarding this?

My Specs are:  My cut off frequency is 2Khz.

and sampling frequency is 24KSPS.

My attenuation factor would be i think 1.9 so i selected 134/256 (based on the formula given and recomendation).

Looking forward for your reply.

 

Best Regards

Awais

Attachments: 

GPIO Analog - Digital Pins advice

$
0
0

Hi, 

I'm trying to read some sensors[QTR-8RC - https://www.pololu.com/docs/0J13/2] and then i got on and dead end...

Need some advice, the sensors need a 10us pulse for charging some capacitance, and the we read the cap discharge. I generate the pulses with a PWM and i can see the waveforms on an oscilloscope and they display correctly but only if i put the pin on "Open drain, drives high" 

Then I try to get the cap discharge signal to a comparator to get a pulse width proportional to sensor measurement.

Well.. after days of reading, i think i need another "pin driving" so i can "read" the signal with the comparator.

Came here to seek some advice, or if i can get another way of achieve the measurement of this sensors.

 

Thank you, and sorry to bother you!

CHAR LCD in PSoC 5 is not working anymore

$
0
0

I made a program for psoc 5 where i used the char lcd, and was working fine, then i made some modifications and everything but the LCD worked. i made a new program that print a simple hello message and it didn´t work, i try changing the port and the lcd and nothing happened. i exported the hello program to psoc  and it worked fine. 

anybody have an idea of whats going on.

 

thanks.

 


Variable LUT (?)

$
0
0

Hi.

I'm looking for a way to implement a variable LUT, which can be changed using some king of API.

The problem is that my design is already +70% full, and so far I couldn't find a way to squeeze my ideas into the remaining space.

The LUT size is 3-in 3-out.

Any ideas?

Thanks.

How to present an ADC 16 bit output on DAC (8 bit) without loosing information?

$
0
0

Hello Every One,

I am doing 16 bit analog to digital conversion. I want to see my output. In order to do this, i have to write my data into DAC (8 bit).

Can you please help me how i can write my 16 bit data without loosing bits or minimum information loss?

Looking forward for your reply!

Best Regards

Awais

spi

Send data with USBUART and interrpt

$
0
0

Hi,

I'm trying to send data from SRAM to the PC with USBUART and an interrupt but the PC tell me that the device is unknown. I'm using the interrupt with the nqr output of the DMA tha save the data from the Digital Filter Module to the SRAM. How can I solve this problem?

USBFS_UART how to detect opening of USB Comm-port ?

$
0
0

Hi there,

Is there a way to detect the opening/closing of the (virtual) comm-port from the PC side ?

I tried several USB variables but cannot figur out which one is the correct one to use, mainly because the reaction of the variables depend on which PC program I use.

For example, using TeraTerm give a configuration change on which I could trigger.

But unfortunately using Bray's Terminal or the following CSharp program does not (always) give a configuration change.

            SerialPort Dut=new SerialPort("COM7",115200);
            Debug.WriteLine("OPEN");
            Dut.Open();
            Thread.Sleep(1000);
            Debug.WriteLine("COMMAND");
            Dut.WriteLine("VAR LWR=1\r\n");
            Thread.Sleep(5000);
            Debug.WriteLine("CLOSE");
            Dut.Close();

 

Attached i have the basic USBFS_UART example, I made some changes to run it on my hardware (CY8CKIT-059) but, as said, it only registers changes in settings; not in opening/closing of the USB port.

Background :

- In my end-application I have a commandline-interface in which you can start/stop several timers and readout analog values. I want to reset the timers and maybe other stuff as soon as the USB port is closed.

Thanks

Patrick

Filter ADC VDAC - Example Project

$
0
0

Hello everyone,

I have the CY8CKIT-059 Psoc 5LP development board and want to test some of the example projects to learn the programming of an psoc.

I followed the instructions of this video:

https://www.youtube.com/watch?v=oq8eQhvkceM

to replace the interrupt with an dma request.

 

With the interrupt the filter works well, but when i replace it with an dma request the filter inverts my signal and i do not know the problem.

 

I hope you can help to find the problem...

 

Best regards!

How to get rid of these warnings?


Why Wave Dac is not Generating Outout?

$
0
0

Hello Everybody,

I made a project where i place a Wave dac with external clock selected. But now it is not giving me any wave output with external clock selected and attached. It is working with internal clock selected in the same project. Also If i run with the same setting outside the project (another project), it works perfect.

I also attached pic.

Looking forward for your reply.

 

Best Regards

Awais

Attachments: 

How Can I transfer data stored in a variable to DAC?

$
0
0

Hello Everyone,

I know the concept of data transfer via DMA. But i have still confusion, how i can transfer an 8 bit data to DAC if for example:

1. I performed some calculation (e.g over sampling) on my ADC real data and save it into a variable X. So now, my data would be like this:

ADC-Data = adc_Startconversion ();

I know i can directly transfer data from ADC to DAC via DMA wizard.

But, How i can send my Data stored in "X" to DAC? Through write command or is it possible to transfer it via dac?

X = Oversampling (ADC-Data);

Looking forward for your reply.

Best Regards

Awais

How can transmit and receive ARINC429 with PSoC5?

Dedugging Feature problem

$
0
0

Hello

 I want to use debugging feature using break point to check the values of variable used in my code. however when ever i am running code in debug mode Break point present will become watch point and my code is not halting at that point. also RUN and PAUSE is also not working. i think there is problem with debug feature setting kindly suggest. I am using Creator version 3.3.

 

thanks

Why i am not able to see my Filter output?

$
0
0

Hello Every One,

I am again having a problem and i don't know why :(

The Program is very simple:

I build a program for a Bridge. What i am doing is described below:

1. I am using a waveDAC in order to excite my bridge.

2. output of the bridge is comming into a 12-Bit SAR ADC.

3. output of the ADC if going to the LPF.

4. LPF output is being written into DAC.

Problem: The problem is that my final output is not correct. I am feeding a 10 Khz signal and my cuttoff frequency is 15Khz. But i am not getting a sine signal as i supposed to get.

I also attached and output pic and my program file.

Yellow wave: Excitation Signal.

Purple or Pink Wave: Signal entering into ADC.

Blue Wave: Filter Output seeing through DAC Ch1.

Looking forward for your suggestions!

Best Regards

Awais

Viewing all 264 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>