16 bit number on five 7segment displays

crutschow

Joined Mar 14, 2008
38,525
nearly any EE curriculum today are expected to take some programming courses
Likely true.
But most of the posters on this website asking for help are probably not EE's.
If they do have programming experience, then your suggestion for doing the binary to BCD, 7-segment conversion is good.
 

WBahn

Joined Mar 31, 2012
32,871
And all of this can be replaced with one line of code if you use an array.
Much of it can, to be sure, especially if you are okay with unsafe code (which, for something like this, is not unreasonable). As I noted, there are much more efficient ways to implement it -- the goal wasn't for performance, it was to get something understandable implemented and tested as quickly as possible.

But I'm not seeing the single line of code that is going to generated 64K lines in three different files (although just printing to the console is good enough as far as the code here goes). In Python, a list comprehension could possibly do it.

I'd be interested in seeing the single line
 

WBahn

Joined Mar 31, 2012
32,871
Likely true.
But most of the posters on this website asking for help are probably not EE's.
If they do have programming experience, then your suggestion for doing the binary to BCD, 7-segment conversion is good.
If most of the students asking questions on the AAC Homework Help forum aren't EE students, then what are most of them?
 

WBahn

Joined Mar 31, 2012
32,871
Hi everyone I did something for this project but it doesn't work like it should be. I cannot find what is wrong.
Don't make others reverse engineer your logic to figure out what you intended to do based on what you did do.

Imagine that we are your customers and are going to pay you handsomely for a correct solution to this problem. But we expect you to convince us that your design is correct by walking us through it in sufficient detail, explaining what each schematic sets out to accomplish and then explaining how it accomplishes it.

In the process of doing that, you will very likely find your mistake.
 

Thread Starter

trojanHorse224433

Joined Jan 3, 2025
7
I'd try replacing the 3-input blocks with the 4 input blocks and grounding the unused inputs.
Okay everyone thank you very much I solved it. The project is done correct but the problem was proteus version or smth idk. I installed proteus again and the project works correctly
 

crutschow

Joined Mar 14, 2008
38,525
In most EE curricula, a programming course is a freshman level course. Digital logic courses usually come well after it.
Okay, I'm not familiar with the course sequence in colleges these days.
That seems backwards to me.
I would think it would be better to understand the (Boolean) logic of computers, before starting to program them.
Otherwise it would seem that some of the computer commands would make little sense.
 

WBahn

Joined Mar 31, 2012
32,871
Okay, I'm not familiar with the course sequence in colleges these days.
That seems backwards to me.
I would think it would be better to understand the (Boolean) logic of computers, before starting to program them.
Otherwise it would seem that some of the computer commands would make little sense.
The overwhelming majority of people that write programs have no clue about what goes on inside them. Middle school kids, and even some elementary school kids, write programs in a variety of languages. Some of them are specifically crafted and aimed at that age group, but some aren't.

While programming logic and digital logic have a lot of overlap, and familiarity with one is usually a significant step up in learning the other, they are separate things and can be taught/learned completely independently and without any reference to the other. A good freshman-level computer programming course should focus primarily on algorithmic thinking and problem solving, using programs as the means of implementation of the solutions. Sadly, this is not always the case and many just teach how to write syntactically-correct code for trivial problems that they are spoonfed the solutions to.
 
Top