Hi,
can a PSoC5LP be a LIN master? There is a LIN component, but this seems to be a slave only.
The LIN protocol seems to be relatively slow, e.g. 19200bps. Does anyone have experience with LIN and is willing to share?
Best regards,
Turtle
Hi,
can a PSoC5LP be a LIN master? There is a LIN component, but this seems to be a slave only.
The LIN protocol seems to be relatively slow, e.g. 19200bps. Does anyone have experience with LIN and is willing to share?
Best regards,
Turtle
I've got a project where I have multiple pins that happen to be assigned to the same port.
I'd like to enable interrupts on all these pins. I understand that an interrupt on any pin within a port will be ORed together to a single PICU interrupt. Is it possible to enable interrupts for multiple pins that are assigned to the same port, but that aren't encapsulated in the same "cy_pins" component?
I found there would be some noise appear on the pcb wire connecting to seq SAR ADC component The noise could be observed from OSC. the noise frequency is the same as the "sampe rate(SPS)" of ADC. so the voltage read from ADC is deviated, anyone can help to explain this?
hello,
How to transfer a boatloadable program from one external host controller to PSoC 5LP target controller through UART protocol .By using PC i choose Bootloader Host programmer .,but from external controller that is not possible,
Hey guys,
I would like to know how to find the rms value of a signal using psoc5lp.
Sorry if it looks like a repeat post. But I couldn't find an exact answer.
I want to use the software controllable counter, but I want it to count based on a clock coming into an IO pin, and not depend at all on the system clock. the clock to the counter will be going near the same speed as my system clock, so using the clock and count pins would be error prone. if I use the basic counter, I can use the external signal as a clock and it works fine. I want that same functionality, but with software control (setting TC and Compare values) and compare output. how can I achieve this?
I'm working with the CY8CKIT-059
I'm using a SAR ADC in my design and trying to understand how to use set gain and set offset function to get more accurate reading. I've read online that adjusting the gain and offset can get reduce error in reading to <= 1%
ADC_SAR_1_SetGain(int16 adcGain);
ADC_SAR_1_SetOffset(int16 offset);
I'm trying to find any application notes or design examples that show how to use these function. Any suggestions would be appreciated.
Thanks.
The generic family data sheet (e.g. PSoC® 5LP: CY8C52LP Family) indicates
"5.1 Static RAM ...... Code can be executed at full speed from the portion of SRAM that is located in the code space. This process is slower from SRAM above 0x20000000. ......."
There does not appear to be specific data sheets for individual devices so it's not clear where the internal SRAM is mapped within the memory space for devices with different size SRAM. I am using a device with 32K SRAM and PSOC creator linker places the RAM so that there is 16K below and above the 0x20000000 boundary, i.e. in two different 32K memory blocks. It places the stack at the top of this region, at 0x20004000.
My question is: are data accesses also slower to memory above 0x20000000?
If so can I move my stack below this address? .... there is a control for the stack size but I didn't find one for re-locating the stack in the SRAM.
Hello,
I'm french student in electrical engineering and I work on a school project of "touch keyboard" with the technology CapSense.
I work with the CY8CKIT-059 (and PSoC Creator). The purpose of my project is to realize a touch keyboard with 9 touch (1 to 9) and I fixed a code of 4 numbers (such as a password). When you type to correct code, a green led is flashing and at the contrary, when you tape a wrong code, a red led is flashing. I have written my program in C language on PSoC creator and it work really good.
Now I want to add a LCD (162B Series, by Displaytech Ltd.). I have realised some tests but it's not work... Severals pins of my kit are used.. I pluged 7 threads from my LCD to the kit. I also added the "block LCD" on PSoC Creator.
But how configure my LCD from PSoC Creator.. ?
And are there some pins reserve for the LCD ?
Thanks you very much ! :)
Hi,
has anyone an working example with the USBUART device in DMA mode? In my Application I would like to avoid to do the data transfer by the CPU because of some other time critical tasks. So my plan was to poll a global variable or something to figure out if I received data from the host and than send an answer. I got it working with the manual Endpoint management but when i get al larger interrupt load the PC reports an error of the USB device.
I would be very glad if someone could post a example.
regards
I'm working with the CY8CKIT-059 5LP Prototyping Kit. I added a PWM in FF mode to my project and connect the output to the onboard Blue LED on P2.1. The PWM controls the LED as expected but when I'm done running the PWM I issue a PWM_Stop() followed by a LED_B_Write(0) (which LED_B is defined and connected to P2.1).
I would expect that after those 2 commands the LED would be OFF but it is ON.
I'm not attaching my project as I thought this would be a general question with perhaps something else I need to do to fully disconnect the PWM from the Blue LED. Reading the datasheet of the PWM it reads as though the stop state would be to have PWM at a 0 but perhaps I'm missing something.
Thanks,
George
I’ve programmed my Del-Sig ADC for a sampling frequency of 360Hz. I further want to filter this data. Is it possible to design a fourth order biquad, Butterworth digital bandpass filter with a sampling frequency of 360Hz having a passband of 5Hz to 20Hz (centre frequency = 10Hz) using PSoC 5LP?
I am trying to read output from the Raspbery Pi to the Psoc (High/Low), Im doing a smart lock through bluetooth using the pi as the bluetooth compoenent. When a verified paired device is recognized i need to the pi to send out a 1 . With a DMM I am able to verify that the Pi puts out a 0,1 because it reads 3V=High and 0V=Low. When I try to read the output from the Pi thorugh an if loop, the psoc does not work.
Any ideas on whats wrong?
I have a device with the following MIDI ports:
1. USBMIDI in/out
2. MIDI uart in/out (as a part of the USBMIDI device)
3. MIDI over SPI in/out
I want to be able to route messages from all the inputs to all the outputs. By "output" in this context I mean an output from my device.
Now, routing between USB and UART is simple, since it happens automatically.
Reading messages from these inputs and writing them onto SPI out is also simple.
Reading from SPI into a character buffer is up and running.
But what is the best way to write the messages from SPI to USB/UART outputs? The problem is that these messages are just received as a stream of bytes, i.e. they are not parsed into MIDI messages that fit as input to
USB_PutUsbMidiIn(USB_3BYTE_COMMON, midiMsg, USB_MIDI_CABLE_00);
Since the UART also gets its MIDI input as a byte stream, I assume it has a parser for it, but this doesn't seem to be covered in the API documentation. I'd rather not reinvent the wheel by writing another one, so is there any "correct" way to write data into this parser from code?
I am trying to use the UART module to decode the SBUS signal from an RC receiver. This signal is 100KBps Even parity and 2 stop bits. It is also an inverted signal so I added a not gate on the RX input. Since I could not select 100kbuad in the uart config, I am using my own 800Khz clock.
The device does not seem to decode this signal properly. In the attached image, the top trace changes state whenever I get an interrupt for a new character. The second trace is the signal from my receiver. To see that the uart was getting a signal, I tied the input to it to another output on the psoc and that is the third trace. The last trace is just the 800Khz clock.
You will notice that the first trace changes state after the first stop bit, not the second. I am not sure if this is a symptom iof the issue or not. I get an interrupt after the first stop bt every time so it seems like the uart is locking on to the signal fine.
The first byte has the value of 0x0F. This gets decoded correctly, however, all other bytes are not correct. The second byte shown should be 0x00 but its decoded as 0xbf. The next byte is 0x37 but is decoded as 0x13.
Is there an know issues using 8E2 format?
I am not sure the best forum for my question. I am looking for a contract PSOC 5LP "expert" programmer that either has experience with Decawave or capable of helping port some C code from another processor to the 5LP.
The device is a RF transceiver that interfaces to micro using SPI. The SPI code appears to be running and I can read write and read registers ok in the device.
My initial application is to simply get TX to RX working based on their example code.
The TX code appears to be working (The TX sent flags etc are all being sent correctly) but the receiver is not receiving anything.
Most of the job will involve looking into my code to see what I may have overlooked.
Regards
Dave
I'm doing a simple operation on the Cypress PSOC 5LP 59. It uses SPI to communicate with a Raspberry Pi which sends a bunch of letters, and the PSOC 5LP blinks a light after it receives a certain letter. The PSOC stores the entire array of letters.
This does not work for some reason. It works if I use a buffer of 100 letters, and the A is the 95th letter or something. It works up to 400 letters or so (though it will be slightly sporadic sometimes.) But after that point, it won't work. For a buffer size of 1000, with the first A being at the 800th letter, the LED won't turn on.
The SAME code, works with the 4200 with a buffer of 2000. So why does it not work with the 5LP? Its max array size should definitely not be 400 or so.
Does anyone have a working example for PSoC5 of a USB composite device with MIDI and USBUART (CDC)? Got each one of them working separately but I can't figure out how to do both.
Hello,
I'm currently trying to open communication to the Sparkfun Razor 9-DOF sensor which has an atmega chip onboard and outputs sensor data via UART (TX/RX). I have set up basic open communication using a UART on the Psoc 5lp (Term) and a UART connected to the TX and RX pins on the sensor (IMU).
The baud rate on the sensor is set to 57600. Tera Term and both UARTs are set to the same.
The main.c is as follows I have also posted the whole project.
////////////////////////////////////////////////////////////////////////////
#include <project.h>
uint8 Ch;
int main()
{
Term_Start();
IMU_Start();
while(1){
if((Ch=IMU_GetChar())){
Term_PutChar(Ch);
}
if((Ch=Term_GetChar())){
IMU_PutChar(Ch);
}
}
}
////////////////////////////////////////////////////////////////////////////////
The communication is there, but the output is gibberish. I see the following in Term after hitting the reset button on the sensor:
üüüüààüàüààüüüüüüüüüüüüüàüüüüüüüüüüüüüàààüàüüààüàüàüàüüààüààüüüüüààüüàààüàüüàààüüüàüüüüüààüàüààüüüüüüüüüüüüüüüüüüüüüüüüüüàààüàüüààüàüàüàüüààüààüüüüüààüüàààüàüüàààüàüüà (it looks different on tera term)
The worst part about this whole thing is that I got it working before, changed some stuff around, and can't get back there no matter what I try.
Any help is appreciated. Thanks!
I'm attempting to develop a GUI using a PSoC5LP. I successfully downloaded and added the latest provided emWin library which is V1.0. According to the documentation this library has full widget support, however when I try to create either an IMAGE or SPINBOX widget the library does not seem to support them. All other widgets and functions work as expected.
Am I using the incorrect library or is there no support for these widgets?
Thank you,
-F