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

External Memory Programming through UART Bootloader using PSoC5LP

$
0
0

I implemented a UART based bootloader on PSoC5LP kit having CY8C5888LTI-LP097 controller which stores the application on internal flash. Now I want the Bootloader to download the application on External Flash or EEPROM and Download the application from external memory upon a key press to the internal memory. IS it possible ? if yes then guide me how to proceed.


Why I am not getting same voltage with two Dithering VDAC?

PSoC 5LP and MiniProg3

$
0
0

Hi All,

I have a hardware board in which my controller CY8C5868AXI-LP035 is mounted. I also have the 10 pin SWD/JTAG connector connected to the controller. I am using MiniProg3 to program my controller. I have with me PSoC Creator 4 and PSoC Programmer software. I created a blank project in PSoC Creator just to verify if I am able to program my controller (this is the first time I am using MiniProg3 to program my device and hence the blank project). I tried programming using both the software and I am not able to succeed.

Setting in PSoC Creator 4:

Active Protocol - JTAG

Power - 3.3V

Clock Speed - 24MHz

Acquire Mode - Reset

When I click Port Acquire, the error message I receive is "There was an error running port acquire: Can not acquire SWD device!".

Setting in PSoC Programmer:

Programming Mode : Reset

Verification : On

Auto Detection : On

Connector : 10p

Clock Speed : 24 MHz

Protocol : JTAG

Voltage : 3.3V

MiniProg3 is detected succesfully.

But I get the error message as "Device isn't powered! Apply power to target board to acquire it in "Reset" mode!".

What could it be that I am doing wrong? This is my first time I am using MiniProg3. Please do help me. I have been stuck with this for a few days now.

Thanks in advance. 

Why my mixer is not rectifying the signal?

$
0
0

Hello everyone,

I have the following issue,

I am using a mixer in order to rectify the sine signal. But, the output is not rectified. In fact, it is just flipping (or just changing polarity).

I have the following configuration:

Mixer Input frequency: 50Khz

Mixer local oscillator input (LO): 50Khz coming from PWM.

Reference : Vdda/2 

Both signals are in phase, components are started correctly.

I don't really understand where the error lies.

Looking forward for your suggestions.

Regards

Awais

KY8KIT-059 USB Shield Not Connected

$
0
0

The schematic shows that the USB Micro-B receptacle shield should be connected to the board's GND by way of a 100K resistor and 0.01uF capacitor in parallel. All my copies have no solder in the receptacle mounting holes that would make this connection. Once I add solder myself the components test present.

It doesn't make much difference because 3 of the 4 USB cables I tested don't have a shield.

I'm trying to determine if the RC connection is best, or direct connection of the shield to GND is better. Both are recommended by skilled designers. I haven't seen anyone recommend open-circuit.

PWM_Start() turns on the LED

$
0
0

I'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?

PSoC 5lp Dual SPIM module don't working

$
0
0

Hi friends

I'm using PSoC 5LP CY8C5868-AXI Psoc device. I need two spi modules in Psoc5 series. But I have a problem. 

I uploaded an image as an attachment. The circuit as shown in the picture. 

in this circuit the SPIM_1 module works fine, but the SPIM_2 module is not running. I use the following function to write data. 

       SPIM_2_WriteByte(0xAA);  //Write to SPIM_2 module
       while (0u == (SPIM_2_ReadTxStatus() & SPIM_2_STS_SPI_DONE)){} //wait for data send

What could be the problem? How many SPI modules can I use in this way?

Thanks

 

CY8CKIT-059 I2C-USB Bridge doesn't work

$
0
0

Hi,

I'm trying to send I2C command to the microcontroller on the CY8CKIT-059 through "Bridge Control Panel" and the KitProg, as seen on "PSOC 101: Lesson 12 I2C Transmit" video tutorial for CY8CKIT-042, but I receive only NACKs. 

Is that possible to do this operation for the CY8CKIT-059 kit?

However I've noticed that the SCL line is always on low state (voltage nearly 0V) instead of the high state (voltage nearly 4.8V) which means "Idle State" for I2C protocol. The SDA line is on high state. Observing the schematic of the CY8CKIT-059 kit, I found that between the pull-up resistors of the I2C lines and the lines there are two MOSFET (on the single chip identified as U3) that are driven by 2 of the microcontroller pins of the KitProg. Measuring the voltage, I see that the transistor between the pull-up resistor and the SDA line is ON, but the one between the SCL line and the resistor is OFF. Unfortunately I cannot measure the voltage for the pin driving these MOSFET, so I cannot determine their state and I cannot determine if the transistors' chip could be the problem.

Could this be the problem? How could I eventually fix it?

The KitProg firmware is updated with the PSoC Programmer.

Thank you,

Simone.


running AT25F2048 with psoc5

$
0
0

Hi every body.I use an electronic board that contain at25f2048(eeprom).So i want to connect psoc5lp prototype kit with this eeprom chip.I want to know how can i use eeprom component in psoc creator to write and reed in my chip?

tanks for your attention and supporting...

SSD1963 slow transfer on PSoC5LP

$
0
0

Hi,

