Now we go ahead and we call this function OK in our mean.
The first thing when you work around with then timer and counter is to forcefully stop the timer, right?
So you have an EPA to do that.
So we go ahead and add, is EPA?
Okay, so this just required and it's just such a richness.
WTT Then you perform a required configuration and then you start your little thing, right?
So that that is what we gonna do.
We forcefully stop our world.
Then we go ahead and look for an EPA to set the mood so we won't be utilizing that washed up mode,
which will be basically operating in a.
So we will be looking for the function which are available to setup the washed off.
Great.
So.
Here we have a sick, washed up dime, all right, so put washed up tamarind and washed up more, and
this is what we're going to do.
So we'll be calling this and then.
We we just need to look at the incidence rate, so this will save I was shocked them at operating and
the.
If you want to read it in a table, you also have any guy to do that.
Great to once you correctly.
Specify the mode of operation we will be ruling the country so.
Let us assume the deal that we want to add for a watchdog timer is up five second rate, so that is
the maximum delay that our application will take.
And if our application exceeds the time specified in a watchdog committee, we want to reset our system,
right?
So to calculate.
The five second delay rate of zinc operate at six, six, seven megahertz, so I was shocked where this
time operated half of the same frequency, which is two to three megabytes today.
Now, if you just dig an inverse of this, we will be getting a signal lock that it rates went up one
three three three megahertz will be the clock rate.
Now is, you may want to get the delay of one second, right?
So you just need to cancel this out.
OK, so you just need to add three three three megahertz in a numerator, right?
And to get the data of five taken, you just need to multiply that fight, right?
So this is what you need to do to get the delay of five seconds.
So we go ahead.
OK, so here we have an issue watchdog timer, nor the watchdog camera.
So this basically right the counter value into a lower register ofyour watchdog timer.
So we'll be calling this OK.
And you could clearly see the second argument which represent the values of you do Typekit remember
this?
So we go ahead and let it just declared you 32.
OK.
And let me just name just ask, All right, so this will be close.
Two three three three.
Two, one to three and then one to three.
So this is equal to three three three megahertz rate, so this is basically equals two one two three
four five six.
OK.
And then you need to also multiply by five.
This is because we want the lelio five second, right?
So this is the count value that we want to load inside our watchdog, right?
So to do this, we will be calling the load watchdog timer function right.
So this requires the first argument as a washed up timer.
And the second one is to count the value that we want to load in in register all fire.
Washed up, all right, so as you correctly set the mood one to correctly lowered the timer.
OK, the next step is to go ahead and call the start function right.
So here we have the function to start our washed-up time, right?
So we go ahead.
And then.
We just need to pass arguments.
OK, so what are we going to do first is that it just.
Hard way.
We have delivery, which is often digital.
They might you that this is the day to day rate and religious initialized to zero.
So here it is, keeping a track of number of fame.
The algorithm that we are executing, so algorithm is very simple.
We will just be adding a delay of one second, right?
And we'll be sending some to resume the temple would suffocate to death and then but soon 0d again,
do not forget to add a new line get active.
OK, and this is our simple guide to what we are doing is we are waiting for a delay of one second,
right?
And then we are sending the value of a on to consumer and then getting at them value.
So this will continues till are tempted just to a value of twenty.
Right.
And first, let us give a try where we.
Restart our watch dog time where we already know that we have laid the value of a dog count, okay,
to watch dog family, that could give us a delay of around five second, right?
So if we restart our work dog time or before five seconds, we won't be able to reset our.
System right to.
You go ahead and we look for a function that could be used to restart our watchdog tomorrow, so.
Here we have a function to restart our timer, right?
So we'll be adding it.
And then here we just need to add the instance structure, we just WD, right?
So in this specific regard, them noticing that.
Since we are restarting our watchdog timer, we continue to be able to observe the 10th.
So let's just go in and post build our application right?
So once bliss finish.
We will be selecting our application project Debug as launch on hardware.
Right, so this will automatically switch our perspective from design to debug.
You will also program my featured right so we go to a white distro menu.
And then click on this plus button, you can select the respect you call the only thing that we need
to do here is to click on this resume.
But right, so you could see WD D and it is successful and it is said this is also that's a civil right.
So it and in terms of one ticket, you could clearly see we are getting the 10 comments, even though
our team reaches to the value created and the reason we are continuously restarting our favorite tool
there is is you me do not add OK.
Restart watchdog timer.
We're here, then this.
What this will do is OK.
Or we'll just be commending the result.
So what this will do is this will be displaying the value of them for our own food.
So as soon as we read just the value of food, we'll get off to a that in the next count of the tab.
We might be taking a time more than five second write down since we are not restarting our virtual camera
and we're still cameras configured to read four or five Typekit.
It might automatically reset our system, right?
So let it just go ahead with the removal of the restart watchdog timer.
Again, we select first, we build an application project.
So once Bill is successful.
OK, we can disconnect our existing debug configuration, we go to a design, but speak to again, select
our application project debug as launch on of.
Right, so will just be clearing up our control over here.
And the only thing that we need to do is to click on this resume with the right sort of blue.
It is successful and self-test is also successful.
So our temp is going for the count of one, two, three and four.
So as soon as we.
Reached to a value three that basically mean elapsed the time off for a second rate, so offered this
since we are not restarting our water payment, so it will automatically reset diet.
System, right, and that is what is happening here, and after a dam reaches to a value of three,
we won't be able to do anything since I was never have visited our system.
So this is how we utilize a watchdog timer.
This is private towards a broken system.
So you do not need to edit or disable anything, OK by default, as you add as embarrassing system.
This will be never.