Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the MSB of each seven segment in ARMv7 DE1-SoC in cpulator?

In the cpulator website, when i want to show a number on the seven segment displays, it tells me to change an specific memory location which i assume is connected to the displays. i can understand the meaning of the 7 last least significant bits of each seven segment(a,b,c,d,e,f,g). but for the MSB it looks like it doesnt matter what i enter there;0 or 1 will show the same value.

for example when i enter ff(1111 1111) or 7f(0111 1111) the display will show me the number 0.
Can someone please explain to me what is the purpose of the MSB of the 8-bit input of the seven segments?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Computers generally organize information into bytes, which are 8 bits. I bet the most significant bit is just there because you have a byte and it serves no particular purpose. In actual microcontrollers there are unimplemented bits in special function registers all the time, and they read as a fixed value (usually 0).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading