PSoC™ 4 Forum Discussions
I am using a 4200, and have a switch on P3.5, with a falling edge interrupt. That works just great when the chip is awake. But when I put it into deep sleep, the interrupt never happens and the chip never wakes up. I'm stopping the ILO before deep sleep, and restarting the ILO on wakeup (which never happens). The IRQ should restart the IMO, and state should be retained. I have saved the state of PWMs and other UDBs, but even without any other configuration besides the single GPIO pin with the switch, it doesn't work.
Since it's deep sleep and all the clock are off, I am using transparent mode on an input pin configured as resistive pull-up, and with the input buffer enabled. I have also tried single-sync with input buffering.
Here's some code (I didn't include the obvious code to register the ISR, etc.) the ISR works fine when not in deep sleep.
CySysClkIloStop(); // turn off the ILO
CySysPmDeepSleep(); // go to DEEP sleep
CySysClkIloStart(); // turn the ILO on again (after the GPIO IRQ returns we should be here)
CY_ISR(ISR_SW_PWR_Handler)
{
SW_PWR_ClearInterrupt();
return;
}
Hello,
I have done a simple project for my daughter, it’s a Lullaby tune player but with a hack!
I attach the project zip file.
The problem is that in hibernation mode I have a consumption current of 265uA instead of 1 to 6uA and after checking all the specifications I can’t see from where the current consumption is coming from.
The values are at 2.7Volts.
So that you understand the code, the project is a PSoC 4 049-KIT (3.8mA while playing the tune) without the USB-serial interface (this part consumes 2.7mA).
It has a power switch, 2 AA 1.5V batteries, a schottky Diode (0.3 v) to protect against polarity inversion, it has a piezo disk, it has a voltage divider (1MOhm and 10KOhm pot) (consumption 2.7uA), it uses the Low Power Comparator to exit from hibernation (6uA), it uses the switch from the board to enter a configuration mode and before it enters hibernation, all pins are configured to high Z (impedance). In hibernation mode the documentation states that the current consumption is from 150nA to 1uA.
When the power is turned on, it plays a Brahms Lullaby for 5 minutes then it goes to hibernation, if it detects movement in the piezo (can be a not very hard nok to the table 1.5meters in distance) the low power comparator wakes the system from hibernation and plays for another 5 minutes, and goes to hibernation.
If you press the 049-KIT button and turn the power on it enters a configuration mode to set the sensitivity of the movement with the potentiometer, in this mode it plays a 0.5 seconds beep and goes into hibernation, then you have to turn it off and on again to go into the normal mode.
My question is did I make something wrong that isn’t optimizing the current consumption?
Currently the batteries last for 280 days on hibernation, but I would like at least to improve by a factor of 25 to the 10uA range. I would like to know how much I can push this design with PSoC.
Thank you,
Best regards,
João Nuno Carvalho
Show Less
I'm trying to debug a board that stops working mid usage and only works when power is cycled. I'm trying to debug without programming it to see where it gets stuck but it starts working again when I start debugging. Does XRES get triggered when I do this?
Show Less"Writes the value to the physical port (data output register), masking and shifting the bits appropriately."
Does this mean if I have a pin component on P0[0:2] and I call Pin_Write(0x3), P0[0] and P0[1] will be high and P0[2] wil be low?
Show LessHello all of you,
First, excuse me for my english, i'm french, and it's hard to writte something in English !
I just get some CY8C4125AXI-483...
I've got three problems ...
First i can't find the entire datasheet. I've found the Psoc 4000 Family datasheet, but not the CY8C4125AXI-483 Datasheet...
Then, i have the "miniprog3"... But wich pin are used to program this component ?
Last, does this component need extern xtal ? If yes, where does it be connect ?
Thanks for your help,
Regards from France
Show Lesshello
I am trying to work with RTC component of Psoc 4. I already done LED based project now I want to set alarm for LED using RTC component. but I am getting problem
/* Alarm Date: 29/06/2015 */ D/M/Y
Alarm Time: 15:44:00 */ ( H/M/S)
I am attaching project workspace my program is incomplete tell me atleast five mistakes so that I can reduce the error
Show LessHello Everyone
There are examples and video from Cypress. it talk about how to use one master with one slave in SPI
That's great.
In my product design, I need to use SPI master to control multi-slave.
it need to add more GPIO pin to connect SS for different device,
but SS pin is only one pin for SCB.
I have no idea about how to solve multi-slave issue by SCB
Does anyone have any idea about how to use SCB to control multi-slave ?
Thanks a lot
In the comparator example they talk about placing an Analog MUX beofr ethe opamp, so as to calibrate and swirch between normal and the calibration operation. What exactly is the use? and what is the calibration they are referring to?
Show LessHi,
I have the CY8CKIT-049-42XX prototype board, this board (with the USB-serial bridge) derives its power from the USB port (+5V DC).
I would like to change the operating voltage to 3.3V, as this makes it easier for me to connect to 3.3 VDC based modules without connecting any level shifting hardware.
Is the block scheme shown shown in the image workable ??
thanks
a
Show Less