
Recall first from The serial console and the device tree
- A UART serial console works from the very first boot stage, long before USB, video or networking exist.
- Board UARTs are 3.3 V TTL logic; RS-232 ports use inverted bipolar signals, so a USB-to-serial adapter is needed to connect the two.
- 115200 8N1 means 115200 baud, 8 data bits, no parity and one stop bit, and both ends must agree or you see garbage.
Why a software engineer reads schematics
4 min readIn the previous lesson you wired a serial adapter and watched a board boot. When something stops working, this lesson answers how to read a schematic and a datasheet to tell a hardware fault from a software one.
In the previous lesson you wired a serial adapter to a board and watched it boot. That worked because the wiring was simple. The moment something does not work, you face a question software cannot answer: is the fault in the code or in the hardware? An embedded Linux engineer answers it by reading three documents: the board schematic, the datasheet of the chip in question, and the reference manual of the SoC. This lesson teaches you to read all three, and then to confirm what they say with a multimeter, an oscilloscope and a logic analyser.
A a drawing that shows components as symbols and the electrical connections between them as lines or named nets, without showing physical placement uses a small set of conventions. Every part has a reference designator: R for resistors, C for capacitors, L for inductors, D for diodes, Q for transistors, U for integrated circuits, J or P for connectors, TP for test points. A wire that leaves the page is replaced by a net label, so two pins with the same label are connected even if no line joins them. A name such as RESET_N, nRESET or RESET# usually means the signal is active low: the event happens when the line is pulled to ground, not when it goes high.
Four things appear on almost every page, and learning to see them quickly is most of the skill.
Power rails. A rail is a net held at a fixed voltage, named after it: 5V, 3V3, 1V8, or VDD, VDDIO and VCC for a chip's supply pins. A board usually starts from one input, often 5 V from USB or a barrel jack, and a regulator or power-management chip derives lower rails from it. Following the rails from the connector to every chip tells you which voltage each part runs at, and therefore which logic level its pins speak.
Ground. Ground (GND, VSS) is the zero-volt reference every other voltage is measured against. A voltage has no meaning without a reference, which is why the earlier serial wiring needed a shared ground wire. Large boards connect many ground symbols to one copper plane, and a measurement taken against any of them gives the same answer.
Decoupling capacitors. Near each power pin of a digital chip you will see a small capacitor to ground, often 100 nF. When a chip switches thousands of transistors in a nanosecond it demands a sudden pulse of current. The power supply is too far away, and its wiring has too much inductance, to answer that fast, so the local a small capacitor placed next to a chip's supply pin that stores charge and supplies the chip's fast current spikes, keeping the local rail steady does. You rarely change these, but their absence or a bad one explains random resets that no software change fixes.
Pull-up and pull-down resistors. A a resistor, typically between a few hundred ohms and tens of kilohms, that connects a signal line to the supply rail so the line sits at logic high unless something pulls it low gives a line a default level. A pull-down does the same toward ground. You will meet them on reset lines, chip-select lines, I2C buses and boot-mode pins, and the next sections explain each use.
DNP or DNF on a schematic means do not populate: the footprint exists but no part is fitted, and a 0 ohm resistor is a deliberate jumper, so the board in your hand may differ from the design.
Reading a datasheet
3 min readA datasheet is the manufacturer's contract for one part. Reference manuals go deeper into register behaviour for complex chips, but the datasheet is where electrical truth lives. Open one and look for these sections, usually in roughly this order.
Pinout and pin description. The package drawing numbers every pin, and a table gives each pin's name, direction, supply domain and alternate functions. On an SoC, one physical ball can be a GPIO, a UART transmit line or an SPI clock, depending on how it is configured. This is the table you consult before writing a device tree.
Absolute maximum ratings. This table lists the limits beyond which the part can be damaged, such as the highest voltage on any pin, the highest supply voltage, the junction temperature and the ESD rating. These are stress limits, not operating limits. The manufacturer does not promise correct behaviour at those values, and long exposure near them shortens life. A typical rule written in many datasheets is that a pin must not exceed its supply voltage by more than a few tenths of a volt. That is why a 5 V signal on a 3.3 V pin is a design fault even if the chip survives the first try.
Recommended operating conditions. This is the range inside which the manufacturer guarantees the part meets its specification: supply voltage window, temperature range, and the legal input voltage range. Your design lives here, not at the absolute limits.
Electrical characteristics. The DC tables give the input threshold voltages VIL and VIH, the output levels VOL and VOH at a stated load current, input leakage and the current each pin may source or sink. The AC tables give timing: maximum clock frequency, setup and hold times, propagation delays and rise and fall times. Every row has conditions, such as a supply voltage and a temperature, and most have three columns, minimum, typical and maximum. Design with the worst case of the column that hurts you, not the typical value.
Timing diagrams. A timing diagram draws signals against time and labels the intervals with symbols that point to the AC table. For a bus such as SPI it shows which edge samples the data and how long the data must be stable before and after that edge.
Key takeaways
- The schematic and the datasheet, not the software, are the final authority on what a pin can do; read them before you blame a driver.
- Absolute maximum ratings are damage limits, not operating limits; stay inside the recommended operating conditions.
- A schematic marks connections with reference designators, net labels and active-low names, so pins sharing a label are connected without a drawn wire
- Decoupling capacitors supply a chip's fast current spikes, so a missing or faulty one can cause random resets no software change fixes
Reflect
- Explain to a colleague, in two sentences: identify power rails, ground, decoupling capacitors and pull resistors on a schematic and trace a signal from a connector to the SoC.
- Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
- What surprised you when you ran the commands yourself?
On a real board
Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.