---
title: "How Does Net4CPC Put a W5100S on the Amstrad CPC Bus in Indirect Parallel Mode?"
url: "https://maker.wiznet.io/jaden/projects/how-does-net4cpc-put-a-w5100s-on-the-amstrad-cpc-bus-in-indirect-parallel-mode/"
markdown_url: "https://maker.wiznet.io/jaden/projects/how-does-net4cpc-put-a-w5100s-on-the-amstrad-cpc-bus-in-indirect-parallel-mode/md"
type: "UCC: User Created Content"
author: "salafek"
author_url: "https://github.com/salafek/Net4CPC"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "salafek"
original_url: "https://github.com/salafek/Net4CPC"
license: "GNU General Public License, version 3 or later (GPL3+)"
published: "2026-11-23"
language: "en"
tags: ["retrocomputing", "Amstrad CPC", "SymbOS", "CP/M", "open hardware"]
hardware: ["WIZnet W5100S"]
likes: 0
views: 4
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# How Does Net4CPC Put a W5100S on the Amstrad CPC Bus in Indirect Parallel Mode?

> A stand-alone Ethernet card for the Amstrad CPC: a W5100S on a Mother X4 compatible connector, mapped to four I/O ports in indirect parallel bus mode.

Original author: salafek (source: https://github.com/salafek/Net4CPC)

## Components

- **WIZnet W5100S** x 1: Indirect parallel bus mode, mapped to I/O ports #FD20-#FD23; fitted as a WIZ810SMJ module or a third-party W5100S module ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5100S))

## Article

![](https://maker.wiznet.io/upload/ckeditor5/61b166b7bbd244d3925f44a004795990.jpg)Net4CPC is a stand-alone Ethernet interface for the Amstrad CPC range of computers.

![](https://maker.wiznet.io/upload/ckeditor5/5659e2d2bdc349fcb4a4dbc0c6068ae1.jpg)

*Amstrad CPC*

It is the Ethernet section of the Cyboard expansion pulled out into a card of its own, built around a **WIZnet W5100S** running in indirect parallel bus mode. The card carries a Mother X4 compatible connector, so it plugs into the CPC expansion bus directly.

### Four I/O ports is the whole interface

In indirect parallel bus mode the W5100S needs only four I/O addresses on the CPC side. Everything else — the full register file and both socket buffers — is reached by writing an offset into the two address registers and then reading or writing the single data register.

| Port | Register | Role |
| --- | --- | --- |
| `#FD20` | MR | Common Register |
| `#FD21` | IDM_ARH | Upper 8 bits of the offset address |
| `#FD22` | IDM_ARL | Lower 8 bits of the offset address |
| `#FD23` | IDM_DR | 8-bit data register |

That is what makes the part a good fit for an 8-bit bus: a Z80 machine with a narrow I/O map spends four ports and gets a full TCP/IP controller behind them.

### Two ways to fit the network module

The PCB has footprints for two different module styles, so a builder can use whichever is available.

| Option | Module | Chip |
| --- | --- | --- |
| 1 | Third-party W5100S network module with an integrated 3.3 V regulator | W5100S |
| 2 | WIZnet WIZ810SMJ | W5100S |
| 3 | WIZnet WIZ610MJ | W6100 |

### What is on the board

The bill of materials is short, and that is the point — the W5100S absorbs the work that would otherwise need a much larger design. Besides the network module the card carries three 74-series parts for bus glue (`74LS30` and two `74LS32`), an `AMS1117-3.3` regulator, two `1N4148` diodes, eight 470 Ω resistors, five decoupling and bulk capacitors, and a 50-position right-angle header for the CPC bus. The published BOM lists a Digi-Key part number for every passive and logic part, so the card can be sourced without guesswork.

The board artwork names its own options: the silkscreen carries `W5100S-MODULE` along one footprint and `WIZ810SMJ` along the other, so which module a builder fits is readable off the PCB itself. The revision and credit are also on the copper — `Net4CPC v1.0`, `d_kef 2023`.

The schematic and layout were produced in Autodesk EAGLE 9.6.2 free edition, and the board files are in the repository.

### Software that already speaks to it

Net4CPC is not a bare board looking for a driver. It is supported by SymbOS, the multitasking operating system for Z80 machines, and by the KCNet utilities for CP/M. The author points builders at WIZnet’s own application notes for the programming model.

### What the software actually does with it

Whether the chip’s hardwired stack gets used is a software decision, not a property of the board, so it is worth looking at what the CP/M side does. The KCNet port for Net4CPC answers it in its own header: `w5100-12.inc` describes itself as a “MID LEVEL TCP/IP Driver and HIGH LEVEL Socket Driver” for the “WIZnet TCP/IP-Stack”.

The register equates bear that out. The driver reserves the chip’s own network identity — `N_SIP0` for the source IP, `N_GAW0` for the gateway, `N_SUB0` for the subnet mask — then works through the socket register block at `+0400H`: mode, command, interrupt, state, source port, destination IP. It defines `MAXSEG EQU 1460`, the TCP maximum segment size, and commands including `SCR_CONNECT`, `SCR_LISTEN` and `SCR_DISCON`. Connections are established inside the W5100S; the Z80 moves payload.

It is not locked to that, though. The driver exposes every socket mode the chip offers, and `cpmnet16.mac` dispatches on all of them:

| Constant | Value | Mode |
| --- | --- | --- |
| `SMR_CLOSE` | `00H` | unused socket |
| `SMR_TCP` | `01H` | TCP socket |
| `SMR_UDP` | `02H` | UDP socket |
| `SMR_IPRAW` | `03H` | IP layer raw socket |
| `SMR_MACRAW` | `04H` | MAC layer raw socket |
| `SMR_PPPOE` | `05H` | PPPoE socket |

So a CPC fitted with this card can work either way. The normal path hands TCP to the chip, which is what a 4 MHz Z80 wants; the raw modes stay available for anything that needs frames. The hardware does not force the choice — the value written to the socket mode register does.

### Related — the same chip, the opposite decision

[How Does IP65 Use W5100 MACRAW Mode to Bring TCP/IP to 6502 Machines?](https://maker.wiznet.io/jaden/projects/how-does-ip65-use-w5100-macraw-mode-to-bring-tcp-ip-to-6502-machines/)

That write-up covers a library that opens the same family of chip in **MACRAW** and runs IP, TCP and UDP on the CPU instead. It is linked here because the two make sense as a pair: this card and that library sit at opposite ends of one decision — whether the protocol work belongs inside the controller or inside your code — and between them they show what actually drives the answer.

It is not performance. On raw numbers the chip wins every time; a 4 MHz Z80 or a 1 MHz 6502 would always rather not run a TCP state machine. What decides it is **how many different controllers the code has to survive**. KCNet targets this one board, so it can take the chip’s sockets and keep the Z80 free. IP65 is linked into other people’s programs and has to drive three controllers from three vendors, two of which have no TCP engine at all — so the only interface it can standardise on is the raw frame.

Read together they describe the choice rather than one answer to it, which is the useful thing if you are picking a part for your own design.

### Source

- github.com/salafek/Net4CPC — schematic, board files, `bom.txt`, GPL v3

- Cyboard for CPC — the expansion this card was derived from

- W5100S TCP, UDP and SOCKET-less Command application notes

## 한국어 설명

Net4CPC는 Amstrad CPC용 독립형 이더넷 인터페이스다.

![](https://maker.wiznet.io/upload/ckeditor5/5659e2d2bdc349fcb4a4dbc0c6068ae1.jpg)

*Amstrad CPC*

같은 저자의 확장보드 Cyboard에서 이더넷 부분만 떼어내 단독 카드로 만든 것으로, **WIZnet W5100S**를 indirect parallel bus 모드로 구동한다. Mother X4 호환 커넥터를 달고 있어 CPC 확장 버스에 바로 꽂힌다.

### I/O 포트 4개가 인터페이스의 전부다

indirect parallel bus 모드에서 W5100S는 CPC 쪽 I/O 주소를 네 개만 쓴다. 나머지 전체 레지스터 파일과 소켓 버퍼는 주소 레지스터 두 개에 오프셋을 쓴 뒤 데이터 레지스터 하나를 읽고 쓰는 방식으로 접근한다.

| 포트 | 레지스터 | 역할 |
| --- | --- | --- |
| `#FD20` | MR | Common Register |
| `#FD21` | IDM_ARH | 오프셋 주소 상위 8비트 |
| `#FD22` | IDM_ARL | 오프셋 주소 하위 8비트 |
| `#FD23` | IDM_DR | 8비트 데이터 레지스터 |

I/O 맵이 좁은 Z80 머신에 이 칩이 잘 맞는 이유가 여기 있다. 포트 네 개만 내주면 TCP/IP 컨트롤러 전체가 그 뒤에 붙는다.

### 네트워크 모듈은 두 가지 방식으로 장착한다

PCB에 서로 다른 모듈 두 종류의 풋프린트가 올라가 있어, 구하기 쉬운 쪽을 쓰면 된다.

| 선택 | 모듈 | 칩 |
| --- | --- | --- |
| 1 | 3.3 V 레귤레이터가 달린 서드파티 W5100S 네트워크 모듈 | W5100S |
| 2 | WIZnet `WIZ810SMJ` | W5100S |
| 3 | WIZnet `WIZ610MJ` | W6100 |

### 보드 구성

부품표가 짧은 것 자체가 이 설계의 요점이다. 네트워크 모듈 외에는 버스 글루 로직용 74 시리즈 3개(`74LS30`, `74LS32` 2개), `AMS1117-3.3` 레귤레이터, `1N4148` 다이오드 2개, 470 Ω 저항 8개, 디커플링·벌크 커패시터 5개, CPC 버스용 50핀 라이트앵글 헤더가 전부다. 공개된 BOM에는 수동소자와 로직 부품마다 Digi-Key 품번이 적혀 있어 그대로 발주할 수 있다.

보드 아트워크 자체가 선택지를 설명한다. 한쪽 풋프린트 옆에는 `W5100S-MODULE`, 다른 쪽에는 `WIZ810SMJ`가 실크로 찍혀 있어 어떤 모듈을 꽂는 자리인지 PCB만 봐도 알 수 있다. 리비전과 제작 표기도 기판에 함께 있다 — `Net4CPC v1.0`, `d_kef 2023`.

회로도와 레이아웃은 Autodesk EAGLE 9.6.2 무료 버전으로 작성됐고, 보드 파일이 저장소에 함께 있다.

### 소프트웨어는 실제로 어떻게 쓰는가

칩의 하드와이어드 스택을 쓸지 말지는 보드의 성질이 아니라 소프트웨어의 결정이다. 그래서 CP/M 쪽이 무엇을 하는지 볼 필요가 있다. Net4CPC용 KCNet 포팅은 헤더에서 스스로 답한다 — `w5100-12.inc`는 자신을 "WIZnet TCP/IP-Stack"을 위한 "MID LEVEL TCP/IP Driver and HIGH LEVEL Socket Driver"라고 적고 있다.

레지스터 정의가 이를 뒷받침한다. 드라이버는 칩 자신의 네트워크 신원을 잡아둔다 — 소스 IP `N_SIP0`, 게이트웨이 `N_GAW0`, 서브넷 마스크 `N_SUB0`. 그리고 `+0400H`의 소켓 레지스터 블록(모드·명령·인터럽트·상태·소스 포트·목적지 IP)으로 작업한다. TCP 최대 세그먼트 크기 `MAXSEG EQU 1460`을 정의하고, 명령에는 `SCR_CONNECT`·`SCR_LISTEN`·`SCR_DISCON`이 들어 있다. 연결은 W5100S 안에서 맺어지고 Z80은 페이로드를 옮긴다.

다만 거기에 묶여 있지는 않다. 드라이버는 칩이 제공하는 소켓 모드를 전부 노출하고, `cpmnet16.mac`이 그 전부를 분기 처리한다.

| 상수 | 값 | 모드 |
| --- | --- | --- |
| `SMR_CLOSE` | `00H` | 미사용 소켓 |
| `SMR_TCP` | `01H` | TCP 소켓 |
| `SMR_UDP` | `02H` | UDP 소켓 |
| `SMR_IPRAW` | `03H` | IP 계층 raw 소켓 |
| `SMR_MACRAW` | `04H` | MAC 계층 raw 소켓 |
| `SMR_PPPOE` | `05H` | PPPoE 소켓 |

즉 이 카드를 꽂은 CPC는 양쪽 다 쓸 수 있다. 기본 경로는 TCP를 칩에 넘기는 것이고, 4 MHz Z80에게는 그게 맞다. 프레임이 필요한 쪽을 위해 raw 모드도 남아 있다. **하드웨어가 선택을 강제하지 않는다 — 소켓 모드 레지스터에 쓰는 값이 정한다.**

### 이미 지원하는 소프트웨어

드라이버를 새로 만들어야 하는 보드가 아니다. Z80용 멀티태스킹 운영체제 SymbOS가 지원하고, CP/M에서는 KCNet 유틸리티가 동작한다. 저자는 프로그래밍 모델 설명을 WIZnet 공식 애플리케이션 노트로 안내하고 있다.

### 함께 보기 — 같은 칩, 반대 결정

[How Does IP65 Use W5100 MACRAW Mode to Bring TCP/IP to 6502 Machines?](https://maker.wiznet.io/jaden/projects/how-does-ip65-use-w5100-macraw-mode-to-bring-tcp-ip-to-6502-machines/)

그 글은 같은 계열 칩을 **MACRAW**로 열고 IP·TCP·UDP를 CPU에서 돌리는 라이브러리를 다룬다. 여기에 링크를 걸어둔 이유는 둘이 한 쌍으로 읽힐 때 의미가 생기기 때문이다. 이 카드와 그 라이브러리는 하나의 결정 — 프로토콜 처리를 컨트롤러 안에 둘 것인가 내 코드 안에 둘 것인가 — 의 양 끝에 서 있고, 둘을 겹쳐 보면 무엇이 그 답을 정하는지가 드러난다.

성능이 아니다. 숫자만 보면 칩이 언제나 이긴다. 4 MHz Z80이든 1 MHz 6502든 TCP 상태기계를 떠안고 싶어 하지 않는다. 답을 정하는 것은 **그 코드가 몇 종류의 컨트롤러에서 살아남아야 하는가**다. KCNet은 이 보드 하나를 겨냥하므로 칩의 소켓을 쓰고 Z80을 놀릴 수 있다. IP65는 남의 프로그램에 링크되고 제조사 셋의 컨트롤러를 구동해야 하는데 그중 둘에는 TCP 엔진이 아예 없다 — 그래서 표준으로 삼을 수 있는 인터페이스가 원시 프레임뿐이다.

두 글을 함께 읽으면 하나의 정답이 아니라 선택의 구조가 보인다. 직접 부품을 고르는 입장이라면 그쪽이 쓸모 있다.

---

Source: https://maker.wiznet.io/jaden/projects/how-does-net4cpc-put-a-w5100s-on-the-amstrad-cpc-bus-in-indirect-parallel-mode/
