1
00:00:00,060 --> 00:00:05,130
So let's consider this simple application, what we're going to do is DTC will be generating a delay

2
00:00:05,400 --> 00:00:07,370
for UPI.

3
00:00:07,470 --> 00:00:09,720
OK, so we'll be utilizing in my OLED.

4
00:00:10,020 --> 00:00:12,160
And then we'll to having a blinking effect.

5
00:00:12,360 --> 00:00:14,820
So this will give us an idea how we utilize that.

6
00:00:14,820 --> 00:00:16,450
UGC In an actual scenario today.

7
00:00:16,980 --> 00:00:23,700
So when we consider the basic lock design flaw, I think, OK, we will be nibbling DTC over, which

8
00:00:23,910 --> 00:00:24,750
will be utilizing.

9
00:00:24,750 --> 00:00:28,650
And one more thing that we require is the GPI OLED rate.

10
00:00:28,650 --> 00:00:32,600
So if you go to an email configuration, there are very reliable.

11
00:00:32,830 --> 00:00:35,100
So there you have a duplicate rate.

12
00:00:35,100 --> 00:00:39,480
So this will automatically select or enable all the fifty four pins that we have.

13
00:00:39,760 --> 00:00:40,110
OK.

14
00:00:40,350 --> 00:00:44,220
And we already know that we have an elite connector set, right?

15
00:00:44,250 --> 00:00:45,330
This is what we're going to do.

16
00:00:45,750 --> 00:00:54,320
So once you configure sync pricing system, OK, just generate wrapper and create bitstream out of it,

17
00:00:54,330 --> 00:00:54,570
right?

18
00:00:54,870 --> 00:01:01,380
So once that SIM generation is successful, go to an SDK right now will go through an entire code for

19
00:01:01,380 --> 00:01:03,750
AGP will be required to have a driver GP.

20
00:01:03,750 --> 00:01:11,460
I hope you sign for the required X C, P S S parameter, give us and all the information related to.

21
00:01:12,460 --> 00:01:18,480
Heart rate, we required this structure to certify D.D.S., which consists of an frequency interval

22
00:01:18,500 --> 00:01:23,910
pre-schooler, an option rate that will be utilizing it, our frequency to computing double, as well

23
00:01:23,910 --> 00:01:24,630
as Beachler.

24
00:01:24,630 --> 00:01:30,000
And depending on an operation that we want to perform, we will be selecting a specific option, right?

25
00:01:30,000 --> 00:01:34,470
So we will be selecting an option as interval mode and along with this.

26
00:01:35,900 --> 00:01:43,570
Don't cooperate, so this two option will be enacted, so then we consider an innate function first

27
00:01:43,610 --> 00:01:50,300
for GPIO required this to structure first one is an instance structure and conflict structure.

28
00:01:50,420 --> 00:01:57,040
Similarly, 42C also required an instance structure as well as in conflict structure when we go to doing

29
00:01:57,050 --> 00:02:01,010
it function, so we declared a single variable to do this.

30
00:02:01,580 --> 00:02:07,820
First, we'll be looking for GPI, always A.D., and we'll be generating a value for our config structure.

31
00:02:07,960 --> 00:02:08,120
Right.

32
00:02:08,120 --> 00:02:16,280
So once we have in conflict structure value for our you will be utilizing CFG initialize OK to initialize

33
00:02:16,280 --> 00:02:17,210
our GPI, right?

34
00:02:17,210 --> 00:02:23,090
So we'll be specifying an instance structure, config, structure, end the etc. So this will be retaining

35
00:02:23,090 --> 00:02:23,660
this data.

36
00:02:23,660 --> 00:02:26,350
So first will verify whether I.

37
00:02:27,330 --> 00:02:30,320
Device initialization for GPI was successful, right?

38
00:02:30,340 --> 00:02:36,370
So we'll just be comparing it to an existing design, if that is the case, we will be seeing that GPI

39
00:02:36,390 --> 00:02:41,770
initialization is success rate will be utilizing the same status variable to achieve three purpose.

40
00:02:41,790 --> 00:02:47,130
So you're checking whether initialization for GPI is successfully checking whether initialization for

41
00:02:47,220 --> 00:02:49,920
UTC successful and lasting is performing.

42
00:02:49,920 --> 00:02:52,680
The self-test for duties right now will go.

