Zilog SIO/2 programming

70 views
Skip to first unread message

Jon Jones

unread,
Oct 12, 2025, 2:56:30 PMOct 12
to retro-comp
I’m playing with writing my own code to work with the Zilog SIO/2. Things are going (surprisingly!) well but I’ve spotted something confusing in SIO data sheet.

In the Reading Registers section (page 312), it says:

"To read the contents of a selected read register other than RRD, the system
program must first write the pointer byte to WR0”

But I can’t find any other mention of RRD. Is this a typo of RR0? If so, after every read does the SIO “reset” back to register 0?

Jon.

Mark Durham

unread,
Oct 12, 2025, 4:50:06 PMOct 12
to retro-comp
From my limited exposure to the SIO, all the registers are either RRn or WRn where n is a digit. If your datasheet is hard to read or possibly OCR'd then there's a good chance that the digit 0 became a D.

The SIO technical manual says:
Following a read or write to any register (except WR0), the pointer will point to WR0.

From memory you have to set the pointer up again in WR0 after every read or write, unless you are accessing RR0 or WR0.

Hopefully I've got that right!

Mark.

Alan Cox

unread,
Oct 12, 2025, 5:16:18 PMOct 12
to retro-comp
The original documents appear to have been OCR'd to make the modern ones. On the old documents it looks more like a 0.

The WR/RR thing is a complete pain in the arse when you have interrupts involved and need to read anything but RR0.

Alan

Jon Jones

unread,
Oct 12, 2025, 5:58:46 PMOct 12
to retro-comp
I didn’t realise many of the docs had been OCDed. Someone’s done a great job of tidying them up! This is what I’m seeing:

Screenshot 2025-10-12 at 22.56.48.png

Mark Durham

unread,
Oct 13, 2025, 3:22:21 AMOct 13
to retro-comp
I would be wary of any documentation not from the original manufacturer that looks that pristine for a part of that age.

However I must admit that it does make searching the document a lot easier if the original has been OCR'd.

Ed Porter

unread,
Oct 13, 2025, 4:00:42 AMOct 13
to retro...@googlegroups.com
Introducing errors into the text is not doing a great job of tidying
them up. The 1994_Zilog_Z80_Microprocessor_Family_Users_Manual.pdf on
bitsavers includes the SIO docs, is searchable, and isn't mangled.

https://bitsavers.org/components/zilog/z80/1994_Zilog_Z80_Microprocessor_Family_Users_Manual.pdf

SIO starts around page 400.

-ed

Alan Cox

unread,
Oct 13, 2025, 4:39:38 AMOct 13
to retro-comp
The OCR and clean up documents are from Zilog. The original documents were 1970s era and presumably at some point Zilog redid them and OCR imported them into more modern tools.

Zilog manuals in general contain minor errors though, like most vendors.

--
You received this message because you are subscribed to the Google Groups "retro-comp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to retro-comp+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/retro-comp/e5e0491d-a57d-4d97-9dae-7f3444bc8db3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages