WDT, espcially WDT1, WDT0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I thought that WDT1, WDT0 have maximum limit period(65536). but I want to revise that maximum period (maybe 3hours)

   

if i want to use WDT with long-time period by using interrupt, how can i do?

16 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are posting here in the PSoC5 forum. For PSoC5 the max. period for WDT is 3.072s. For a PSoC4 the situation is quite different. You can set the low frequency clocks in .cydwr view, double clicking on a clock. There you can find the WDTs .

   

Explanation of WDTs and the APIs are in System Reference Guide from Creators Help menu.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

as you know, i tried to set the low frequency clocks in .cydwr view, but Maximum limit was 65536 ( related to WDT0, WDT1).

   

so I want to know improve this situation

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Would be good if you are more precise:

   

Which development board are you using (if any), which chip?

   

What are you aiming at, what will your device perform?

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

sorry. my question is quite vague..

   

I use Proc BLE chip named '6200IPU15730_RW_PLZ_IC_CPU_CYBL10X7X'

   

I'am going to develop a long period (2 years)alarm. so in this situation, so battery should be frugal.

   

and alarm system will be in deep sleep mode until 2 years, except alarm check.

   

alarm check time will be between 2 hours and 4 hours. in this situation, every 2 hours should be wake up from deep sleep mode

   

that's why I use WDT. but WDT0, WDT1 related to interrupt, maximum frequency is 2 seconds. and in case of WDT2, it's difficult for

   

me to generate interrupt. I don't know how to use.

   

and in order to know if long period(2 years) pass, I should use RTC.

   

After solving this problem, I will commnunicate with app such as Cysmart

   

That's all. and attach document I check. Thanks (Psoc technical reference manual can't upload..)

   

- sean

0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You may configure your WCO2 as shown in attached screenshot.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I don't know what you indicate. you mean WDT2? that timer can't control interrupt in API

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Believe me, it can!

   

No need to control it yourself, its automatic. Including control of the RTC.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I know that timer(WDT2) can control rtc. but can't that timer wake up from deep sleep? because of No interrupt?? 

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Wakeup from deep sleep is done with the internal interrupt controller, only a few components are running in deep sleep, no isr component, no high-speed peripheral... There is a callback from the interrupt, so you can do your own things, but do not go to deep sleep in callback.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I know that contents.. I aim at expanding period like WDT2(about 2 hours). to make battery comsumtion be frugal, my prod that I'm willing to make should be wake up count minimum

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You can configure WDT2 for >18 hours period, isn't that enough?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I know the period in WDT2 till 18 hours but I couldn't know how to control interrupt with WDT2. so I want to use WDT with interrupt.

   

i guess that simply, insert WDT2 at CySysWdtSetInterruptCallback(); and handle this function. is that right? but I couldn't get answer

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Program it (better use a quite shorter interval) and check it out for yourself.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

may i get a reference related to this problem??

   

 

   

above all, Thnaks for answering my question!!

   

 

   

- sean

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You probably red AN92584 already

   

 

   

Bob

0 Likes
Anonymous
Not applicable

thansk, finally i use short period rtc

   

 

   

- sean

0 Likes