1
00:00:00,120 --> 00:00:03,570
So let's try to understand how we use the multiple times.

2
00:00:03,760 --> 00:00:09,900
So we already have an idea that they say time might be consists of two times, so they'll be trying

3
00:00:09,900 --> 00:00:13,580
to understand all the different levels that you required to use to time.

4
00:00:14,010 --> 00:00:18,670
We will be primarily focused on goal mode of abode, the time resources.

5
00:00:18,690 --> 00:00:25,100
And as we practiced random cross-section, they will be covering how we use and interpret multiple times.

6
00:00:25,710 --> 00:00:31,390
So we have a fundamental block that's been already added to our Vivaro idea.

7
00:00:31,410 --> 00:00:32,760
So we have a micro base.

8
00:00:33,270 --> 00:00:34,710
We have and you are right.

9
00:00:34,760 --> 00:00:39,100
OK, so this we get when we add our default skip.

10
00:00:40,330 --> 00:00:42,370
That we've been using from the beginning, right?

11
00:00:42,610 --> 00:00:49,470
The only thing that you need to update is you just need to have the exact time where and by default,

12
00:00:49,480 --> 00:00:50,950
both the time are reliable.

13
00:00:51,190 --> 00:00:56,230
So we just need to make sure that the timer too is also right.

14
00:00:56,230 --> 00:01:04,150
So once this is done, we are ready to interface design with the micro please by performing an action

15
00:01:04,150 --> 00:01:04,990
occupation, right?

16
00:01:05,260 --> 00:01:10,810
So connection automation will automatically end of these are the exact time we're utilizing the same

17
00:01:10,930 --> 00:01:12,990
connect to the key people.

18
00:01:14,020 --> 00:01:14,160
Right.

19
00:01:14,170 --> 00:01:21,650
So once that is done, proceed to generate any still wrapper and then proceed for generation of a picture.

20
00:01:21,760 --> 00:01:21,950
Right.

21
00:01:22,000 --> 00:01:27,130
So I have already generated Bittu that will be going through an entire goal just to understand how we

22
00:01:27,130 --> 00:01:27,970
will be utilized.

23
00:01:28,130 --> 00:01:28,390
Right?

24
00:01:29,200 --> 00:01:35,590
So the very first thing as we enter into a right, this idea is to include all the mandatory type,

25
00:01:35,770 --> 00:01:35,970
right?

26
00:01:35,980 --> 00:01:40,130
So they required the embassy here for working with the time you put it.

27
00:01:40,180 --> 00:01:45,760
And second one is the next parameter, actually, which includes all the necessary hardware information.

28
00:01:45,800 --> 00:01:46,000
Right.

29
00:01:46,000 --> 00:01:49,600
So once this tour added, we start by adding.

30
00:01:51,160 --> 00:01:55,930
Good structure, right, so first one is a convict structure, and the next one is an Insta structure.

31
00:01:56,290 --> 00:01:58,960
Then we proceed for initialization of time.

32
00:01:58,960 --> 00:02:05,640
But so even though we are utilizing a multiple times, but we have only a single instance of a timer,

33
00:02:06,070 --> 00:02:09,820
so we do require just a single config and instant structure.

34
00:02:10,070 --> 00:02:10,900
So we proceed.

35
00:02:11,170 --> 00:02:16,840
First, we call lookup config where we pass the device that will return the config structure.

36
00:02:16,840 --> 00:02:22,960
So once we have our config structure, we'll call the integers section and the base address in initialize

37
00:02:23,260 --> 00:02:26,860
OK, and that will basically perform an initialization of our time.

38
00:02:26,890 --> 00:02:27,180
Right.

39
00:02:27,190 --> 00:02:31,530
Then we are performing a self-test, so we declare once you disable.

40
00:02:31,600 --> 00:02:35,200
And what we are doing is we are calling the service.

41
00:02:36,100 --> 00:02:36,490
OK.

42
00:02:36,850 --> 00:02:43,990
And here we are, taking the same test for a timer run rate.

43
00:02:43,990 --> 00:02:49,890
So to perform this elitist for our timer to what we could do is we could just copy this.

44
00:02:49,900 --> 00:02:51,730
Add it to right here, right?

45
00:02:52,090 --> 00:02:59,830
And then this will be naming as to zero that will be storing the to dissolve our timer 077.