I'm testing a SSD1963 with GraphicLCDIntf and this works, but you can see the screen building up. If i test this on an ATMega32 it's looks much faster while this is done via bitbanging. Now i also tried to do this on the PSoC5LP but can get the old fasion bitbanging running. Ofcourse i can fix this by using double buffering, but i'm curious how the hell a 8bit AVR at 11Mhz is much faster then a ARM-M3 at 24Mhz and we even use UDB!

Cheers,

Alexander

Attachments: 

How I can really make sure that my routing is perfect or fine?

$
0
0

Hi All,

I made a PSOC project that contains components from PSOC (Mixer, Amp, SAR ADC, DAC, PWM, Shift register and SPI interface). Some output components are also used (INAmp, Buffer and some filter stuff).

I let the PSOC to route freely and then, I tried to change the pins and it works fine.

Now, when I built the project. It builts successfully (Can see attached Pic).

I just wanted to know that, it is enough or, is there any other way of confirming it?

Looking forward to your suggestions.

maknight

Attachments: 

PSoC 5LP- 059 can't recognize

$
0
0

Hello,

I have a problem with PSoC CY8CKIT-059. What happens is that when I connect the PSoC to my USB port my laptop does not recognize it, however, the first time I connected it if I recognized it. I tried to update the firmware through PSoC Programmer but it does not recognize it either. Then I tried connecting it to another computer with the same result. I do not know what else I can do to solve it, the strange thing is that the first time yes I could program the PSoC and then no longer. The card has not suffered any overvoltage or blow, I think it may be a firmware problem.

Trying to use DMA to load the Shift Register FIFOs

$
0
0

I'm trying to create a logical block to take care of data transfer for a large array (several thousand) of NeoPixel type smart RGBW LEDs.  

Each LED requires 32 bits, and each bit is broken into 4 chips - a Zero is sent with one high chip, and three low chips, and a One is sent with two high and two low. I've created a state machine which "should" be able to take an array of 32b RGBW data from memory, load them into a 32b Shift Register via DMA, and shift it through the state machine to chip the bits and TX to the NeoPixels. 

The documentation for the Shift Register indicates that it's FIFOs can be loaded directly from CPU, or via DMA (which was my intent). I've tried attaching the Interrupt output from the Shift_Register to the DRQ input of a DMA module, and then tried to run the DMA wizard, but the DMA wizard doesn't show the DMA module, nor the Shift Register's FIFOs as a DMA endpoint. 

The DMA Wizard does see a Control Register, but since there is no parallel load option on the Shift Register, I can't use that to move data (other than a bit at a time with the Shift In, which wouldn't help me at all). 

I've looked for examples of using DMA or Shift Registers with DMA, and can't find any, so I'm currently stuck... 

Any help would be much appreciated. 

Dave

 

 

PWM Signal generation

$
0
0

hii guys!

          I am currently working on the application : AN62510 - Implementing State Machines with PSoC 5LP. For the examples given in this application, we get the outputs on the oscilloscope. I have connected everything according to the diagrams but I am not able to get any output signal from the PWM. They did not mention the values used inside the PWM module. How can I get the respective waveform out of it?

psoc 5

$
0
0

Hi,

I am new with Psoc5. i need help with my project, i read word 32bit in serial (by software) and convert it to parallel and send it to port2.

the first 3 bit will be address(000-111) and the other 4 bit will be the data from 32 bit and all this need send by 8 time.

I tried to do it with shift register with out success.

Regards

Reuven


PSoC 5LP Custom Verilog Module Creation

$
0
0

Hi 

I am working on psoc cy8c5868axi device. I need a custum verilog module. In the module I want to do, I need to convert 6 parallel data inputs to Serial output. Parallel data entries will not be physically present. I want to do parallel data entry with software or functions. 

Please check the picture in the attachment. I draw what I want to design there.

Serial data outputs will work synchronously with clock line. You can think of it like 6 SPI modules that use Single clock line.

I need to prepare a special verilog module for this. But I do not know how to do it. How do I make this work? Is there a document or example you can recommend?

Best Regards

 

How to Increase the Temp measurement range using TMP05 Temp Sensor Interface component?

$
0
0

Hi,

I am interested in measure temperature from -40 to 150-degree celsius. But, the component data sheet said the range is 0 to 70 degree celsius. I want to know, is there any possibility to measure outside this range using this component?

Looking forward to your reply.

Awais

PSoC 5lp Dual SPIM module don't working

$
0
0

Hi friends

I'm using PSoC 5LP CY8C5868-AXI Psoc device. I need two spi modules in Psoc5 series. But I have a problem. 

I uploaded an image as an attachment. The circuit as shown in the picture. 

in this circuit the SPIM_1 module works fine, but the SPIM_2 module is not running. I use the following function to write data. 

       SPIM_2_WriteByte(0xAA);  //Write to SPIM_2 module
       while (0u == (SPIM_2_ReadTxStatus() & SPIM_2_STS_SPI_DONE)){} //wait for data send

What could be the problem? How many SPI modules can I use in this way?

Thanks

 

PSOC 5 WITH VHDL

Can i write directly the port

$
0
0

Hi

Can I write data directly to the por? For example, can I write an 8-bit value directly to port 4? I want to write data directly to the port without using the Control Register.

I need to do the writing process very quickly.

Viewing all 264 articles
Browse latest View live


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