1
00:00:12,440 --> 00:00:12,910
Hello.

2
00:00:12,950 --> 00:00:16,910
In this tutorial, we will learn counter's 16 bit and 32 bit.

3
00:00:17,210 --> 00:00:25,100
And the difference between the 16 and 32 bit, 32 bit counter's has thumb counters, also down counters.

4
00:00:25,820 --> 00:00:30,600
And here you will see the memory map for the sixteen bit count up.

5
00:00:30,920 --> 00:00:40,820
We can use counters zero or counter 50 until counter 111 and start again counter 128 and count 199.

6
00:00:41,210 --> 00:00:44,750
And also, at this point, you will see 16..

7
00:00:44,780 --> 00:00:47,990
But you will see the mark with the two.

8
00:00:48,200 --> 00:00:48,710
OK.

9
00:00:49,250 --> 00:00:51,590
For the counters, we have the options.

10
00:00:51,860 --> 00:00:58,100
And for example, ledged or knowledged, also the high speed counters we have.

11
00:00:58,250 --> 00:01:04,580
Because of this, you will see one plus one input, eight point software control, one for us to input

12
00:01:04,580 --> 00:01:08,690
all to first to input hardware counters that we can use into two places.

13
00:01:08,930 --> 00:01:12,360
But now, first, I will go to PeopleSoft, also into here.

14
00:01:12,380 --> 00:01:14,300
I will just define the counter.

15
00:01:14,600 --> 00:01:17,330
Then I will say, OK, this is the first thing.

16
00:01:17,660 --> 00:01:22,930
And then, for example, let's start with the normal counter aldy.

17
00:01:22,940 --> 00:01:26,500
And 1013 is my one second clock pulse.

18
00:01:26,510 --> 00:01:30,580
And this is up or positive or rising instruction.

19
00:01:30,800 --> 00:01:32,780
And I will right here count zero.

20
00:01:32,790 --> 00:01:37,820
And we can define that data or just write this set value like that.

21
00:01:38,090 --> 00:01:44,450
And aldy counters zero then out and can then we can go on line simulator.

22
00:01:45,110 --> 00:01:49,940
Then let's go compile project and download this project to simulator.

23
00:01:51,390 --> 00:02:01,290
It stopped and now I said one to places it is counting and five and six and seven, eight, nine and

24
00:02:01,290 --> 00:02:01,650
10.

25
00:02:02,070 --> 00:02:03,060
Then we have another.

26
00:02:03,270 --> 00:02:04,260
This is the first thing.

27
00:02:04,530 --> 00:02:12,900
Also, according to our memory map, OK, we can use in other areas, for example, if I use counter

28
00:02:13,020 --> 00:02:14,250
112.

29
00:02:14,400 --> 00:02:15,540
OK, let's see.

30
00:02:15,840 --> 00:02:17,460
Is it legit or not?

31
00:02:18,660 --> 00:02:21,090
But it's going to be legit and.

32
00:02:23,110 --> 00:02:23,880
Sorry.

33
00:02:24,530 --> 00:02:28,430
It's going to be like that and into here.

34
00:02:28,460 --> 00:02:35,630
I will my I will eat my, for example, and one hundred to condition because of why we need to stop

35
00:02:35,630 --> 00:02:38,270
the leeching or to stop the system.

36
00:02:38,270 --> 00:02:41,870
And we will see is it leeching or not or keeping data or not.

37
00:02:42,440 --> 00:02:45,740
OK, then I will say set on to it.

38
00:02:48,330 --> 00:02:49,790
Then the condition is off.

39
00:02:50,390 --> 00:02:51,500
Then this is four.

40
00:02:51,800 --> 00:02:58,940
But this is not a good option, because normally if I don't use this one, OK, it will keep this data.

41
00:02:59,210 --> 00:03:02,600
This leeching meaning is when the power of and powerful.

42
00:03:02,870 --> 00:03:08,770
But because of we are working with the simulator, it's not going to keep into the memory interim.

43
00:03:08,930 --> 00:03:10,390
Because of that, we can't see it.

44
00:03:10,400 --> 00:03:14,570
But this is normally the leeching area.