46
00:02:59,830 --> 00:03:05,240
So it is one that will be storing the studios of our timer when self-destruct.

47
00:03:05,260 --> 00:03:11,800
Only thing that you need to do is to add the DMR number to do and so must you get number.

48
00:03:11,800 --> 00:03:16,820
Also serve as a timer for us to work around with a timer zero.

49
00:03:16,840 --> 00:03:20,870
We need to specify that you need to be zero for working with the timer.

50
00:03:21,040 --> 00:03:23,200
We need to specify the IED to be right, right?

51
00:03:23,410 --> 00:03:25,700
So this is how you distinguish between the timer.

52
00:03:25,720 --> 00:03:32,230
So zero is used to recognize timer one and one is used to recognize timer, right?

53
00:03:32,710 --> 00:03:38,860
So once we had this expression, what we will do is we'll just be checking that would stick to zero

54
00:03:38,890 --> 00:03:39,340
as well.

55
00:03:39,340 --> 00:03:41,740
Let's see this one.

56
00:03:42,430 --> 00:03:42,790
OK?

57
00:03:43,000 --> 00:03:46,030
Both giving us access to success.

58
00:03:46,030 --> 00:03:48,760
And if that is the case, we could see that sent this far.

59
00:03:48,770 --> 00:03:53,440
But the timer just sits this full and we'll just be mentioning that interest rate.

60
00:03:53,440 --> 00:03:57,220
So this complete the procedure for initialization of the time.

61
00:03:57,610 --> 00:04:02,140
So after we complete and initialization, we'll just be calling time running.

62
00:04:02,140 --> 00:04:07,300
A great first step when we start working around with the timer is to call the stop API, right?

63
00:04:07,660 --> 00:04:08,260
So stop.

64
00:04:08,500 --> 00:04:10,330
And how do you distinguish between timeout?

65
00:04:10,330 --> 00:04:14,710
Zero end timer one is by utilizing a unique idea, Rachel here.

66
00:04:14,770 --> 00:04:18,810
Zero is used to refered timer run and one is used to refer timeout.

67
00:04:19,120 --> 00:04:20,860
So we are stopping both the timers.

68
00:04:21,370 --> 00:04:26,080
Then we are setting up the different reset values for good, the timer, so we could clearly analyze

69
00:04:26,080 --> 00:04:27,310
the difference between that rate.

70
00:04:27,670 --> 00:04:35,670
So the reset value for our timer one will be doing during this week and that basically can lead to digital

71
00:04:36,010 --> 00:04:36,460
music.

72
00:04:36,880 --> 00:04:38,440
Similarly, if you.

73
00:04:39,520 --> 00:04:44,110
Analyze the next quote, so here what we are doing is we are setting up the delay for.

74
00:04:45,080 --> 00:04:51,590
The timer two to be five to 10 this week, and that will basically generate a leader of night, so the

75
00:04:51,590 --> 00:04:58,460
timer one will be generating an event after an interval of two second, while Timer two will be generating

76
00:04:58,460 --> 00:05:00,670
a delay after an interval of five seconds.

77
00:05:00,680 --> 00:05:00,950
Right?

78
00:05:01,250 --> 00:05:04,190
Then the next step is to correctly set up an option, right?

79
00:05:04,190 --> 00:05:10,400
So we just want to set an option so that the timers will be operating in that down mode, right?

80
00:05:10,610 --> 00:05:18,320
So we have an option zero, which serve as a variable that will stay to the current option set for a

81
00:05:18,320 --> 00:05:19,010
timer, right?

82
00:05:19,220 --> 00:05:19,670
So.

83
00:05:21,010 --> 00:05:22,210
We call a great option.

84
00:05:22,570 --> 00:05:28,980
We specify the unique IED, which is zero, and that will basically return the default option we just

85
00:05:28,990 --> 00:05:33,470
take for our timer run rate and then we are updating it so that we're able to operate in.

86
00:05:33,470 --> 00:05:36,130
And so we just need to specify this option.

87
00:05:36,140 --> 00:05:40,140
What a night with that existing option that we recommend.

88
00:05:40,540 --> 00:05:40,830
Right?

89
00:05:41,380 --> 00:05:47,980
Similarly, with then timer, do we call an option one which will be storing the default option for

