
What Happens When rosco_m68k Powers On?
October 28, 2026
Part 1. From power-on to the first text in the terminal.
You assembled a rosco_m68k, connected it to your computer, opened a terminal, and applied power. Text appeared on the screen. The board works. But what exactly happened between switching it on and that text?
This is the first article in a series about how rosco_m68k works on the inside. We will start with the whole board and walk through its boot process step by step. That makes it easier to picture how the components interact before digging into each of them in detail.
Throughout this series, we are talking about rosco_m68k with a 10 MHz MC68010 processor. The board revision is r2. On the software side, we use firmware version 2.42 as the example.
A computer where you can see every part

The largest chip at the top is the processor, or CPU. It reads machine instructions and executes them: it calculates, compares, reads and writes data, and jumps to other parts of the program.
The lower part of the board holds four large memory chips. The two on the left are Flash ROM, which stores the firmware: the program for initial startup and basic system functions. Its contents survive a power-off. The two on the right are RAM, the working memory for loaded programs, their data, and intermediate results. Its contents are lost when power is removed.
On the right sits the DUART — a controller for two serial ports. Through it, the board exchanges data with the computer running the terminal program. This chip also has a timer and general-purpose I/O lines.
Four more chips are PLDs (Programmable Logic Devices), or programmable logic. They select the right memory or peripheral, drive certain signals during system startup, and help complete bus accesses.
Unlike ordinary logic chips with fixed behavior, a PLD can be programmed. Its behavior is defined by logic equations: depending on the combination of input signals, the chip sets the corresponding logic levels on its outputs. As a result, one PLD can replace several ordinary logic chips, simplify the board, and allow its logic to change without redesigning the circuit.
Nearby are a clock oscillator that sets the processor's pace, a reset circuit built around a 555 timer, and a small 74LS148 chip that encodes interrupt requests for the processor. We will come back to interrupts in a separate article.
All the work here is divided between components. The processor executes instructions, memory stores programs and data, and peripherals connect the system to the outside world. But for all of this to work as one system, the components need to exchange information. That is what the address and data buses are for, together with the control signals we will look at next.
How the processor talks to other chips
Imagine the processor needs to read data from RAM. How does it tell the memory what exactly it wants?
Chips exchange information over electrical connections, which can be grouped by purpose into three main categories:
Address bus — specifies which memory location or device the processor is accessing.
Data bus — carries information between the processor, memory, and other devices.
Control signals — coordinate the exchange: they indicate read or write, select the required bytes, and signal when a transfer is complete.

One read cycle: the CPU puts out the address and AS, the PLD uses the address to select RAM, RAM drives the data straight onto the bus, and DTACK signals that it can be taken.
The processor puts an address on its pins. These are electrical levels on several lines at once that together form a binary number. With a separate signal it indicates that it wants to read, and it marks the start of a valid access.
The decode logic sees the address. It determines that the address belongs to RAM and asserts the signal that selects the right chip — Chip Select. The selected memory puts data on the data bus, and the processor reads it.
During a write, the direction is reversed: the CPU drives the data, and the memory or peripheral receives it. Here is what that looks like for writing a byte to the DUART:

A write cycle to the DUART: this time the CPU drives the data, and the DTACK acknowledge comes from the controller itself, not from the PLD.
There is an important detail in this exchange: data travels between the CPU and memory directly over the shared bus. The decoder decides who should respond to an access. The bytes themselves never pass through it.
Completion of the transfer is confirmed by the DTACK signal — Data Transfer Acknowledge. For the on-board RAM and ROM, it is generated by the board logic; for the DUART, by the controller itself. The processor can wait for this acknowledge, so devices of different speeds can share one bus.
One such access is called a bus cycle. Executing a single machine instruction may take several cycles: read the instruction itself, then its data, and then write the result.
Power is on. Why isn't the CPU running a program yet?

