PSoC™ 5, 3 & 1 Forum Discussions
Hi,
in my PSoC 5lp project I use a low power mode (hibernate or sleep).
If I activate the watchdog and go to sleep, the watchdog causes a reset after approx. 2 seconds (longest watchdog service delay).
I tried hibernate and sleep.
Code snippets:
CyWdtStart(CYWDT_1024_TICKS, CYWDT_LPMODE_DISABLED);
.
.
if(scd_bits.bit_500ms)
{
CyWdtClear();
}
.
.
CyPmSaveClocks();
/* Switch to Sleep Mode */
CyPmHibernate();
//CyPmSleep(PM_SLEEP_TIME_NONE, PM_SLEEP_SRC_PICU);
/* Restore clocks' configuration */
CyPmRestoreClocks();
How can I use the watchdog with low power modes without ending in a reset loop?
Show LessAfter installing to a no computer, I'm no longer able to register PSoC Creator.
The dialog shows "Network or registration server error".
Clicking "Forgot Password" or "Create new account" brings up a "Where to buy" page.
The only option is clicking "Register Later" every time PSoC creator is started.
Show LessHi
I would need help to understand why a Timer does not start to count down.
I've attached a bundle with 2 timers, the first one is one shot software only settings and works oK.
The second one, has software and Harware setting, but the code get stuck reading the counter.
Both codes are similar a exception the second one is enabled for a control register.
Thanks
Show LessHello,
In PSOC5 I have to read I2C as slave.
I wrote the following code:
/***********************************************************************/
int I2cOpen (void)
{
I2C_4_SlaveInitReadBuf ((uint8 *)readBuffer,64);
I2C_4_Start();
}
/***********************************************************************/
int I2cReadSlave ( void *pDataRead, int ReadSize)
{
int rc;
int stat;
uint8 byteCnt;
I2C_4_SlaveClearWriteStatus ();
I2C_4_SlaveInitWriteBuf ((uint8 *)pDataRead,ReadSize);
// uBalz finished write to I2c Slave pSoc a Request.
while(1)
{
stat = I2C_4_SlaveStatus() & I2C_4_SSTAT_WR_CMPLT;
if (stat !=0)
break;
vTaskDelay(50 / portTICK_PERIOD_MS);
}
byteCnt = I2C_4_SlaveGetWriteBufSize();
if (byteCnt>0)
{
printf("Send size: %d\n",byteCnt);
}
return I2C_OK;
}
Can you please tell that my code is correct ?
I2cOpen is called during init only.
Then I have a while (1) that calls I2cReadSlave for reading requests sent from external host.
Thank you,
Zvika
Show LessHello,
we have CY8C5888LTQ type and CY8C5888LTI
we want to be able to read from the .hex file that is generated to which type it is targetted to.
how can i know (from which bytes of the .hex file) if it is LTQ or LTI
Thank you
segev
Show LessHi,
I am new to the PSOC platform and have been impressed playing with the PSOC 5LP CY8CKIT-050.
Could somebody please link me to where I could download the example library project "Peak_Detector_Component.cywrk" as mentioned in the document "Peak Detection with PSoC 3 and PSoC 5LP"
Show Less
Just sharing that we wanted the chip to actually reset after DAP_ReleaseChip.
We had to enable the allow_rst_hard (bit 6) in the MLOGIC_DEBUG register to achieve this, additional to the SetAcquireMode "Reset"
SetAcquireMode "Reset"
DAP_WriteIO 0x400046E8 0x00000040
DAP_ReleaseChip
In my project with a PSoC 5LP the CyDelay functions runs 4 times too slow.For verification, I toggeled a digital output in a loop with CyDelay(100) between the output changes. Measured with an oscilloscope, the CyDelay(100) takes 392 ms.
Any ideas how to fix?
Show Less