Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all 764 articles
Browse latest View live

Help with using Shift Register to interface with 74HC595

$
0
0

Hello, I have recently purchased the CY8CKIT-044 PSoC® 4 M-Series Pioneer Kit and having a great time learning how to do simple projects. I am trying to write a simple program to interface with a 74HC595 Shift Register to control 8 LEDS. The HC595 has a Clock input, a Serial Data Input and a Latch. I am trying to use the Shift Register in the PSoc Creater and need some help with the top schematic. I have uploaded my top schematic for review. I want to know how I can create a bursted clock that will be used to clock in the data the the HC595. I have tried to use the Clock component from the SYSTEM group and connect it to a Digital Output pin but it won't compile. If anyone could give me some suggestions of know of an example that uses an Shift Register please let me know.

 

Thanks,

Joe


PSoC 4 M-Series Pioneer Kit CY8CKIT-044 (PSoC 4200M) + LCD Keypad Shield

ADC_SAR: eoc signal to faint?

$
0
0

Im tinkering with a PSoC 4  M-Series Prototyping Kit. I want to use a ADC_SAR for one channel with hardware triggering (see picture).

To trigger an off-board component with a 10-microsecond-pulse I want to use the eoc (end of conversion) output of the ADC_SAR. I connected the eoc-signal to a puls-converter, but there is no signal coming out of it. So I connected the eoc-signal to a pin and watched it on a oszilloscope. The puls is there but it has only a width of 20 to 50 ns. I tried to connect it to other digital components in the PSoC but with no (consistent) luck. So I'm wondering how I could use the eoc.

Thanks
Thomas

Sharing data between bootloader and application

$
0
0

Hello,
I'd like to set a flag in our bootloader which then should be read by the bootloadable (=application). I can't find anything in the datasheet about this. Is there any standard way of doing it? The metadata doesn't seem to have any custom fields that can be used for things like this.

Thanks, Jacob

Measuring PWM period sometimes give wrong values

$
0
0

Hi all,

I have run this project on my CY8C42 pioneer kit.

What I'm trying to do is:

I am creating a PWM wave on Pin_1 (as shown in top schematics) and, using a wire, I'm sending that output to EXINT pin. Then, I try to measure the period of that square wave. My idea in doing that is basic. I have set up a timer which counts up when the digital input pin EXINT reads HIGH. Then, after a falling edge interrupt is detected, I take that value as the time the PWM signal stayed on (HIGH) and reset the counter. Now, the problem is that I get correct answers for PWM ranging 500-1000 ms. Also for 10-30 ms. However, If I try 100-50 ms PWM, my results are wrong. What can be the cause of this?

Here is how to get my results.

Open creator in debug mode and upload the software attached.

Press (F5) resume execution and let the program run for a couple seconds.

When the program is running, go to ISR.c, line 57.

Put a debug point on that line.

Check the value of period timer (before it is reset in the interrupt, of course.) (For "actual_PWM_period" = 100, I get "period_Timer" = 64. Does this match your results?)

You can then quit debug mode and try again with different "actual_PWM_period".

Remember that I generated the PWM with the pioneer kit and used a wire to reach that PWM to the digital input pin. You may use an external signal generator etc.

 

Can anyone help me understand the cause of this?

Thanks.

Issues In PSoC Creator Videos

$
0
0

I have been going through the tutorials for Creator. The tutorials use an older version and this may be where my problems lie; however, in lesson 4 hardware pins, I cannot keep a resistive pull up drive mode and have HW connection checked for the switch. The only drive mode that can be used is high impedance digital. After running the wire and trying to program CY8CKIT-145-40XX, I recieve error "multiple drivers on signal".

The next video seems to use items from the component catalog that are not in my catalog. The components I'm looking for are a not gate, and a toggle flip-flop. Is there another library that I need to download?

Forgive me if these are basic questions or I'm overlooking something, I'm new to using creator, hence the tutorial watching. Thank you in advance.

Help finding Clock Output Component for PSoC 4

$
0
0

Hello, I found a great article that explains how to use a clock output on the PSoC 4:

 

