PSoC™ 5, 3 & 1 Forum Discussions
Hello,
I am trying to connect a PSoC3 to my PC through the Bridge Control Panel using RS232. As far as I can tell the UART is configured correctly as well as the control panel. I have confirmed through hyperterminal the data is ariving to the PC. The Control Panel says it is connected but when I try to execute a Repeat command nothing happens. I have seen a single count come back once or twice now but no data is ever displayed through the panel. Please share any wisdom you have with me.
-Walt
Show LessI'm trying to dim an LED usinf PWM. I have a MOSFET connected to a GPIO, which is the PWM pin. Whenever PWM_Start() is called for the first time, the LED lights up, then goes away, as in a spike, then the dimming kicks in. Is there any way to make PWM_Start() to not spike the LED the first time?
Show LessHi,
I have started PCB design for my custom board for learning PsoC. Since I have not found more appropriate forum division to place my questions please move if necessary to different one.
Based on cypress documentation / processor AN and several other sources I have managed to find I have come with initial design which I attached in this post. This is still work in progress but I'm looking forward for your input.
My design goals included
- Have multiple voltage domains ( 1.8V /3V3 and 5V )
- Have digital and analog split
- Be able to choose which voltage is applied to which digital port
- Support USB
My questions are to the more experienced ones 🙂
- If I have routed the proper connections for powering of the device ?
- If I would power VDDIO_1 with 3V3 then I cannot program it with 5V /
- In my plan VDDd will be +5V would that be correct ?
- VDDa will be +5V so here I presume I have made correct choice considering it needs to be equal or greater than other VDDx
Thanks a lot for everyone input!
Regards
Rafal
Show LessHi,
I want to use a shared data block between different c-files.
I'm using a 32 byte array, which I fill up with data from my I2C-bus in I2CHandler.c. The data will be displayed on a smart display. So, I try to send the data to the display in Display.c.
Therefore, I defined the variable in vars.h as:
static BYTE dataReceive[32];
The vars.h file is included in I2CHandler.c and Display.c. But somehow Display.c will not have the same data (all zeros) as I2CHandler.c (some random hex-data).
How can I fix this behavior?
The data is received, because if I send the data to the display in I2CHandler.c, then the correct data is shown. But I want to separate the different functions in different files.
Thanks in advance.
With kind regards,
Erik
Show LessHello. I have a working project that I have added the Bootloadable component to. Then I created a boot loader project for it. I can flash the boot loader into the PSoc ok When I use the supplied boot loader host (for creator 3.2), and try to verify the image it always aborts after a variable length of time with a row checksum error. I can find no information to even begin to troubleshoot this error.
However if I go ahead and use the boot loader to program the PSoc with the image (that failed checksum), it programs successfully and the program then runs as expected.
But the next problem is when I want to load a new image to the PSoc. In that case, after building the new image, every time I try to boot load it, I get an error that the device key is invalid. I can find no information to tell me why this might happen, or even how to set a device key. As a result it is impossible to re-boot load unless I reload the boot loader into flash using miniprog. This kind of defeats the purpose of having a boot loader! By the way, the boot loader uses UART.
Can anyone help me to understand and fix these problems?
Thank you, Russ
Show LessWe are putting together a simple SPI based controller to talk to LPD8806 LED driver ICs for addressing multiple LEDs in a large array using a PSoC 5 (overkill at the moment but that's what we have lying around!).
The driver ICs use a simple, one directional (no feedback) serial data protocol with Clock and data lines (data sheet attached) so we are using an SPI-Master component to drive it. Looking at the "Mode" settings the driver ICs need to read the data on the rising edge of the clock 90 degrees out of phase with the data - this equates to the CPHA = 0, CPOL = 0 settings for the SPI_Master. However, looking at the scope on the data and clock lines they are in phase with these settings. In fact I have tried all four possible combinations of CPHA/CPOL and they are always in phase - scope screen shot attached.
I am obviously doing something wrong but can't work out what it is. Any ideas?
By the way, these are great LED driver ICs, very cheap and flexible.
Many thanks
PS - The application is actually functioning as it is but I'm concerned that it is probably running "on the edge" and want to get it right to ensure it is robust. In case you're interested, the attached photo shows the proof-of-principal panel of 144 leds - production units will have over 2500 addressable LEDs.
Show LessI am attempting to program a CY8C5888LTI-LP097 on a custom board using the MiniProg3 (gerber files attached) but the IC is not found when I attempt to program. I have double checked all my connections and verified that I am getting power where there needs to be (all VDDIO tied to VDD, and VCCD reads 1.78V). Is there something I am missing?
Thanks in advance,
Adam
Show LessI wonder how big a design one can make with the UDB in the PSOC5 LP. I use Xilinx Spartan/Virtex parts often but PSOC5 is very interesting to study. How big can one make with a single UDB in terms of ASIC gates? Can 24 UDB be combined to make a bigger design?
Show Lessso, I have a schematic design that I want to turn to verilog, and interface the verilog to the microcontroller. right now, the MCU is not involved, it's just a simple sequential logic design. I found the verilog file that gets created upon "build" and pasted it into a newly created source in the design. however, I don't think the design is working now. I also want to expand it to communicate with the microcontroller, and I have no idea how to do that.
does anyone have a simple example of this?
Show LessI'm a beginner using PSOC 3 to complete a project for my masters. I've been trying to use to the Uart_PutArray function to transmit an Array to the PC using Uart.
here's some code I've used to simulate an application segment
#include <project.h>
#include <stdio.h>
#include <stdlib.h>
uint8 count[256];
uint8 channel;
int i,x,j;
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
init();
for(j=0;J<10000;j++)
{
channel=rand()%255;
//UART_1_PutChar(channel);
x=count[channel]+1;
if(x>=0&&x<255)
{
//x=count[channel]+1;
count[channel]++;
//UART_1_PutChar(x);
//UART_1_PutChar(0x0A);
//CyDelay(200);
}
else
break;
}
UART_1_PutArray(const uint8 count[],uint8 256);
}
void init()
{
UART_1_Start();
for(i=0;i<=255;i++)
{
count=0;
}
}
/* [] END OF FILE */