45
00:03:14,840 --> 00:03:18,290
And what will happen when the pulses power off?

46
00:03:18,290 --> 00:03:23,600
And on that moment, you will see the counter value is going to be kept under the counter.

47
00:03:23,610 --> 00:03:24,800
One hundred and twelve, OK?

48
00:03:24,950 --> 00:03:26,240
But it doesn't matter now.

49
00:03:27,300 --> 00:03:29,700
For me, the important point, 32 bit.

50
00:03:30,090 --> 00:03:32,370
For example, we can use conter two hundred.

51
00:03:33,500 --> 00:03:35,360
From here, we can define.

52
00:03:37,410 --> 00:03:41,940
And but because of counter 200 is 32 bit.

53
00:03:42,300 --> 00:03:46,110
We need to use 32 bit instruction with the counter, OK.

54
00:03:46,410 --> 00:03:47,250
Double counted.

55
00:03:47,580 --> 00:03:52,710
And into here, we just need to define just this one.

56
00:03:53,190 --> 00:03:54,750
And then.

57
00:03:56,370 --> 00:04:01,560
OK, let's insert here just the line, OK, then my what is 10 again?

58
00:04:02,550 --> 00:04:10,050
But also now we can write here, for example, one million or five hundred thousand because 32 bit counter

59
00:04:10,050 --> 00:04:10,380
now.

60
00:04:10,830 --> 00:04:13,090
And I will go online to simulator.

61
00:04:13,110 --> 00:04:13,710
I will say.

62
00:04:13,710 --> 00:04:16,470
Yes, yes, yes.

63
00:04:16,890 --> 00:04:19,900
And one more thing than it's counting.

64
00:04:19,920 --> 00:04:20,340
OK.

65
00:04:21,490 --> 00:04:22,270
What will happen?

66
00:04:23,520 --> 00:04:27,210
When it's to time, I need to get an output like that.

67
00:04:27,600 --> 00:04:33,600
But for the donor countries, we are not going to get this one, this output, but also we will see

68
00:04:33,600 --> 00:04:35,130
how can we go down.

69
00:04:35,460 --> 00:04:41,580
First thing, we have to go to devise command lists and we need to go to Emmet's and we need to go to

70
00:04:41,580 --> 00:04:42,840
an 1200.

71
00:04:43,690 --> 00:04:49,460
At that, you will see the counting, what is on one in one thousand two hundred thousand, then count

72
00:04:49,510 --> 00:04:55,390
to 200 is going to be run like countdown or four count of two hundred and one.

73
00:04:55,600 --> 00:04:58,750
We need to use and 1201 like that.

74
00:04:59,230 --> 00:04:59,800
I will.

75
00:05:01,020 --> 00:05:10,770
Come to here and I will insert the row and Elby and one thousand always I want to run its countdown.

76
00:05:11,070 --> 00:05:12,630
So we need to write it out.

77
00:05:12,630 --> 00:05:17,550
And one thousand two hundred counting Modise countdown now is active.

78
00:05:17,970 --> 00:05:26,070
And also at this point, we can insert a roll and we can say just LDM one thousand two in the first

79
00:05:26,070 --> 00:05:27,300
run of the policy.

80
00:05:28,050 --> 00:05:33,480
Double move, OK, 20, for example, to counter 200.

81
00:05:33,510 --> 00:05:33,870
OK.

82
00:05:34,230 --> 00:05:35,730
And I will go on line.

83
00:05:36,480 --> 00:05:37,590
And one more thing.

84
00:05:37,590 --> 00:05:39,170
We will see what will happen.

85
00:05:39,190 --> 00:05:44,130
The counter value will be suddenly two hundred and it's Ghosttown.

86
00:05:44,130 --> 00:05:45,680
Now it's counting down.

87
00:05:45,690 --> 00:05:47,160
You will see it because of Y.

88
00:05:47,340 --> 00:05:49,410
And one thousand two hundred is active.

89
00:05:49,410 --> 00:05:53,150
Now, because of that, we are going down, but the output is not getting.

90
00:05:53,160 --> 00:05:59,490
So maybe at this point we can do one more thing and insert a row than we can see.

