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

Modbus interface on PSoC-4M

$
0
0

Hi!

There is a project that requires communication between a battery and the inverter attached to the battery. The battery has an in built chip for communication. I am involved in designing the inverter. I have decided to use a PSoC-4M chip for inverter control.

The communication between the battery and inverter needs to happen over Modbus and/or CAN. Modbus is compulsary, CAN may or may not be included. The problem is that I have never used any of the two up till now. After searching, I found two PSoC-4M chips that have a CAN driver. But I can't find one with a Modbus driver. Neither can I find Modbus interface IC. Like we have SCB for I2C, UART, SPI etc. don't we have one for Modbus? Please help me find a way of implementing modbus support on PSoC-4M. 

Thank you

 


PSOC 4 Internal Die Temp Sense

$
0
0

I'm looking into using Die Temperaturep [v1.0] block on a PSOC 4 CY8C4245PVS-482.

This is an extended temp PSOC 4 that I'm using for a high temp application. When I open the data sheet for this block I notice the first thing it says in the Features section is "Valid operating range from -40 degrees C to +85 degrees C".

I'm wondering if this documentation is incorrect or if the software/hardware limits the internal measuring range of the die temp measurement to max of +85 degrees C.

The data sheet of the the CY8C4245PVS-482 says the max operating temp of the junction for that micro is +105 degrees C.

I would expect the Die Temperature feature to measure up to that +105 degrees C temp and not saturate at +85 degrees C. I'm going to test this out as soon as my board arrives from our contract manufacturer.

I just want to check with Cypress that any temp readings above +85 degrees C will be in spec of the parts reading capabilities for that function of the PSOC.

I've attached a screen shot of the data sheet I'm referring to.

Thanks,

Kyle

PSoC 4 Fast GPIO?

$
0
0

Hi all,

I am working on a project that needs a fast GPIO bit-banging of around 4MHz.

Seeing 48MHz system clock on the datasheet, I thought I give CY8CKIT-049 a go.

After googling, I found that the fastest toggling can be achieved by using this (from an app note):

for(;;)
{
        CY_SYS_PINS_SET_PIN(LED__DR,LED_SHIFT);
        CY_SYS_PINS_CLEAR_PIN(LED__DR,LED_SHIFT);
}

I also changed the internal main oscillator (IMO) from 24MHz to 48MHz in PSoC Creator 4.

 

Using the above code and my oscilloscope, I found that the high-period lasted for 200ns which is way too slow for my application.

 

Forgive my ignorance, but, can someone advise me on how to get the fastest GPIO manipulation?

 

Thank you.

 

 

SPI clocking on PSOC 4 (CY8C4247AZI-M485)

$
0
0

Hi,

I added an SCB SPI channel in one of my projects on the PSOC 4200M of the CY8CKIT-043.

After some hours of debugging, I figured out that the chip does not clock out new data as it gets written into the transmit register. Data just accumulates in the FIFO.

So, my guess was to look closer at the clock for the SCB SPI block. Instead of the internal clock (8MHz with a /3 divider from HFCLK, 8 times oversampling), I added an external clock 8MHz. And indeed, now, data gets clocked out correctly.

I have compared my setup of the SCB SPI channel with the one provided in example "SCB_SpiCommMaster01". In this example, the internal clock works for me. The settings in my own project are identical.

What could the reason be that in my own project, the internal clock does not get connected (?) correctly to the SCB SPI block? I would prefer using the internal clock source instead of wasting an external clock element.

Best,

Severin

Port Acquire Failed

$
0
0

Hello, I have been using the PSoC 4 M-Series Pioneer Kit for a while without any problems. Now I'm having trouble connecting to the board. When I try to enter Debug mode it gives me an error saying the "Port Acquire Failed".  I have rebooted my laptop several times and have tried different USB ports. When I plug the board into the USB port it does power on and runs the last program I executed. 

Has anyone had this trouble or may have some suggestions on how to connect to the board, if so please let me know.

 

Thanks,

Joe

Color of Clock in PSoC in Top Design

$
0
0

Hi,

I have tried looking for documentation regarding what does the coloring of clock sources mean in PSoC Top Design.

See the image attached.

The new clock color is white but after compilation it changes to purple. What do these colors signify?

-Best Regards

ESP8266 Wifi implementation

$
0
0

hi,

I want to program the cypress kit CY8CKIT-043 to communicate with ESP8266 wifi module to get wifi connection.

I have tested with Arduino UNO board using AT commands to communicate with ESP8266 module.

I have configured the UART pins P6.0 and P6.1 pins as UART comm for this module.

I want write program for communicating with ESP8266 module on UART.

Can anyone suggest how to approach or give me some example programs.docs.

Regarding to PSoC 4 creator GUI or programmer

$
0
0

Hi;

I have observed that there is no measurement instruments in PSoC creator 4. I designed a circuit and                                                                     wanted to monitor my current and voltage, but it looks like there is no multi-meter in PSoC 4 Gui.

Is there any possibility to monitor your design or is there any other cypress product which has that functionality ?

 


