So Ive just started studying about the 8051 micro controller for my summer class in uni. My doctor told us that within the next 2 weeks he wants us to design a 4-2 priority encoder. My question is how is it possible to do so with the C51 programming. We should need inputs and outputs but how does the control work?
Just want an explanation not code guys that's for me to write.
Maybe you should try to use normal English and try to write down the steps you (!) would take to perform this priority encoding step, if assuming that you did look at the state of the four inputs and had to tell someone what the values should be on the outputs, and why.
From that, it should be quite easy to figure out how to then translate into a computer program.