[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What are instructions in a microcontroller? Are they sets1's

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 2

File: dfff.png (30KB, 1100x580px) Image search: [Google]
dfff.png
30KB, 1100x580px
What are instructions in a microcontroller?
Are they sets1's and 0's that go to the processing circuit with their operands?

Where are those bits of instructions stocked?
>>
>>8596797
The instructions are one or more bytes that gol into the instruction decoder in a microcontroller and is connected to the microsequencer that executes the instruction by connecting and disconnecting buses and signalling parts like ALU etc.

Look up 6502 as a most excellent example of a microcontroller.
>>
>>8596797

the instructions are sets of 1s and 0s

Instruction usually refers to the disassembled assembly operation while the 1s and 0s are the opcode

An instruction is just a command for a turing machine. It's like this: "move this byte to this address" "go back on the tape to this point" "subtract this from this" "move the result here"
>>
>>8596898
In particular look up http://visual6502.org/JSSim/index.html
>>
>>8596797
An instruction is the combination of an opcode (which tells the decoder what to do, for example add), and the associated data, which could be anything from a number, an address, etc. depending on the opcode.

The instructions are stored in some kind of permanent memory until the program is needed, then it's loaded into main memory and fed through the microcontroller.
>>
>>8596797
Hah funny, I just built a complete pipelined forwarding hazard-detecting MIPS processor.
>>
>>8596797
>>8597480
For a simpler diagram than >>8597468 (that doesn't take hardware into account), see pic related. It is the MIPS datapath. Note that even though this is not the same ISA that the 6502 uses, all CPUs work pretty much the same way.
>>
>>8597487
Forgot image
>>
>>8596797
It depends on the hardware.

Some hardwares let the microprocesser access its own instruction cache, others have a separate cache for instructions and data.

The most fundemental parts of a computer are the ALU (arithmetic logic unit) and the multiplexers/deplexers which are used to select from an array of memory units and input/output sources/devices.

instructions set the state of the ALU and multiplexers so it all works. And yes instructions must be physically present as some kind of signal, digital, analog mechanical or whatever.
>>
>>8597489
>not even pipelined
Thread posts: 10
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.