PSoC™ 5, 3 & 1 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello,
Questions:
- What could cause the PSOC5 to heat up and cause the 3.3v bus to modulate a square wave?
- Should I power the PSOC5 from whatever voltage Vdda has running to it?
Background:
I'm working on a custom board that uses a PSOC5 68 pin package. The design has the PSOC5 running of 3.3V, Vdda at 5v and most of the other Vddio pins are set to 3,3v. If I power the PSOC5 from the miniprog, it shows up in psoc creator and there is no smoke. If I then plug my benchtop power supply in and then reconnect the miniprog, the psoc doesn't shows up. If I then disconnect the benchtop supply and hook up the miniprog like in the first case, the psoc never shows up. When I solder up just the power supply part of my circuit, the signal looks good with no ripple. The rise time is about 0.055V/us.
To continue with the oddness, if I power a complete board (power circuit + psoc5) from the bench, there is a square wave on my 3.3v lines and the psoc5 gets to hot to touch.
I'm running out of boards to solder up so I thought I'd get a few opinion on this before burning more chips up.
Show LessHi,
is it possible to design a band stop filter with 50 hz on psoc using a filter block?
I tried but in pratical didn't work...
Thanks.
Regards,
Romil A.
Show LessHello,
I am looking for documentation regarding the use of rtcAPI in PSoC1 and the modifications required for adding an external crystal oscillator to the PSoC1 CY3210 dev board. I have done it already, and I use it in one of my projects. However, I cannot find the documentation regarding these aspects on the Cypress site. Can someone help me, please?
Regards,
George
Show LessHi all,
I´m doing a very easy project with the 5LP kit and Creator 3.3, where i need to generate a PWM signal with 10ms period (and a tiny positive duty cycle), no problems if i compile the project in Debug Mode, i see what i expect on the logic analyzer, but if i change the mode to Release i get a 1.28 ms period.
Does Release mode do any optimizations on the code? I'm only starting the PWM Component on the main loop, nothing else. I have not access to an oscilloscope, i guess the logic analyzer is enough for this. Hope this is not a n00b error.
Attached two screenshots and the easy project.
Thanks in advance
Carlos
Show LessHi All,
I'm trying to design a USB touch screen interface that will be detected by windows 7 without any extra drivers.
I have found a MS site detailing the required HID descriptor, which I have copied into Creator. Windows sees the device and enables the calibrate options and flicks etc.
But I have never been able to figure out how to convert an HID descriptor into the byte array that matches the descriptor. Can anyone assist me?
Thank you,
Errol
Hi,
Presently i am designing a band-pass filter on Psoc using only its op-amps, resistors and capacitors i am using from outside circuitary of my own.
I also have to produce a voltage reference source (of voltage approx 1.7-1.8 v) for which i am using a voltage source given (.256v) and amplifying it with a non-inverting amplifier with gain of 7.
I am trying this for past a month but unable to do so.
please help.
Thank you
PS: i am attaching the first file as the snapshot of what i did on psoc
Show LessHello Every One,
I want to know that can i make SPI Communication by using CY8C5888LTI-LP097 chip even if it has no spi dedicated lines?
Looking forward for your reply!
Best Regards
maknight
I am trying to implement a comparative analysis of subjected control methods for my bi-directional dc-dc converter. I came to know about opamp implementation through an example from document AN76439(related image is attached).
But, there are two other methods to complete the same task without using op-amps i.e. FPGA and DSP(TMS320C200 by TI). I want to implement both of these methods on PSoC independently in order to check their performance.
So, my question is that, is there any project or doc related to implementation of feedback-compensation control method using MCU(ARM-Cortex) and using UDB's or Verilog.
Hi there,
I am facing weird problem with my Application on PSoC 5 based hardware. This application is based on FreeRTOS, and application contains 128×64 kind of monochromatic LCD (Graphical LCD), having controller like ks0107.
We are attaching:
1. Application program for CY8CKIT-050.
2. Application program for our Hardware. (Only with different PIN usage)
The problem is that if we run this program with the PIN used for CY8CKIT-050, it runs smoothly and complete every task as desired with no problem at all. But if we only change the MCU PINs as used in our Hardware and program the Hardware MCU with same program, application runs to certain point and then hang. We tried debug mode and found out that after running for some time application goes to :
CY_ISR(IntDefaultHandler)
{
while(1)
{
/***********************************************************************
* We must not get here. If we do, a serious problem occurs, so go
* into an infinite loop.
***********************************************************************/
}
}
which is in Cm3Start.c. And at this point application stays in hanged state.
Here please note that this only happens if we used the same program in our Hardware. But if we use it in Kit (CY8CKIT-050), it runs completely fine without any fault.
We would like to also share that we have used FreeRTOS prior to this application, and we have successfully built applications with FreeRTOS.
Will you please check this files and see if we have made any mistake anywhere?
Show LessGreetings, I have been trying to get my PSoC5LP to communicate with a Freescale MPL115A Barometer via a SPI 4 wire bus. I have encountered a problem that I am having trouble resolving. I will list the details.
SETUP:
- Cypress CYC8Kit-050
- Freescale MPL115A Barometer on Breakout board Appnote: http://cache.freescale.com/files/sensors/doc/app_note/AN3785.pdf?fpsp=1&WT_TYPE=Application%20Notes&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation&fileExt=.pdf
- Breakout board is plugged into CYkit proto board, all I/O connected to Port [0]
PROBLEM:
Data is being sent out from SPI master (PSoC5LP), MPL115A responds to data read and sends data back to SPI master.
Data displayed on LCD for MSB is 00, Data for LSB is 00 should be other than zero, like 0x7E, 0xC0 See images attached for DSO data capture and LCD readout. The blue trace is data from the SPIM, yellow trace is data from MPL115A.
At this point, I am not sure if I am reading the data from the MPL115 device, or is the problem with the way I am trying to display the data. I have attached the build bundle and my code is below:
/* ========================================
*
* Copyright ConCon Engineering LLC, 2015
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF ConCon Engineering LLC.
*
* Purpose of this design is to communicate to MPL115 Barometer and Temp sensors via SPI bus
* Barometer and temp is used for gas sensor data correction
* ========================================
*/
/* MPL115 BreakOut ------------------CY8CKIT-050
SDN ------------------P0[3]
CSN ------------------P0[2] CS_n
SDO ------------------P0[1] MISI
SDI ------------------P0[0] MOSI
SCK ------------------P0[5] SCLK
GND ------------------System conn pin P6 - 7
VDD ------------------System conn pin P6 - 3
*/
/* MPL115 Memory Map
For reads must set bit 7 to 1. So a read will be 0x8X ie. Tadc_MSB 0x82
Address Name Description Size (bits)
0x00 Padc_MSB 10-bit Pressure output value MSB 8
0x01 Padc_LSB 10-bit Pressure output value LSB 2
0x02 Tadc_MSB 10-bit Temperature output value MSB 8
0x03 Tadc_LSB 10-bit Temperature output value LSB 2
0x04 a0MSB a0 coefficient MSB 8
0x05 a0LSB a0 coefficient LSB 8
0x06 b1MSB b1 coefficient MSB 8
0x07 b1LSB b1 coefficient LSB 8
0x08 b2MSB b2 coefficient MSB 8
0x09 b2LSB b2 coefficient LSB 8
0x0A c12MSB c12 coefficient MSB 8
0x0B c12LSB c12 coefficient LSB 8
*/
#include <project.h>
#include <cylib.h>
#include <stdio.h>
//======================//
// Macros //
//======================//
#define Wait(x) // Just for better reading
#define FALSE 0 // Boolean false
#define TRUE !FALSE // and true
#define forever 1 // I like that
//======================//
// Global Variables //
//======================//
uint8 BitStuff = 0x00u;
/* *******************
MPL115A1 Functions
**********************/
/*******************************************************************************
* Function Name: ControlReg and ControlReg1_Write
********************************************************************************
* Function enables hardware to display LED value of status register
* Parameters led
********************************************************************************/
void ControlReg1_Write (uint8 ledZ); // declaring the function
void ControlReg_Write (uint8);
/*****************************************************************************
/ SPI Master Read and write function (This function calls SPIM_WriteTxData
/ and SPIM_ReadRxData functions
******************************************************************************/
void CyDelay(uint32 milliseconds);
int main()
{
/************************
Local variables
*************************/
//uint8 MyData;
uint16 Tadc_MSB = 0x00; //Store MSB of SPI Rx data
uint16 Tadc_LSB = 0x00;
uint8 GoBit = 0x00; //Press SW3 to force main to loop once else it waits
CyGlobalIntEnable; /* Always enable global interrupts. */
//********************************************************************
// This section of code is just for debug, remove when not needed
//********************************************************************
uint8 ledZ = 0x01; //code debug
ControlReg1_Write(ledZ);
CyDelay(250);
ledZ = 0x00;
ControlReg1_Write(ledZ);
CyDelay(250);
ledZ = 0x01;
ControlReg1_Write(ledZ);
CyDelay(250);
ledZ = 0x00;
ControlReg1_Write(ledZ);
CyDelay(250);
//*******************************************************************
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
// Start the LCD and Display
LCD_Start ();
LCD_Position(0u,0u);
LCD_PrintString("SPI Master");
LCD_Position(1u,0u);
LCD_PrintString("Test Code");
CyDelay(2000);
ledZ = 0x01;
ControlReg1_Write(ledZ);
CyDelay(1000);
//Start the SPI master component
// while(!(SPIS_ReadTxStatus() & SPIS_STS_SPI_DONE)); // SPIS_STS_SPI_DONE from function
SPIM_Start();
//while(forever) //This loops forever, part of design template
do //start of do while loop
{
while(SPIM_GetTxBufferSize()) Wait(); // Wait until all bytes transmitted
SPIM_WriteTxData(0x24u); // MPL115A Start Conversion
SPIM_WriteTxData(BitStuff); //MPL115 expects 1 byte all zeros
CyDelay(5);
/* Must write address to MPL115, then read Rx data buffer */
while(SPIM_GetTxBufferSize()) Wait(); // Wait until all bytes transmitted
SPIM_WriteTxData(0x84u); // MPL115A MSB of Temp data
SPIM_WriteTxData(BitStuff);
while(SPIM_GetRxBufferSize())
Tadc_MSB = SPIM_ReadRxData(); // Read the temp MSB data in Rx buffer
while(SPIM_GetTxBufferSize()) Wait(); // Wait until all bytes transmitted
SPIM_WriteTxData(0x86u); // MPL115A LSB of Temp data
SPIM_WriteTxData(BitStuff);
while(SPIM_GetRxBufferSize())
Tadc_LSB = SPIM_ReadRxData(); // Read the temp LSB data in Rx buffer
LCD_Position(1u,0u);
LCD_PrintString("Tadc_LSB ");
LCD_PrintHexUint16(Tadc_LSB);
LCD_Position(0u,0u);
LCD_PrintString("Tadc_MSB ");
LCD_PrintHexUint16(Tadc_MSB);
ledZ = 0x02;
ControlReg1_Write(ledZ);
CyDelay (1000);
ledZ = 0x03;
ControlReg1_Write(ledZ);
CyDelay (1000);
GoBit = StatusReg_Read(); //Read sw3 (GoBit) If true repeat loop
} while (GoBit);
}
// [] END OF FILE */
Appreciate any help you can provide. At this stage I am in the learning process, so I am sure the problem will be a bonehead thing on my part.
Show Less