Skip to main content

Microcontrollers

Chapter 3 Model Microcontroller

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.
Block diagram. At the top center is the ALU. The ALU can bidirectionally communicate with the data bus and two registers: A and B. Registers A and B can bidirectionally communicate with the data bus. Four input devices are labeled: 00 keyboard, 01 switches, 10 number pad, 11 dial. These can write to the data bus. Four output devices are labeled: 00 LEDs, 01 7-segment display, 10 LCD, 11 16-segment display. These devices can read from the data bus.
Figure 3.0.1. A block diagram of the model microcontroller with input and output devices, two registers, and an ALU.