1
00:00:00,180 --> 00:00:06,900
Let us try to modify this school so that we able to observe the seam or to reload kind of behavior.

2
00:00:07,200 --> 00:00:07,560
OK.

3
00:00:07,680 --> 00:00:12,890
And to understand that when you do that, we have strict who will be keeping this logic as it is, right?

4
00:00:12,900 --> 00:00:17,040
So this will continue to be very frank with the timer is expired or not.

5
00:00:17,250 --> 00:00:23,990
And it will also be printing the values of the timer at a regular interval of 500 millisecond rate.

6
00:00:24,690 --> 00:00:30,630
The only change that we going to do is first, the religious to see a lot of rate.

7
00:00:31,610 --> 00:00:39,680
So we are at this table over here, so the logic that we have written once we finish our specified delays,

8
00:00:39,680 --> 00:00:40,930
we are stopping our timer.

9
00:00:40,940 --> 00:00:48,110
Then we are clearing up the initial interrupt status so that basically allow us to reduce our ZEW timer.

10
00:00:48,110 --> 00:00:49,430
Is expired function right?

11
00:00:49,790 --> 00:00:55,610
Then we are mentioning the timer expired message to a user by sending the string to a console, and

12
00:00:55,610 --> 00:00:57,610
then we are again starting our time.

13
00:00:57,630 --> 00:00:57,890
All right.

14
00:00:57,900 --> 00:01:02,190
So this is what we are doing in a previous case when we are working with a lot more.

15
00:01:03,300 --> 00:01:09,540
Remember that we're in to this is still required because we want to again use the zoo time is expired

16
00:01:09,540 --> 00:01:10,230
function, right?

17
00:01:10,800 --> 00:01:16,740
The only thing that we're going to do is before we start our timer, we just need to restart our conversation

18
00:01:16,750 --> 00:01:20,460
that is happening automatically in the previous case due to an auto or more.

19
00:01:20,790 --> 00:01:26,670
But now, since we have disabled an auto loan work, so we go ahead and we look for a function that

20
00:01:26,670 --> 00:01:31,260
could be used to reload the counter value into the counter at the store.

21
00:01:31,260 --> 00:01:33,960
So we have a function referred to as a restart timer.

22
00:01:34,080 --> 00:01:40,560
So this allows us to read the timer all register and write the same value to the lower register.

23
00:01:40,800 --> 00:01:46,710
So to update the account to read the stand is just required, an instance structured as an argument.

24
00:01:46,900 --> 00:01:52,220
So what this will do is once we call this function and that instance structure as an argument, OK,

25
00:01:52,230 --> 00:02:00,090
so instance for us is what this will do is this will automatically load a timer with the value that

26
00:02:00,090 --> 00:02:00,990
you specified.

27
00:02:00,990 --> 00:02:06,620
In this case, it is stable, so it will automatically reload our timer with this value, right?

28
00:02:06,630 --> 00:02:10,450
And that is what we are expecting out of this application, right?

29
00:02:10,450 --> 00:02:10,620
Right.

30
00:02:10,620 --> 00:02:13,830
To just proceed to build an application project plus.

31
00:02:15,110 --> 00:02:17,270
So what are Bailey's finish?

32
00:02:18,270 --> 00:02:19,640
Well, we will be.

33
00:02:20,730 --> 00:02:24,630
Just selecting the configuration and click on view launch, but the great.

34
00:02:25,550 --> 00:02:29,450
So this will automatically start a process of programming.

35
00:02:30,650 --> 00:02:35,180
And then since we already collected our way, this terminal to a clear terminal.

36
00:02:36,410 --> 00:02:40,100
You just need to click on the resume button to start our application rates.

37
00:02:40,160 --> 00:02:44,360
The first two message will be timely and it's successful, then sent this successful.

38
00:02:45,450 --> 00:02:50,400
Then we get a series of stream to describe the value of a counter, then as our counter reaches to a

39
00:02:50,400 --> 00:02:56,670
value of zero, we get the delay of five second issue again, a series of the value because we successfully

40
00:02:56,670 --> 00:03:00,150
reloaded our timer register again, the low five second rate.

41
00:03:00,150 --> 00:03:08,100
So you could really observe the effect that we are getting then or two or more could be achieved a restart

42
00:03:08,100 --> 00:03:08,820
time or else.
