1
00:00:00,060 --> 00:00:04,050
Now we go ahead and we call this function OK in our mean.

2
00:00:05,160 --> 00:00:11,520
The first thing when you work around with then timer and counter is to forcefully stop the timer, right?

3
00:00:11,520 --> 00:00:13,290
So you have an EPA to do that.

4
00:00:13,290 --> 00:00:16,060
So we go ahead and add, is EPA?

5
00:00:16,170 --> 00:00:19,180
Okay, so this just required and it's just such a richness.

6
00:00:19,200 --> 00:00:25,200
WTT Then you perform a required configuration and then you start your little thing, right?

7
00:00:25,200 --> 00:00:26,930
So that that is what we gonna do.

8
00:00:27,240 --> 00:00:29,920
We forcefully stop our world.

9
00:00:30,480 --> 00:00:37,980
Then we go ahead and look for an EPA to set the mood so we won't be utilizing that washed up mode,

10
00:00:38,340 --> 00:00:40,510
which will be basically operating in a.

11
00:00:41,100 --> 00:00:46,410
So we will be looking for the function which are available to setup the washed off.

12
00:00:46,610 --> 00:00:46,880
Great.

13
00:00:46,890 --> 00:00:47,310
So.

14
00:00:48,290 --> 00:00:53,930
Here we have a sick, washed up dime, all right, so put washed up tamarind and washed up more, and

15
00:00:53,930 --> 00:00:55,230
this is what we're going to do.

16
00:00:55,250 --> 00:00:58,790
So we'll be calling this and then.

17
00:01:00,080 --> 00:01:08,230
We we just need to look at the incidence rate, so this will save I was shocked them at operating and

18
00:01:08,470 --> 00:01:08,570
the.

19
00:01:09,810 --> 00:01:13,530
If you want to read it in a table, you also have any guy to do that.

20
00:01:13,590 --> 00:01:15,240
Great to once you correctly.

21
00:01:16,240 --> 00:01:19,900
Specify the mode of operation we will be ruling the country so.

22
00:01:20,880 --> 00:01:26,970
Let us assume the deal that we want to add for a watchdog timer is up five second rate, so that is

23
00:01:26,970 --> 00:01:29,460
the maximum delay that our application will take.

24
00:01:29,790 --> 00:01:36,690
And if our application exceeds the time specified in a watchdog committee, we want to reset our system,

25
00:01:36,690 --> 00:01:36,900
right?

26
00:01:36,900 --> 00:01:37,770
So to calculate.

27
00:01:38,700 --> 00:01:44,780
The five second delay rate of zinc operate at six, six, seven megahertz, so I was shocked where this

28
00:01:44,940 --> 00:01:49,500
time operated half of the same frequency, which is two to three megabytes today.

29
00:01:49,530 --> 00:01:54,600
Now, if you just dig an inverse of this, we will be getting a signal lock that it rates went up one

30
00:01:54,600 --> 00:01:56,840
three three three megahertz will be the clock rate.

31
00:01:57,190 --> 00:02:00,030
Now is, you may want to get the delay of one second, right?

32
00:02:00,030 --> 00:02:01,740
So you just need to cancel this out.

33
00:02:01,830 --> 00:02:06,350
OK, so you just need to add three three three megahertz in a numerator, right?

34
00:02:06,360 --> 00:02:10,970
And to get the data of five taken, you just need to multiply that fight, right?

35
00:02:10,980 --> 00:02:15,360
So this is what you need to do to get the delay of five seconds.

36
00:02:15,360 --> 00:02:16,410
So we go ahead.

37
00:02:17,570 --> 00:02:22,780
OK, so here we have an issue watchdog timer, nor the watchdog camera.

38
00:02:22,880 --> 00:02:29,030
So this basically right the counter value into a lower register ofyour watchdog timer.

39
00:02:29,030 --> 00:02:30,870
So we'll be calling this OK.

40
00:02:31,980 --> 00:02:38,160
And you could clearly see the second argument which represent the values of you do Typekit remember

41
00:02:38,160 --> 00:02:38,430
this?

