PSoC™ 4 Forum Discussions
I have a project running on PSCO 4200 that goes into deep sleep and is woken by change in GPIO pin.
When I run the code , it appears to sleep for a while and then wakes up (but not by GPIO pin change).
The code starts a timer, and then stops the time when done and puts the device back in deep sleep mode.
However, once the device is woken it appears the timer never stops and it keeps getting continuously woken by the time (I put a break point at the ISR and it is going directly to it).
I have a Global Signal - System Power Interrupt placed in the design but do not use the watchdog.
Firstly, is there a register that indicates what caused the wake from deep sleep ?(I am sure I saw this in a document for hibernate but not sure about deep sleep).
What would cause the timer interrupt to not be cleared.
CY_ISR(TimerINT){
Timer_ReadStatusRegister();
Timer_Flag = 1;
}
void StartTimer(uint32 tdelay){ //used in "processLF()" routine when woken
uint32 period = tdelay;
Timer_WritePeriod(period);
Timer_WriteCounter(period);
Timer_Enable();
}
void StopTimer(void){ //called just before deep sleep when leaving "processLF()"
Timer_Stop();
Timer_Flag = 0;
}
main loop
for(;;){
CySysPmDeepSleep();
processLF();
}
Show LessHi All,
I am not sure if all of you are aware of this. You need to configure Vref to "Internal 1.024 V bypassed" from the drop-down list in SAR ADC to obtain 1Msps of conversion rate. Also averaging option has to be disabled.
One important point to be noted is that to obtain exact 1Msps sampling rate, the IMO should be configured to be 36 MHz.
Regards,
Asha
Show LessWhy am I getting this error (attached), all the pins are on the same port:
I am using a Galaxy Note 3 (Samsung says "Bluetooth 4 (Low Energy)" in the specs). CySmart sees the Phone Alert Handler (running on the BLE Pioneer Kit- CY8CKIT-042-BLE) but when I tap that device in CySmart, I get a message: "Cannot connect to the device".
I am a BLE noob. Where do I start?
Show LessHello, guys, I'm trying to project a VDAC and change the voltage across a pin using the capsense. It's a easy job to implement this using psoc 5 but the psoc 4 doesn't have the vdac, so, I can use the IDAC and a external resistor to make the VDAC using the psoc 4. But unfortunately the psoc 4 don't allow me to use IDAC and capsense in the same design. Someone knows if the Capsense have a internal IDAC and if I can project this "VDAC" variable with the capsense ?
Show LessI have some strange problem with a CY8C4245LQI-483. I made a program with a slider and a pwm output. It works quite well but after some time using it (put power on and off, use slider,....) it suddenly doesn't work anymore. When i veryfy again the program it says that one block is different. How can this be?
Thanks for your help
Jakob
Show LessI am using SW2 to switch between power modes and then measure current in each mode. But I am not getting desired current in each mode.
Please help with the problem.
Show LessI write for PSoC BLE demo project.
Launches android smartphone CySmart.
I getting data from the PSoC on a smartphone.
Everything works.
I compile Qt demo program "Bluetooth Low Energy scanner example".
Writing on her phone.
This program NOT sees PSoC.
I have a design that uses a thermistor with an ADC SAR and AmuxSeq UDB on a PSOC 4 BLE.
Trying to use the new EZ-BLE for a project. As the CYBLE-022001-00 does not have an AMUXSeq UDB, is there a sample design on how to implement a similar set of functionality? There are plenty of GPIOs, but need to use the SAR on multiple pins.
Any ideas would be appreciated.
Show Less