43
00:02:52,710 --> 00:02:58,680
It will generate the config structure for our DTC by utilizing again the lookup config function, passing

44
00:02:58,680 --> 00:03:02,190
that device Haiti and then utilizing CFG initialize.

45
00:03:02,610 --> 00:03:08,360
We will be initializing heart rate again, will be connecting students to see of generation.

46
00:03:08,770 --> 00:03:13,680
So after this, we will be verifying whether status is access to success.

47
00:03:13,700 --> 00:03:18,230
And if that is the case, we will be seeing that DDC initialization is success, right?

48
00:03:18,630 --> 00:03:24,840
The last hope that we will be performing at an intermediate bit is that it is to verify their set distribution,

49
00:03:24,840 --> 00:03:25,110
right?

50
00:03:25,500 --> 00:03:31,590
So we'll be calling a self-test from our DTC driver and then we just need to pass an instance structure.

51
00:03:31,620 --> 00:03:36,390
Right now, we will again be verifying whether this is equal access to success.

52
00:03:36,390 --> 00:03:41,810
If that is the case, we will be saying that if this is successful and self-destruct, right?

53
00:03:41,850 --> 00:03:47,990
So these are the three check that we are performing and two initialization we are doing were here one

54
00:03:48,000 --> 00:03:51,090
to initialize our GPO and either to initialize our ADC.

55
00:03:51,450 --> 00:03:55,020
Now this init function, we will be calling and not mean program rates.

56
00:03:55,060 --> 00:04:01,230
They need platform which will initialize a you pay for it and then unit which will initialize our.

57
00:04:02,310 --> 00:04:09,090
DuPont, as well as duties right off evil, we are considering of you, Typekit will be holding an lead.

58
00:04:09,210 --> 00:04:12,980
In fact, we just need to work it with analysts right there.

59
00:04:12,990 --> 00:04:19,650
Let's be of this will be sending or taking on an elite events since we only have a single entity connected

60
00:04:19,650 --> 00:04:20,660
to any my right.

61
00:04:21,210 --> 00:04:26,060
So setting up a direction pin number seven or a minus seven is where we have energy.

62
00:04:26,070 --> 00:04:27,540
So we need to set the direction.

63
00:04:27,540 --> 00:04:31,140
And whenever the port is an output port, we also need to enable an output.

64
00:04:31,140 --> 00:04:33,710
So these are the two function that we already discussed.

65
00:04:33,720 --> 00:04:36,700
We need to apply one to both of them, right?

66
00:04:36,720 --> 00:04:43,680
So let's consider the pin number seven as an output port, OK, and then it will also enable and what?

67
00:04:43,920 --> 00:04:44,220
OK.

68
00:04:44,400 --> 00:04:48,720
So the structure we wish to generate the delay of or frequency of a nerd.

69
00:04:48,720 --> 00:04:51,660
So the blinking frequency for a lady is one heart.

70
00:04:51,670 --> 00:04:55,110
So we are just updating a value of one over here and rest.

71
00:04:55,110 --> 00:04:56,070
All right.

72
00:04:56,460 --> 00:05:00,090
Here we are setting an download for our counter at interval mode, right?

73
00:05:00,660 --> 00:05:07,080
Then once we update the reader option, that is to remember that we have an structure will just be utilizing,

74
00:05:07,080 --> 00:05:14,190
said the option to set said the option that we described in the bow line do RTC right.

75
00:05:14,550 --> 00:05:18,290
Then we would be calculating an interval like this killer from our frequency.

76
00:05:18,300 --> 00:05:20,730
We just need to pass an output frequency, which is what?

77
00:05:21,240 --> 00:05:21,600
OK?

78
00:05:21,870 --> 00:05:23,540
And then interval and be scalar.

79
00:05:23,820 --> 00:05:26,160
I will be computing from this frequency, right?

80
00:05:26,160 --> 00:05:30,030
So once we get an interval n frequency, so here we initialize them to zero.

81
00:05:30,450 --> 00:05:36,180
We'll just be calling set pre-schooler and send Interval Oogie to set the specific value that have been

82
00:05:36,990 --> 00:05:39,990
generated from calculate interval from frequency function.

83
00:05:40,020 --> 00:05:40,290
Right.