91
00:05:59,670 --> 00:06:02,370
Just Elbit equal count of two hundred.

92
00:06:02,370 --> 00:06:03,420
For example, take.

93
00:06:05,230 --> 00:06:05,770
OK.

94
00:06:07,560 --> 00:06:09,210
But it's blocked.

95
00:06:09,240 --> 00:06:10,320
I will say, OK.

96
00:06:12,270 --> 00:06:19,800
Then there's the wrong thing, because this is counter 200 is 32 bit Yelda, OK.

97
00:06:20,130 --> 00:06:21,600
Double equality.

98
00:06:23,680 --> 00:06:28,180
And now it is OK, then we can get an output.

99
00:06:28,450 --> 00:06:31,240
For example, we can set an 11.

100
00:06:31,510 --> 00:06:34,360
OK, then we can go on line.

101
00:06:37,490 --> 00:06:39,130
Then we are ready.

102
00:06:39,830 --> 00:06:48,920
Why what will happen now, we will see then 15 and 14 and 13, 12 and 11, and OK, the countdown is

103
00:06:48,920 --> 00:06:49,700
ready to settle.

104
00:06:50,030 --> 00:06:50,480
Very good.

105
00:06:50,900 --> 00:06:53,720
Also, one more thing that we can use.

106
00:06:55,040 --> 00:07:06,710
Into here ELTE and 1013 and up and incrementing the zero and also out and 1013.

107
00:07:07,070 --> 00:07:15,590
And this is going to be up and decremented the one just in into beginning insert a roll elde and one

108
00:07:15,590 --> 00:07:17,480
thousand and two in the first front.

109
00:07:17,780 --> 00:07:19,550
I will move.

110
00:07:21,190 --> 00:07:22,590
22 B1.

111
00:07:23,470 --> 00:07:24,910
OK, 20.

112
00:07:26,620 --> 00:07:30,730
Also into here, let's do helical design the.

113
00:07:34,790 --> 00:07:39,740
And to a little bit more, um, I will say, set.

114
00:07:41,900 --> 00:07:50,150
And for example, 13, I will go on line each one second one that I will be incremented by one and one

115
00:07:50,150 --> 00:07:56,540
daughter decremented by one, then you will see it is one and two, 18 and 17.

116
00:07:56,540 --> 00:07:59,600
And then in the beginning, we just move 20 to one.

117
00:07:59,960 --> 00:08:01,790
Then it goes up and down.

118
00:08:02,030 --> 00:08:03,830
Then you will see 10 and 10.

119
00:08:04,280 --> 00:08:05,370
Then we get an OK.

120
00:08:05,760 --> 00:08:06,890
OK, very good.

121
00:08:07,730 --> 00:08:08,750
So what happened?

122
00:08:09,440 --> 00:08:16,520
We incremented decremented adata registers with this can be input, OK, and input of, for example,

123
00:08:16,730 --> 00:08:20,490
PLCC as the sensor or photostat or anything.

124
00:08:20,510 --> 00:08:28,160
OK, we can use counter instructions with the incrementing and incrementing instructions like that and

125
00:08:28,370 --> 00:08:32,570
incrementing and decremented can work for you a little bit better.

126
00:08:32,750 --> 00:08:33,710
According to count.

127
00:08:33,830 --> 00:08:34,190
OK.

128
00:08:34,460 --> 00:08:35,570
But it's up to you.

129
00:08:35,780 --> 00:08:42,500
For me, the counters can be used for the high speed counters and easily, because we must use it like

130
00:08:42,500 --> 00:08:42,770
that.

131
00:08:43,010 --> 00:08:48,740
But for small applications, too, counting anything you can use incrementing or decremented.

132
00:08:48,950 --> 00:08:55,850
And it is going to give a very good option to see and also adapt your program.

133
00:08:56,840 --> 00:08:58,310
But it is up to you.

134
00:08:58,490 --> 00:09:00,770
We have the increment and incrementing.

135
00:09:00,950 --> 00:09:04,280
Also, we have the counters for this tutorial and finished here.

136
00:09:04,460 --> 00:09:06,200
See you in the next tutorial.
