Microcontrollers and processors
Pinouts, beginner projects and how processors work inside. Each page shows the calculation that decides whether a circuit works, such as LED current or ADC step size.
Pages in this section
- Computer architectureHow the ARM1 decoded its instructionsWhat microcode is, how the 1985 ARM1 ran each instruction as 1 to 4 rows of a 42-row decode PLA, and why that table is far smaller than 8086 or 68000 microcode.
- Microcontrollers8051 microcontroller pin diagram and pin description8051 pin diagram with all 40 pins in one table: VCC on 40, ground on 20, RST, ALE, PSEN, EA and ports P0 to P3, checked against Microchip's AT89S52 datasheet.
- Microcontrollers15 Arduino projects for beginners, in the order that teaches the mostFifteen Arduino UNO projects, from a blinking LED to a battery monitor, each with the one calculation that decides if it works: LED current, ADC, PWM, servo.
- Displays16×2 LCD interfacing: wiring an HD44780 module, its timing, custom characters and I2CWire a 16×2 HD44780 LCD to an Arduino in 4-bit mode: contrast at 1.3 V, line 2 at 0xC0, 37–53 µs per command, custom characters, I2C backpacks and 3.3 V boards.
- Boards comparedTen differences between Raspberry Pi and ArduinoRaspberry Pi 5 against Arduino UNO R3 and R4: speed, memory, battery life, 3.3 V vs 5 V logic, analogue inputs and pin current, each worked out.
- Serial busesBasics of the I²C communication protocolHow I²C works on two wires: one transfer bit by bit, the 0x27 vs 0x4E address trap, pull-up sizing from the NXP formulas, and I²C vs SPI vs UART.
Lessons behind these pages
- Logic levelsWhat counts as HIGH and LOW on a 5 V and a 3.3 V pin.
- ADC and DAC basicsWhere the 4.9 mV step of a 10-bit, 5 V ADC comes from.
- Duty cycle and PWMHow analogWrite() dims an LED without a real analogue output.
- LED circuitsSeries resistors and current limits for the first projects.
- Steppers and servosThe pulse widths a hobby servo expects.
- Crystals and resonatorsThe clock on XTAL1 and XTAL2 of an 8051.
- Logic familiesTTL and CMOS, and why mixing them needs care.
