Hello.
In this tutorial, we will learn counter's 16 bit and 32 bit.
And the difference between the 16 and 32 bit, 32 bit counter's has thumb counters, also down counters.
And here you will see the memory map for the sixteen bit count up.
We can use counters zero or counter 50 until counter 111 and start again counter 128 and count 199.
And also, at this point, you will see 16..
But you will see the mark with the two.
OK.
For the counters, we have the options.
And for example, ledged or knowledged, also the high speed counters we have.
Because of this, you will see one plus one input, eight point software control, one for us to input
all to first to input hardware counters that we can use into two places.
But now, first, I will go to PeopleSoft, also into here.
I will just define the counter.
Then I will say, OK, this is the first thing.
And then, for example, let's start with the normal counter aldy.
And 1013 is my one second clock pulse.
And this is up or positive or rising instruction.
And I will right here count zero.
And we can define that data or just write this set value like that.
And aldy counters zero then out and can then we can go on line simulator.
Then let's go compile project and download this project to simulator.
It stopped and now I said one to places it is counting and five and six and seven, eight, nine and
10.
Then we have another.
This is the first thing.
Also, according to our memory map, OK, we can use in other areas, for example, if I use counter
112.
OK, let's see.
Is it legit or not?
But it's going to be legit and.
Sorry.
It's going to be like that and into here.
I will my I will eat my, for example, and one hundred to condition because of why we need to stop
the leeching or to stop the system.
And we will see is it leeching or not or keeping data or not.
OK, then I will say set on to it.
Then the condition is off.
Then this is four.
But this is not a good option, because normally if I don't use this one, OK, it will keep this data.
This leeching meaning is when the power of and powerful.
But because of we are working with the simulator, it's not going to keep into the memory interim.
Because of that, we can't see it.
But this is normally the leeching area.
And what will happen when the pulses power off?
And on that moment, you will see the counter value is going to be kept under the counter.
One hundred and twelve, OK?
But it doesn't matter now.
For me, the important point, 32 bit.
For example, we can use conter two hundred.
From here, we can define.
And but because of counter 200 is 32 bit.
We need to use 32 bit instruction with the counter, OK.
Double counted.
And into here, we just need to define just this one.
And then.
OK, let's insert here just the line, OK, then my what is 10 again?
But also now we can write here, for example, one million or five hundred thousand because 32 bit counter
now.
And I will go online to simulator.
I will say.
Yes, yes, yes.
And one more thing than it's counting.
OK.
What will happen?
When it's to time, I need to get an output like that.
But for the donor countries, we are not going to get this one, this output, but also we will see
how can we go down.
First thing, we have to go to devise command lists and we need to go to Emmet's and we need to go to
an 1200.
At that, you will see the counting, what is on one in one thousand two hundred thousand, then count
to 200 is going to be run like countdown or four count of two hundred and one.
We need to use and 1201 like that.
I will.
Come to here and I will insert the row and Elby and one thousand always I want to run its countdown.
So we need to write it out.
And one thousand two hundred counting Modise countdown now is active.
And also at this point, we can insert a roll and we can say just LDM one thousand two in the first
run of the policy.
Double move, OK, 20, for example, to counter 200.
OK.
And I will go on line.
And one more thing.
We will see what will happen.
The counter value will be suddenly two hundred and it's Ghosttown.
Now it's counting down.
You will see it because of Y.
And one thousand two hundred is active.
Now, because of that, we are going down, but the output is not getting.
So maybe at this point we can do one more thing and insert a row than we can see.
Just Elbit equal count of two hundred.
For example, take.
OK.
But it's blocked.
I will say, OK.
Then there's the wrong thing, because this is counter 200 is 32 bit Yelda, OK.
Double equality.
And now it is OK, then we can get an output.
For example, we can set an 11.
OK, then we can go on line.
Then we are ready.
Why what will happen now, we will see then 15 and 14 and 13, 12 and 11, and OK, the countdown is
ready to settle.
Very good.
Also, one more thing that we can use.
Into here ELTE and 1013 and up and incrementing the zero and also out and 1013.
And this is going to be up and decremented the one just in into beginning insert a roll elde and one
thousand and two in the first front.
I will move.
22 B1.
OK, 20.
Also into here, let's do helical design the.
And to a little bit more, um, I will say, set.
And for example, 13, I will go on line each one second one that I will be incremented by one and one
daughter decremented by one, then you will see it is one and two, 18 and 17.
And then in the beginning, we just move 20 to one.
Then it goes up and down.
Then you will see 10 and 10.
Then we get an OK.
OK, very good.
So what happened?
We incremented decremented adata registers with this can be input, OK, and input of, for example,
PLCC as the sensor or photostat or anything.
OK, we can use counter instructions with the incrementing and incrementing instructions like that and
incrementing and decremented can work for you a little bit better.
According to count.
OK.
But it's up to you.
For me, the counters can be used for the high speed counters and easily, because we must use it like
that.
But for small applications, too, counting anything you can use incrementing or decremented.
And it is going to give a very good option to see and also adapt your program.
But it is up to you.
We have the increment and incrementing.
Also, we have the counters for this tutorial and finished here.
See you in the next tutorial.