42
00:02:38,880 --> 00:02:42,660
So we go ahead and let it just declared you 32.

43
00:02:43,150 --> 00:02:43,480
OK.

44
00:02:43,510 --> 00:02:46,540
And let me just name just ask, All right, so this will be close.

45
00:02:46,560 --> 00:02:47,640
Two three three three.

46
00:02:48,610 --> 00:02:52,540
Two, one to three and then one to three.

47
00:02:52,760 --> 00:02:59,620
So this is equal to three three three megahertz rate, so this is basically equals two one two three

48
00:02:59,620 --> 00:03:00,730
four five six.

49
00:03:01,210 --> 00:03:01,580
OK.

50
00:03:01,600 --> 00:03:04,360
And then you need to also multiply by five.

51
00:03:04,420 --> 00:03:07,240
This is because we want the lelio five second, right?

52
00:03:07,240 --> 00:03:12,380
So this is the count value that we want to load inside our watchdog, right?

53
00:03:12,400 --> 00:03:17,940
So to do this, we will be calling the load watchdog timer function right.

54
00:03:17,950 --> 00:03:21,400
So this requires the first argument as a washed up timer.

55
00:03:21,400 --> 00:03:26,620
And the second one is to count the value that we want to load in in register all fire.

56
00:03:27,540 --> 00:03:33,720
Washed up, all right, so as you correctly set the mood one to correctly lowered the timer.

57
00:03:33,890 --> 00:03:41,220
OK, the next step is to go ahead and call the start function right.

58
00:03:41,230 --> 00:03:45,860
So here we have the function to start our washed-up time, right?

59
00:03:45,870 --> 00:03:46,860
So we go ahead.

60
00:03:48,020 --> 00:03:49,010
And then.

61
00:03:50,190 --> 00:03:52,190
We just need to pass arguments.

62
00:03:52,920 --> 00:03:56,550
OK, so what are we going to do first is that it just.

63
00:03:57,760 --> 00:03:58,630
Hard way.

64
00:04:00,030 --> 00:04:02,830
We have delivery, which is often digital.

65
00:04:03,170 --> 00:04:09,210
They might you that this is the day to day rate and religious initialized to zero.

66
00:04:09,450 --> 00:04:12,750
So here it is, keeping a track of number of fame.

67
00:04:13,320 --> 00:04:16,800
The algorithm that we are executing, so algorithm is very simple.

68
00:04:17,130 --> 00:04:20,100
We will just be adding a delay of one second, right?

69
00:04:21,010 --> 00:04:32,110
And we'll be sending some to resume the temple would suffocate to death and then but soon 0d again,

70
00:04:32,110 --> 00:04:34,280
do not forget to add a new line get active.

71
00:04:34,310 --> 00:04:42,970
OK, and this is our simple guide to what we are doing is we are waiting for a delay of one second,

72
00:04:43,030 --> 00:04:43,450
right?

73
00:04:43,480 --> 00:04:48,600
And then we are sending the value of a on to consumer and then getting at them value.

74
00:04:48,610 --> 00:04:53,200
So this will continues till are tempted just to a value of twenty.

75
00:04:53,250 --> 00:04:53,520
Right.

76
00:04:53,530 --> 00:04:56,050
And first, let us give a try where we.

77
00:04:57,150 --> 00:05:04,280
Restart our watch dog time where we already know that we have laid the value of a dog count, okay,

78
00:05:04,280 --> 00:05:08,540
to watch dog family, that could give us a delay of around five second, right?

79
00:05:08,550 --> 00:05:14,210
So if we restart our work dog time or before five seconds, we won't be able to reset our.

80
00:05:15,340 --> 00:05:16,420
System right to.

81
00:05:17,420 --> 00:05:23,510
You go ahead and we look for a function that could be used to restart our watchdog tomorrow, so.

82
00:05:24,940 --> 00:05:28,090
Here we have a function to restart our timer, right?

83
00:05:29,240 --> 00:05:30,410
So we'll be adding it.