90
00:05:48,640 --> 00:05:51,510
the timer to will be for storing an option when variable?

91
00:05:51,790 --> 00:05:55,390
And then we'll just be updating it says that we will our pretty remote doing it.

92
00:05:56,360 --> 00:05:57,140
Done, great.

93
00:05:57,440 --> 00:05:59,700
Then we are calling a reset for the timer's.

94
00:05:59,720 --> 00:06:04,490
OK, and then what we are going to do is first will be executing the code for our timer.

95
00:06:04,500 --> 00:06:08,190
But so we are starting our timer operation by calling a static fire.

96
00:06:08,240 --> 00:06:12,260
Here you could clearly see we are stacking an operation for our one.

97
00:06:12,590 --> 00:06:18,740
OK, we are waiting for the timer one to expire and then we are mentioning a delay of two seconds.

98
00:06:19,010 --> 00:06:22,910
And this will be generated with the help of the timer.

99
00:06:22,910 --> 00:06:27,200
And then we are calling the API for our timer to break.

100
00:06:27,890 --> 00:06:32,690
This could be recognized by understanding that the number that you mentioned over here.

101
00:06:32,990 --> 00:06:33,380
OK.

102
00:06:33,590 --> 00:06:36,150
And then we are waiting for timer to expire again.

103
00:06:36,170 --> 00:06:38,000
Exactly similar function only.

104
00:06:38,000 --> 00:06:43,220
The difference will be in an IED that we specify automatic number that we specify.

105
00:06:43,460 --> 00:06:49,580
And then he'll be mentioning that the delay of five seconds to this completes the code and just gives

106
00:06:49,580 --> 00:06:53,120
you an idea how we work with the timer.

107
00:06:53,150 --> 00:06:58,910
If you have a requirement for great, the first thing that you need to do is by default, the timer

108
00:06:58,910 --> 00:07:00,170
enables Daimler to.

109
00:07:00,560 --> 00:07:02,960
If it is not enabled, you just need to double check.

110
00:07:02,960 --> 00:07:04,700
That timer, too is also enabled.

111
00:07:05,000 --> 00:07:05,360
OK.

112
00:07:05,570 --> 00:07:12,220
And then how we distinguish between timer, run and timer to this OK timer, one will be having a gear

113
00:07:12,260 --> 00:07:17,360
Makhija number zero will give, which could be used as an IED for recognizing timer.

114
00:07:17,360 --> 00:07:23,570
One and timer two will have a command secure number of two, which could also be utilized as an IED

115
00:07:23,570 --> 00:07:29,370
for recognizing timer, and both of them will be having a set of thirty minutes.

116
00:07:29,540 --> 00:07:35,840
So the max number that you could set the reset value that you would sort of load into a timer should

117
00:07:35,840 --> 00:07:36,140
be.

118
00:07:37,110 --> 00:07:38,010
Less than.

119
00:07:39,050 --> 00:07:46,460
All requests to raise 232 minus, this makes it so this complete, the first thing that we do is after

120
00:07:46,460 --> 00:07:51,980
we complete our application is to build the project great so that we can lead and fight for us.

121
00:07:52,170 --> 00:07:56,480
Finally, that is the fight that we're going to run or not FPGA, right?

122
00:07:56,570 --> 00:08:02,990
So we select our application project right-click, then we debug us and launch on hard right.

123
00:08:04,350 --> 00:08:10,860
So once our programming is successful, OK, we just need to connect to the serial terminal, right?

124
00:08:10,860 --> 00:08:17,310
So we go to click on this plus button, select CommSec's and then the rate at which we'll be operating

125
00:08:17,310 --> 00:08:18,810
is 962, right?

126
00:08:19,440 --> 00:08:25,540
So now we just need to click on a resume button that will was display the self-test successfully.

127
00:08:25,560 --> 00:08:31,560
This basically mean we successfully initialize both our timeouts, right?

128
00:08:31,560 --> 00:08:34,000
And then we get the lead of two second.

129
00:08:34,020 --> 00:08:37,590
This is because of time away and the delay of five seconds.

130
00:08:37,770 --> 00:08:39,150
This is because of time.

131
00:08:39,450 --> 00:08:39,680
Right.

132
00:08:39,690 --> 00:08:44,040
So this is how you utilize would the timers in a cooling?