http://www.cypress.com/blog/psoc-sensei-blog/using-clocks-psoc-4

Scroll down to where it has​

"This is not allowed on PSoC 4 since clocks can't be used as data signals.  However, PSoC 4 has some new pin capabilities and they allow the clock to be sent directly to a pin.  In fact there are a bunch of new clocking capabilities for pins.  Right now I'll just take a look at the one that allows this function to be implemented with PSoC 4."

There you will see the component that I can't seem to find in the PSoc Creator. Can someone help me find this "Pins" component?

Thanks,

Joe

I2S DMA Tx on PSoC 4 : Simple Example

$
0
0

Is there a simple example of how to set up I2S code to Tx-only a buffer of canned data to I2S using DMA on PSoC 4200 BLE.

I found a PSoC 3 example that uses a different DMA component.

The DMA examples only offer bi-dir UART, SPI and ADC.

Many function calls, but no explanation of the required/mandatory sequences to implement a simple I2S Tx. ​So painful.


write protect flash question

$
0
0

I have a bootloadable project. 

Select project --> Bootloadable_PROJ_NAME Resources to get the Bootloadable_PROJ_NAME.cydwr window.

Using the bottom tab "Flash security".  I selected the flash space that is used by the boot loader 1..73.

I programmed the boot loader then used the Bootloader host to load the application (the bootloadable)  It all works great.

But we must be sure that the boot loader is safe, before we permanently install it into the sensor. 

Is there an easy way to verify that the flash rows I assigned to write protect are actually assigned to write-protect in the device?

 

Wake up from Deep Sleep

$
0
0

Hello,

 

I have been having concerns about the sleep modes on PSoC. How do I know if a device is ready to be put to sleep? I tried calling CySysPmSleep() but the current still reads about 18mA.

 

The current reading if I call CySysPmDeepSleep() reads 0mA (have not gotten an accurate reading but at least this seems in the ballpark of what is written in the documentation) but I am unable to wake up the device from deep sleep. If I use debugging, then the device does not seem to go into deep sleep and is back at 18mA.

 

I am trying to trigger the interrupt through an I2C slave device which sends a pulse when certain conditions are met. I can confirm that the pulse is being sent because I have read the pulse using an oscilloscope. I tried to read the pin that it goes into the PSoC but am consistently getting a value of 0V and no sign of a pulse.

 

I have also tried using a switch instead of the I2C but am still getting a problem.

 

Any help would be appreciated. Thanks.

 

GPIO not waking up from DeepSleep

$
0
0

Using EZ-BLE 4100 and GPIO P1(0) configured as pulled-down normally-low input with interrupt set to rising edge and attached to an isr component which is set to DERIVED, the device will not wakeup after going into deepsleep mode. In the debugger it works fine!

PSoC 4.0 Code segment:

    isr_SW_Enable();
    SW_ClearInterrupt();
    isr_SW_ClearPending();
    isr_SW_StartEx(&PowerOn);
    CyGlobalIntEnable;
    CySysPmDeepSleep();

I've tried changing the input to pulled up with falling edge and moving it to a different GPIO, P3(5), with no difference. Why does the same code work without any problem in the debugger but not when programmed as stand-alone?

ps I've decided to use deepsleep instead of the preferred hibernate due to the same problem I had with detecting the pin. What goes here?

Rick

 

Writing into and Reading from Flash memory

$
0
0

Hello;

I am working with CY8CKIT-042 PSOC 4 PIONEER KIT ,I am interested to store few bytes of data into Flash memory and retrieve when required ,I could successfully write data into the flash memory using the API  CySysFlashWriteRow( ),and finding a issue on how to read the stored data from Flash memory .I could not find any API for reading data from Flash memory,is there a way to read the data that has been stored into Flash memory,can someone help me out solving the issue.

Are there software interrupts on PSoC4?

$
0
0

Hi.

I would like to be able to generate software interrupts, to run code in higher priority.

Is it possible on PSoC4 (4200M) ?

I can't use UDB's for this project, so using a Control Register connected to an Interrupt component is not an option.

Thanks.

Em_EEProm for PSoC4

$
0
0