84
00:05:40,320 --> 00:05:43,590
Once we complete this, we'll just be going ahead with the Wildwood.

85
00:05:43,890 --> 00:05:49,290
Now specific reason for calling while doing is we want to continuously analyze the blinking effect rate.

86
00:05:49,710 --> 00:05:50,610
We will be starting.

87
00:05:50,610 --> 00:05:53,340
Our DDC will be waiting for timer to reach zero.

88
00:05:53,790 --> 00:06:00,720
OK, then we'll be stopping RDC, resetting the counter value back to what you just specified.

89
00:06:00,990 --> 00:06:04,020
And here we are, just complementing all the LCD.

90
00:06:04,830 --> 00:06:05,150
Right.

91
00:06:05,160 --> 00:06:11,560
So if the initial value is zero, when we perform a compliment, this will give us basically all what

92
00:06:11,580 --> 00:06:11,910
right?

93
00:06:11,910 --> 00:06:17,840
And then we are just utilizing the right thing and applying this value to energy.

94
00:06:17,850 --> 00:06:21,450
Now what this will do is so initial value be zero.

95
00:06:21,690 --> 00:06:27,000
So after an delay of one ticket, we will be having one on an LCD and so on.

96
00:06:27,000 --> 00:06:33,260
And so since we are calling, let's do this again, this entire thing will be repeated, right?

97
00:06:34,570 --> 00:06:36,400
So here we go, I'll just add when.

98
00:06:37,750 --> 00:06:43,440
They'll bring that just to analyze whether we correctly generate the value for our religious right so

99
00:06:43,440 --> 00:06:47,520
we could just display the value of an elderly, and that is what we're going to value.

100
00:06:48,640 --> 00:06:49,150
S..

101
00:06:50,440 --> 00:06:50,800
OK.

102
00:06:50,950 --> 00:06:57,490
On an LCD is that it just brings the value in then binary format, right?

103
00:06:57,760 --> 00:07:00,610
And we will be creating the value of OLED.

104
00:07:00,940 --> 00:07:05,560
So this will give us an idea of the value that we are sending, in fact, will be actually seeing that

105
00:07:05,560 --> 00:07:06,670
hybrid demonstration.

106
00:07:06,680 --> 00:07:11,170
OK, because am I OLED blinking could actually be a higher rate.

107
00:07:11,560 --> 00:07:14,300
So first thing that we do is to program and FPGA.

108
00:07:16,590 --> 00:07:21,360
So once programming is successful, go ahead and connect to the serial terminal.

109
00:07:21,390 --> 00:07:21,690
Right.

110
00:07:22,020 --> 00:07:26,640
So we will be selecting on four and then we will be executing our application.

111
00:07:26,820 --> 00:07:28,800
All right, let's launch on hardware.

112
00:07:29,960 --> 00:07:35,970
So now you could see that GPIO and it is successful DDC and it is also successful, and so you know,

113
00:07:36,050 --> 00:07:36,900
some success, right?

114
00:07:36,920 --> 00:07:39,420
So we won't be able to see a value of an alibi.

115
00:07:39,440 --> 00:07:44,870
In fact, we also forget to add the new line characters already to score ahead and add a new line character,

116
00:07:44,870 --> 00:07:46,490
and this will be considering it.

117
00:07:46,490 --> 00:07:47,000
So it'll be.

118
00:07:47,950 --> 00:07:51,010
So let's just re launch a debug session.

119
00:07:53,310 --> 00:07:59,600
So now you could see that Dubai, when it is successful, DDC and it is successful and sell this to

120
00:07:59,670 --> 00:08:03,840
the also successful, so here with the binary weren't able to analyze anything.

121
00:08:03,840 --> 00:08:06,240
So let me just proceed to decimal, right?

122
00:08:06,240 --> 00:08:08,490
So once we do this modification?

123
00:08:10,220 --> 00:08:16,670
So now you could see the value that we are sending on energy is zero and 250 rate, and you could actually

124
00:08:16,670 --> 00:08:18,560
observe that blinking on it.

125
00:08:18,620 --> 00:08:19,450
Am I right?

126
00:08:19,460 --> 00:08:26,390
So this is how you can utilize that EDC, OK to need the specific delay or you need a specific frequency

127
00:08:26,390 --> 00:08:27,280
on an output thing.
