SX
Microcontroller
Input / Output
Ports
SX Microcontroler IO Port Setup
IO Expansion
Interfacing the SX to common types of IO ports:
Serial
(
RS-232
RS-485
USB
I2C
IR
)
Parallel
Mouse Ports
Keyboards
Port Pin Tips, Tricks, Traps, Gens and Snares
Edge Detection
Also:
Interfacing to Devices
RS-232 / I²C-Adapter & Parallel I/O Module
Custom bi-directional 2-wire interface
. Primarily a nice UART with Parity, but it also includes code for a bi-directional 2-wire interface (halfduplex serial line + write enable line used for direction synchronization). By Peter Verkaik.
See also:
http://www.lastditcheffort.org/~adam/projects/keyboard/keyboard.html
Apple Chording Keyboard "Another plastic fruit-based peripheral. " built around an 18-pin SX microcontroller but the source code has apparently been lost.