The clock oscillator provides the clock, the 555 timer circuit generates the reset signal, and the Glue Logic startup PLD holds the processor in reset through the RESET and HALT lines.
The processor needs a clock. On rosco_m68k, it comes from a separate 10 MHz oscillator. Its pulses set the pace of the CPU's internal operation. One period lasts 100 nanoseconds, but a single instruction takes at least several of these clocks, and a bus access takes no fewer than four.
When we apply power, the supply voltage and the clock signal need time to settle. Starting to execute a program during this transition would be unreliable. So the processor is first held in reset, or RESET.
The initial reset signal is generated by a circuit built around a 555 timer with resistors and capacitors. It goes to the Glue Logic startup PLD. This chip manages the board's startup: first it holds the processor in reset, and then it decides who answers at the zero addresses — more on that below. During reset, it keeps two processor lines asserted: RESET and HALT (stop). The MC68010 performs a full external reset only when both are asserted at the same time. A button on the board lets you repeat a hardware reset.
Reset puts the processor into a defined initial state. It does not clear all of RAM and does not load a program. Once reset is over, the CPU still has to find out where to fetch instructions from.
Where the first instruction comes from
After an external reset, the MC68010 first loads two 32-bit values from predefined addresses. The 0x prefix means the number is written in hexadecimal:
0x000000— initial value of the Supervisor Stack Pointer, the stack pointer0x000004— initial value of the Program Counter, the address where execution begins
The stack is an area of RAM that a program uses, among other things, to store return addresses from subroutines. The stack pointer tells the CPU where that area is. The Program Counter, or PC, determines where the processor will read instructions from. This startup sequence is built into the MC68010 itself.
So at address zero, the processor first expects startup data. It will fetch its first instruction from the address it has just loaded into PC.
But there is a problem. In the normal rosco_m68k memory map, RAM sits at the zero addresses. After power-on, it holds no guaranteed-correct values. The firmware, meanwhile, lives in ROM, much higher up:
0x000000–0x0FFFFF— 1 MiB RAM0x100000–0xDFFFFF— expansion space0xE00000–0xEFFFFF— 1 MiB Flash ROM0xF00000–0xFFFFFF— I/O space
MiB = 1,048,576 bytes. A range in the address map means reserved space; for example, the expansion space may have no devices installed.
How can the CPU read correct initial values if they are stored in ROM while it asks for RAM addresses?
ROM temporarily answers at the zero addresses

During the first four reads, the startup logic and the address decoder (both PLDs) make ROM respond at the low addresses. After that, the CPU runs the firmware from the normal ROM range.
Right after reset, the board's startup logic works in a special mode: ROM temporarily answers at the start of the address space, and RAM is not selected. This is called the startup ROM mapping, or ROM overlay.
The processor makes its normal access to address 0x000000, but the decoder selects Flash. The CPU receives the initial stack pointer and then the firmware's start address.
Both values are 32 bits wide. The MC68010's external data bus transfers 16 bits at a time, so they require four word reads: at addresses 0x000000, 0x000002, 0x000004, and 0x000006.
The startup logic counts these initial bus cycles. After the fourth one, the startup mode ends, and RAM serves the low addresses again. The PC it received already points into the normal ROM range — where the firmware code lives. So the CPU continues booting by fetching instructions from there.

ROM serves the first four reads at the zero addresses. Then the startup logic switches this mode off, and the CPU fetches the first firmware instruction from the address in PC.
Nothing in memory is copied during this switch. What changes is which chip responds to the address. The firmware will copy the data it needs into RAM later, using its own instructions.
This small mechanism is what reconciles the processor's requirement to start at the zero addresses with the desire to have RAM there during normal operation.
Why RAM and ROM come in pairs
The board has two RAM chips of 512 KiB each. Together they provide 1 MiB. But it is also about transfer width: each chip has an 8-bit data bus, while the processor has a 16-bit one.
So the two chips work side by side. One serves the upper eight data lines, the other the lower eight. The pair of Flash ROMs is wired the same way.
EVEN and ODD are the names of the two halves of the 16-bit data bus. EVEN is connected to D15–D8, ODD to D7–D0. They serve bytes at even and odd addresses respectively. In other words, one chip is not the "first half of the megabyte" and the other the "second".
Let's take a simple example. RAM holds the byte 0x12 at address 0x001000 and 0x34 at the next address, 0x001001. The processor wants to read the 16-bit word 0x1234.
EVEN —
0x12;D15–D8, upper halfODD —
0x34;D7–D0, lower half
Both bytes are transferred simultaneously in a single word-read cycle. If only one byte is needed, the processor indicates the corresponding half with the UDS and LDS signals — Upper and Lower Data Strobe. For a whole word, both are used.