Psoc Creator 4 - GPIO Interrupt - DeepSleep

$
0
0

May anyone provide me a sample of code to handle an interrupt on an external pin that coexists with DeepSleep mode?
Compared to previous versions Psoc Creator 4 has introduced some difference in this regard ?

TNX

modifying the Operating Conditions of psoc4 BLE

$
0
0

I am using CYBLE-012011-00 Chip . I want to change the operating Conditions (Operating Conditions)  like VDD and VDDR to 2.0 volt current setting is 3.3 volt .( I have included screenshot )

I want to know whether changing operating conditions can damage my chip ??.

 

 

Analog Coprocessor CharLcd component

$
0
0

I want to drive a char LCD with the CY8CKIT-048 Kit. Do the CharLCD_V_2_20 component works with the Analog Coprocessor?

 

Modbus interface on PSoC-4M

$
0
0

Hi!

There is a project that requires communication between a battery and the inverter attached to the battery. The battery has an in built chip for communication. I am involved in designing the inverter. I have decided to use a PSoC-4M chip for inverter control.

The communication between the battery and inverter needs to happen over Modbus and/or CAN. Modbus is compulsary, CAN may or may not be included. The problem is that I have never used any of the two up till now. After searching, I found two PSoC-4M chips that have a CAN driver. But I can't find one with a Modbus driver. Neither can I find Modbus interface IC. Like we have SCB for I2C, UART, SPI etc. don't we have one for Modbus? Please help me find a way of implementing modbus support on PSoC-4M. 

Thank you

 

PSOC 4 - ARM GCC 4.9 not pushing all ISR's working registers

$
0
0

Hi,

I was wondering why my "ARM GCC 4.9-2015-q1-update" does not push all ISR's working registers onto the stack.

This obviously causes any kind of random behavior and painstaking debug. I have not seen this behavior before on any other compiler. Below a code snipped of one of my ISRs (r2 and r3 are not pushed onto the stack, but used in the ISR; they are of course also used in the main program).

0x00000CA0 <PWM_Drive_ISR>:
 287: * Return: 
 288: *  void
 289: *
 290: *******************************************************************************/
 291: CY_ISR(PWM_Drive_ISR)
 292: {   
0x00000CA0 push    {r4, r7, lr}
0x00000CA2 sub    sp, #c
0x00000CA4 add    r7, sp, #0
 293:     uint16 curTimeStamep = 0;  
0x00000CA6 adds    r3, r7, #6
0x00000CA8 movs    r2, #0
0x00000CAA strh    r2, [r3, #0]
 294:     uint16 curPeriod = 0;
0x00000CAC adds    r3, r7, #4
0x00000CAE movs    r2, #0
0x00000CB0 strh    r2, [r3, #0]

What am I missing here? I cannot believe this is a bug, but have no other explanation. Is there any other version of GCC that is available for update in PSOC Creator 4.0 (4.0.0.432).

Best,

Severin

CapSense Proximity Sensor

$
0
0

I'm currently looking to use CapSense in a proximity sensing application. The hoped for range is 30 cm with a 100 Hz sample rate.

Looking at old Research, if you use a Capaciflector it may be possible to extend the range of the sensor. Basically behind the sensor you place another sensor (with a further ground plane behind that one) and at the same time send the same excitation signal to both sensors.

(It seems that it may be possible using the PSOC Mutual Capacitance mode (CSX) to send the same signals to both sensors synchronously) <- Not true.

Driving the second sensor using the  Shield Signal seems like one way to emulate this technology (Synchronous with sensor signal).

On another level, we may build our own sensor, just to confirm how effective this is. Does a proximity sensor shield exist which uses the above multi-layer sensor idea, exist?

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


4000s SWDIO/SWCLK pins

$
0
0

Hi,

 

apologies if this this has been answered before, my search returned nothing.

I am totally new to PSOC and just wanted a quick answer: I need two i2C interfaces for the project, hence 4000s pre-selected as cheapest but wanted to be sure that SWD interface can be assigned to any GPIO i.e. as a pure 'addition' to these i2c ports.

Regards,

Alex

SPI clocking on PSOC 4 (CY8C4247AZI-M485)

$
0
0

Hi,

I added an SCB SPI channel in one of my projects on the PSOC 4200M of the CY8CKIT-043.

After some hours of debugging, I figured out that the chip does not clock out new data as it gets written into the transmit register. Data just accumulates in the FIFO.

So, my guess was to look closer at the clock for the SCB SPI block. Instead of the internal clock (8MHz with a /3 divider from HFCLK, 8 times oversampling), I added an external clock 8MHz. And indeed, now, data gets clocked out correctly.

I have compared my setup of the SCB SPI channel with the one provided in example "SCB_SpiCommMaster01". In this example, the internal clock works for me. The settings in my own project are identical.

What could the reason be that in my own project, the internal clock does not get connected (?) correctly to the SCB SPI block? I would prefer using the internal clock source instead of wasting an external clock element.

Best,

Severin

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

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.

Viewing all 761 articles
Browse latest View live