Does PSoC 4 has sleepTimer ? I couldn't find it in Cypress component catalog.
PSoC 4 has a watchdog timer which can be used as sleep timer.
Please refer Watchdog_PSoC4_Example project in PSoC Creator.
There is a section in TRM that discusses the WDT -
If you place the Global Signal component on your desktop, unselect
it, right click, "Find Example Project", it will error mesaging "No example
projects found". Just select OK, then when projects windows pops go
to bottom of window, it is last entry there. "Watchdog_PSoC4_Example".
Thanks for your response.
A watch dog event will reset the controller. I don't want that.
I just want a periodic interrupt source like the Sleep
PSoC 1,3,5 has sleep timer why it is not there in PSoC 4 ?
From the TRM -
The watchdog timer (WDT) circuit automatically resets the microcontroller in the event of an unexpected firmware execution
path. This timer, which is clocked by the 32-kHz ILO, must be serviced periodically in firmware to avoid a reset. Otherwise,
the microcontroller resets after a specified period of time. The WDT can also be used as wakeup source in low-power
The WDT has these features:
■ Configurable timer period (Independent/Cascaded counters)
■ Can generate an interrupt in Sleep or Deep-Sleep power mode to wake up the microcontroller
■ Can generate an interrupt in Active mode after a specified interval
■ Protection settings to prevent accidental corruption of the registers
This appears to indicate it can be used as a general timing source.
You can use Watchdog timer as a normal timer. Please refer the datasheet for more information.
I received the kits i ordered.
Now i am clear on how to use WDT as sleeptimer.
Will let you know if i see some issues.
PSoC 4 sleeptimer is more configurable than in PSoC 1,3,5 :)
Can you post how you configured it to just be a sleep timer .
Out of interest :
I have a project I need to measure some voltages and currents in a location remote to me , store them timestriped on a sd card and then wifi them to a google sheet so I can veiw this remotely . The device would need to go to sleep for an hr or so to wake up and remeasure and update google sheet .
I was using a arduino YUN to do this because it has a wifi interface I can use to remote send data easily , but it has a poor sleep mode ,it may be possible via a PSOC but I am very new to PSOC design /use .
I have a Psoc 4 kit just recently , my first one so wobbly beginnings until I get used to the system . If there is somebody with experiencee and if they may be able to direct me how to achieve this above project using the PSOC I would be happy to document it to promote what appears to be a really insanely good product.
I bought the PSOC4 to route an audio project I wish to setup but have only considered using a PSOC chip for the above because I can use a RTClock and sleep to turn ON and OFF the YUN completely .
This should help woith SDCARD side of problem -
/* Style Definitions */
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-fareast-font-family:"Times New Roman";