‫Welcome to the when your feedback shift register demonstration with the Ardie board I have the linear
‫feedback shift register code programmed on the already board and for this program we are implementing
‫a Fibonacci sequence of a 16 bit linear feedback shift register and this the shift register.
‫Since we've designed it correctly it should have sixty five thousand five hundred and thirty five different
‫variable numbers that it will produce before we have a repeating pattern.
‫And so right now we are at the very first state or our seed value which is the value of 0 0 1.
‫If I press the button zero on the development board it should give me the next bout the next pattern
‫in our linear feedback shift register.
‫So I'll press the button one.
‫And you notice we now have a value of eight thousand if I press again.
‫It will give me the next value in this sequence four thousand two thousand one thousand.
‫And if I keep pressing this it will keep generating these random numbers and I can just keep pressing
‫as fast as I want and I'll just keep generating all kinds of random numbers.
‫And these are displayed in hex.
‫So if you go through if I press this button sixty five thousand five hundred and thirty five times I
‫will eventually come back to 0 0 1.
‫So you did it manually would take a really long time.
‫But if you set up a clock where instead of a push button input you had a clock input.
‫You can see after a certain amount of time you will repeat it just will take a little bit of time.
‫At any point we can go ahead and reset by toggling our slide switch 0 to 1.
‫And now we're in the reset state.
‫So if I push the button it won't increment it'll still stay at the 0 0 1.
‫This is what we call our seed value.
‫So in a computer or on your laptop or any other type of digital device if you want to generate a random
‫number usually they'll have a function they call seed where you have to put an initial see value in
‫there.
‫But then after that every time you call that function it's going to give you a seemingly random number.
‫So if I pull it back out a reset I can hit my start button again and go ahead.
‫You'll notice it's the same sequence.
‫So once we start with the seed value we can dictate what our next value will be.
‫But if we keep pressing a certain number of times it appears to be random.
‫So that is the demonstration of a linear feedback shift register running on the board.