Bear with me. This is for future consideration. Here is same chip, but not writing any code.
The chip having all these resources can be used with its basic elements of logic to do tasks
that require no code.
So here we have again a one chip solution, but its codeless this time.
So cntr upper left is advanced to next digit by button push, and that latches that digits
Thumbwheel setting. Cntr lower right drives a mux to send the segment data to LED
digit as well as drive a demux to select the active digit in the scan. All auto run.
The above are just some of the elements you drag and drop onto canvas that are inside chip.
Basically this is just 4 4 bit latches that are scanned by a mux, the latches holding the thumbwheel
data you entered by setting wheel and pushing a button.
This particular design is a little more complicated in that the tool has 8 bit latches for use, but
I wanted to make it simpler using 4 bit. So you can create a custom component with wizards
and then drag that onto schematic and create a symbol for it. So not recommended for first
time user (custom) but shows flexibility. Here is that latch component design -
As you can see this component used the internal logic components (Just D F-Fs) and wired up
to internal connectors so that it can be used as drag/drop just like rest of internal components.
There is a community building new components to add to the library by user, like 74HC logic
elements as an example.
"Codeless". When you finish dragging and dropping components onto schematic and wiring
them up, configing them,, like right clicking a cntr component and setting its # bits, you hit
build button. There is code generated for chip startup, but user generally, rarely, ever touches,
that, and chip is then programmed. So its codeless to user, but some code was tool generated
and used.
Think you have a breadboard, wires, various components sitting in a pile in front of you., Thats
what this chip is. Attached is the standard catalog of whats in the chip.
As you learn, you can drag and drop the more complex components, like timers, LCD, COM etcc
and just right click and config them, and if not changing them in operation, this time only code
needed is to write one line of code to start these more advanced components.
So if you continue to develop your skills here is a great way to start and be highly productive.
Lots of videos available for training. Several hundred projects you can use as a basis in design,
and to learn from. I have links to those sites if you need them.
Regards, Dana.