A word is read from both chips in one cycle: each responds on its own half of the data bus. For a single byte, the processor asserts only the strobe it needs — UDS or LDS.
The processor itself can address 16 MiB. That is the size of its external address space; the physically installed RAM here is 1 MiB. The remaining addresses can be given to ROM, peripherals, and expansions.
Why four PLDs
Now we can describe more precisely what each of the four programmable logic chips does (the reference designator on the board schematic is in parentheses):
Address decoder (IC2) — decides who answers an address: RAM, ROM, or the expansion space; flags I/O accesses and generates DTACK for the on-board memory.
DUART select (IC3) — recognizes the DUART register addresses and asserts its Chip Select.
Startup logic (IC5) — holds the CPU in reset, turns the startup ROM mapping on and off, and also takes part in interrupt handling.
Bus watchdog (IC6) — asserts the bus error signal BERR (Bus Error) to the processor if an access stays unanswered for too long.
The bus watchdog is needed, for example, when the processor accesses a location where there is no device. Without a response, the CPU could keep waiting. The watchdog ends an overly long wait with a Bus Error signal, after which the processor can jump to an error handler.
Thanks to this, the firmware can check whether optional devices are installed: if nothing answers at an address, it gets a Bus Error instead of hanging. But the watchdog does not reboot the computer on any program hang by itself: it watches bus cycles specifically.

The CPU accesses a location with no device. DTACK never arrives, so after the timeout the bus watchdog asserts BERR, and the firmware learns that no expansion board is installed.
The firmware prepares the system
The first instructions are now being read from ROM. From here on, the order of operations is defined by the program stored in Flash.
The firmware builds a table of exception and interrupt handler addresses in RAM (exceptions are special situations such as a bus error or division by zero), prepares its internal data, configures the DUART, and determines how much RAM is available. It copies the table from ROM with ordinary read and write instructions — a separate step after the startup mapping has ended.
No operating system is needed yet to print the initial text. The firmware already contains code that can configure the serial port and send a string through it.
At this point we can already answer where the text comes from: its bytes are stored in ROM, and the CPU runs a program that hands them to the port controller.
How a byte becomes a character in the terminal

The CPU writes bytes to the DUART over the bus. The DUART sends them out through UART A; a USB–UART adapter delivers the data to the computer running the terminal.
The DUART has registers — small internal storage locations through which the program configures the controller and exchanges data with it. The CPU sees them at specific addresses, just like memory locations. This way of connecting peripherals is called memory-mapped I/O.
To send a character, the firmware reads the transmitter status register and waits until it is free. Then it writes the byte to the transmit register. For example, for the Latin letter A that would be the value 0x41.
This write is the same bus cycle as in the animation above: address, data, write signal, DUART select, and a DTACK acknowledge from the controller itself. After that, the controller converts the byte into a sequence of bits on its TX output on its own. The processor does not need to toggle that output by hand for every bit.
Through the USB–UART adapter, the bits reach the host computer. The terminal receives the bytes and displays the corresponding text. So a visible character is the result of work by the CPU, memory, control logic, DUART, adapter, and terminal.
The firmware's standard serial output uses 115200 bit/s, 8 data bits, no parity, 1 stop bit — 115200, 8N1 for short. The DUART does not take its clock from the processor's 10 MHz, but from its own 3.6864 MHz crystal: this frequency divides into standard serial port speeds without error.

An 8N1 frame for the letter "A": a start bit, eight data bits from least to most significant, and a stop bit. The DUART produces the bits by itself, without the processor.
The A example only illustrates the principle. The firmware's actual welcome text (the banner) begins with control bytes, including a line feed, so the first byte sent does not necessarily produce a visible letter.
Now you can run your own program
By the time you see the banner in the terminal, the board has already gone through a large part of its startup. The processor got its clock, came out of reset, read the initial stack and PC values from ROM, started executing the firmware, used RAM, and configured the DUART to send text.
Next, the firmware places the next stage of the bootloader in RAM and hands control to it. Depending on the build, it can load a program from an attached SD card or receive it over the serial port using the Kermit file transfer protocol. The received code is written to RAM, and then the processor starts executing it.
Your program will use the same mechanisms that just made startup possible: fetching instructions, accessing memory, selecting devices, and moving data over the bus.
In the next article, we will look at a single CPU memory access at the level of timing diagrams: exactly when the signals on the address lines change, how the decoder selects the right chip, how the bytes are transferred, and where DTACK comes from. After that, we will return to RESET and the four initial reads in more detail.