PSoC™ 4 Forum Discussions
Hello
I have two problems on my project :
1/ I'm using a DigitalComp to stop a BasicCounter when a specific amount is reached => It does not work (the output rises at 32 instead of 26)
2/ When the DigitalComp rises, I planned to generate an interrupt through a Status_Reg => It does not work (nothing change)
I searched around to find some clues but without success ....
Can you help me ?
Show LessHello,
I thought I succeed to finish my project which generates a calibrated pulse train;
Unfortunately the pulse was not correct : It has to start on the rising edge of a clock a stay high during a fixed period.....
- When done with Edge Detector it starts correctly but the width is not constant.
- When done with Pulse Converter the width is correct but it doesn't start correctly.
- When done with a Counter I got the following error : "Resource limit: Maximum number of Datapath Cells exceeded (max=4, needed=6)."
Why is is not possible to have a simple monostable in the Component Catalog ?
I though my project was so simple, I will have to do it by coding only...
Show LessI'm trying to use the CY8CKIT-049-42xx for a new small project, but I'm a bit confused by the values of VDDA and VDDD. Since the SoC is rated to run at 3.3 V max, I would assume that this is also the value of VDDA and VDDD. When looking in the templates for PSoC creator they are also created with VDDA and VDDD set to 3.3 V. However, when I power the board over the USB programmer the behavior of the system is as VDDA and VDDD have values of 5 V (Though all software of course still belive it to be 3.3 V since this is stated in the project).
Is the 3.3 V <-> 5 V discrepancy an error in the template?
Show LessHi,
Could someone guide how to increase the wakeup interval from DeepSleep mode when using watchdog timer?
In my example, I want an interval of 10 seconds before interrupt fires, but it seem to fire every second or 500 ms. Blue led toggles very frequently.
Below is the code I am using -
#include <project.h>
#define PERIOD 3200000u
static uint8 Toggle = 0u;
CY_ISR_PROTO(WDT_ISR);
CY_ISR(WDT_ISR1)
{
// Blue LED toggle to test if ISR code is running
CySysWdtClearInterrupt(CY_SYS_WDT_COUNTER0_INT);
ISR_WDT_ClearPending();
}
int main()
{
/* Setup WDT Counter 0 to generate interrupt on match */
CySysWdtWriteMode(CY_SYS_WDT_COUNTER0,CY_SYS_WDT_MODE_INT);
/* Write match count */
CySysWdtWriteMatch(CY_SYS_WDT_COUNTER0, PERIOD);
/* Enable clear of counter on match */
CySysWdtWriteClearOnMatch(CY_SYS_WDT_COUNTER0, 1u);
/* Enable WDT counter 0 */
CySysWdtEnable(CY_SYS_WDT_COUNTER0_MASK);
// Test if WDT resets...
Red_LED_Write(0u);
CyDelay(1000);
Red_LED_Write(1u);
/* Map interrupt vector to the WDT_ISR */
ISR_WDT_StartEx(WDT_ISR1);
/* Enable Global Interrupt */
CyGlobalIntEnable;
/* 200us delay to ensure WDT configuration is complete */
CyDelayUs(200);
for(;;)
{
Blue_LED_Write(Toggle);
CyDelay(200);
Blue_LED_Write(~Toggle);
CySysPmDeepSleep(); // Doesent work correct with Deep sleep
//CySysPmSleep(); // It works with Sleep mode ???
}
}
Please help!! What parameter value I need to change here?
Thanks,
Jitender
Show LessHi,
I am new to PSoC and BLE development. I saw PSoC 101 videos about Sleep mode, Timers.
But I could not figure out how to make device wakeup on button click (SW2) and sleep after say 10 seconds?
Thanks,
Jitender
Show LessHi,
Is it possible to save a PSoC Creator project under a different name so the original project can be frozen while the newly saved version is modified?
Thank you,
Nick
Show LessHi,
For my application I need to know the start and end of a connection event. I'm not able to find any such radio event in BLE_Stack.h.
However I saw an API CyBle_GetBleSsState" which can return "CYBLE_BLESS_STATE_EVENT_CLOSE". But I need these events without needing to call an API to get the current radio status.
Thanks & Regards,
Sharan
Show LessHello
I want to know there is any callback or event or status is generated at application side when all discovery is completed.
thanks in advance
Show LessHi,
I have AN91162_Creating_a_BLE_Custom_Profile which is a great start to getting a custom service running. Thanks.
However the built in services like the Heart Rate monitor use a Flags section in the characteristic definition to enable variable sized data transmission. Is there a good example of how to do this? The + button in the characteristic editor doesn't appear to allow adding Flags.
Thanks, Dave
Show LessHi,
I am working on project 009, the dynamic broadcaster, and after I load the project onto my board, it does not work. The green light that is supposed to come on does not, and debugging shows it stuck at line 509 in CyFlash.c.
Any ideas?
Thank you,
Tom
Show Less