84
00:05:31,430 --> 00:05:36,690
And then here we just need to add the instance structure, we just WD, right?

85
00:05:36,710 --> 00:05:40,370
So in this specific regard, them noticing that.

86
00:05:42,000 --> 00:05:47,840
Since we are restarting our watchdog timer, we continue to be able to observe the 10th.

87
00:05:48,390 --> 00:05:51,660
So let's just go in and post build our application right?

88
00:05:53,180 --> 00:05:54,890
So once bliss finish.

89
00:05:56,610 --> 00:06:01,290
We will be selecting our application project Debug as launch on hardware.

90
00:06:01,370 --> 00:06:05,460
Right, so this will automatically switch our perspective from design to debug.

91
00:06:05,970 --> 00:06:09,810
You will also program my featured right so we go to a white distro menu.

92
00:06:10,990 --> 00:06:17,320
And then click on this plus button, you can select the respect you call the only thing that we need

93
00:06:17,320 --> 00:06:19,960
to do here is to click on this resume.

94
00:06:19,960 --> 00:06:27,160
But right, so you could see WD D and it is successful and it is said this is also that's a civil right.

95
00:06:27,160 --> 00:06:32,830
So it and in terms of one ticket, you could clearly see we are getting the 10 comments, even though

96
00:06:32,830 --> 00:06:41,200
our team reaches to the value created and the reason we are continuously restarting our favorite tool

97
00:06:41,440 --> 00:06:44,240
there is is you me do not add OK.

98
00:06:44,800 --> 00:06:46,330
Restart watchdog timer.

99
00:06:46,330 --> 00:06:47,620
We're here, then this.

100
00:06:47,620 --> 00:06:49,970
What this will do is OK.

101
00:06:50,110 --> 00:06:51,790
Or we'll just be commending the result.

102
00:06:52,240 --> 00:06:56,620
So what this will do is this will be displaying the value of them for our own food.

103
00:06:56,770 --> 00:07:03,340
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.

104
00:07:04,120 --> 00:07:10,030
We might be taking a time more than five second write down since we are not restarting our virtual camera

105
00:07:10,030 --> 00:07:14,320
and we're still cameras configured to read four or five Typekit.

106
00:07:14,620 --> 00:07:17,680
It might automatically reset our system, right?

107
00:07:17,680 --> 00:07:21,790
So let it just go ahead with the removal of the restart watchdog timer.

108
00:07:22,630 --> 00:07:25,840
Again, we select first, we build an application project.

109
00:07:27,120 --> 00:07:28,830
So once Bill is successful.

110
00:07:30,110 --> 00:07:37,740
OK, we can disconnect our existing debug configuration, we go to a design, but speak to again, select

111
00:07:37,760 --> 00:07:40,900
our application project debug as launch on of.

112
00:07:42,050 --> 00:07:45,410
Right, so will just be clearing up our control over here.

113
00:07:46,190 --> 00:07:50,420
And the only thing that we need to do is to click on this resume with the right sort of blue.

114
00:07:50,870 --> 00:07:53,800
It is successful and self-test is also successful.

115
00:07:53,810 --> 00:07:58,990
So our temp is going for the count of one, two, three and four.

116
00:07:59,000 --> 00:08:00,110
So as soon as we.

117
00:08:01,260 --> 00:08:07,420
Reached to a value three that basically mean elapsed the time off for a second rate, so offered this

118
00:08:07,440 --> 00:08:12,690
since we are not restarting our water payment, so it will automatically reset diet.

119
00:08:13,770 --> 00:08:19,280
System, right, and that is what is happening here, and after a dam reaches to a value of three,

120
00:08:19,290 --> 00:08:24,450
we won't be able to do anything since I was never have visited our system.

121
00:08:24,810 --> 00:08:27,180
So this is how we utilize a watchdog timer.

122
00:08:27,210 --> 00:08:29,340
This is private towards a broken system.

123
00:08:29,670 --> 00:08:34,920
So you do not need to edit or disable anything, OK by default, as you add as embarrassing system.

124
00:08:35,280 --> 00:08:36,260
This will be never.