The update SP1 for PSoC Creator 4.0 lists the Em_EEProm  1.20. The datasheet still shows usage for PSoC 3, 4, and 5. I cannot find that component in the catalog for any PSoC4, am I missing something???

 

Bob

Piconet

$
0
0

Hello, I am new learning BLE and now I'm using the CY8CKIT-042_BLE PIONEER KIT, the question that I´ve

How can I create a piconet between 5 devices as slave and one master? I've read already that it's possible up to 7 connections. If someone knows about documentation that I can read, it'd be so usefull.

 

Thanks

David Caraveo


ADPCM with PRS

$
0
0

I'd like to play .wav files from the CY8C4247AZI-M485.  Application note AN2388 describes how to do this but it is marked as obsolete.  Is there a current app note that I can refer to instead?

Unable to pack the design into 4 UDBs.

$
0
0

Hello
i had the following error 

E2071: Unable to pack the design into 4 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 can't find the report file and i don't know what did i do wrong  i am allowed to use 4 timer/counters in cy8c4245 according to the datasheet and i only use 3 
 

i only had this error when i use the counter how can i view the report and how to avoid this erorr

thanks in advanced 

Attachments: 

Problem of programming the device Cy8C4146AZI-S423

$
0
0

Hello,

I developed project for CY8C4146AZI-S423 but I cannot write it to flash using SWD programmer Miniprog3, because on the form "Select Debug Target" of PSoC Creator this chip do not shown. If I try to use PSoC Programmer, the same result - fields "Device Family" and "Device" are not accessible. I try to use Bootloader made my project bootable and using SW1 connected to P0[7] and pressed it before powering the device, but "Bootloader Host" of PSoC Creator told me "Unable read data from the target device". My project developed in PSoC Creator 4.0 Update 1 and I am using PSoC Programmer 3.25.0. The previous device I used is CY8C4125AZI-483 and the device successfully programmed via Miniprog3 and Bootloader  with the same project.

Is there any way to program CY8C4146AZI-S423 device?

Thanks in advance

difference between VDDIO, VDDA and VDDD and how to connect them

$
0
0

Hi, I am using the PSoC 4M prototyping kit and there are 3 pins for power, VDDIO, VDDA and VDDD.

This post explains nicely the difference between VDDA and VDDD. http://www.cypress.com/forum/psoc-5-device-programming/vdd-vdda-vddd

But what about the difference between VDDIO and VDDD? And also, how would you go about connecting the VDD's together if i am planning to use a 3.3v battery source? If anyone has a hardware schematic on how to connect the 3 power sources, that would be very appreciated. Thank you! 

How to properly setup Cmod and Csh when using CYBLE-014008-EVAL module for CapSense application

$
0
0

I have setup a project based on the CE210291_CapSense_One_Button example code using a CY8CKIT-042-BLE pioneer kit and a CYBLE-014008-EVAL module. The configuration I need to test requires to enable a shield pin in addition to the Button pin (i.e. sensor), so I have enabled the shield tank (Csh) capacitor in CapSense->CSD_Settings (CapSense_P4_v3_10 component). Now, in the Desig_Wide_Resources->Pins window I am required to setup the modulator capacitor “CapSense:Cmod” and the shield-tank capacitor “CapSense:Csh”. I have consulted the CYBLE-014008-00 datasheet and I understand the module includes a Cmod = 2.2nF (located at port P4_0) and Ctank=10nF (located at port P4_1) , so I have assigned P4_0 port to “CapSense:Cmod” and P4_1 to “CapSense:Csh”. At this point, in the Pin tab window, under the Pin_name section I get a warning icon “Invalid pin assignment P4[0]. This pin does not support ANALOG.” for CapSense:Cmod and another warning icon “Invalid pin assignment P4[1]. This pin does not support ANALOG.” for CapSense:Csh; furthermore, port P4_0 gets assigned Pin 33 and port P4_1 gets assigned pin 34, however the CYBLE-014008-EVAL module only has 32 pins. Any comments on what is the proper way to setup this configuration for the CYBLE-014008-EVAL module?

Viewing all 764 articles
Browse latest View live


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