To better understand how a microcontroller works, a simple model microcontroller will be designed in this chapter. It will have an ALU to perform all required operations, two data registers, four input devices, and four output devices. Each of the registers, input devices, and output devices has its own numerical label to differentiate them in each instruction’s opcode. The block diagram of this model microcontroller is shown in Figure 3.0.1.