

Xirtam
MOVED to code.netzhansa.com/hanshuebner/xirtam. This GitHub mirror is archived.
- Size
- 140.3 × 51.9 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 29
- Nets
- 114
- Pads
- 1,886
- Tracks, vias
- 592, 110
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 28 Apr 2021
- Updated
- 2 Aug 2021
Overview
Xirtam is an open-source printed circuit board by hanshuebner, from the hanshuebner/xirtam repository on GitHub. It is a 2-layer board of 140.3 × 51.9 mm with 29 parts on 114 nets, routed with 592 tracks and 110 vias.
It is built around the AT90USB1287-AU and MT093APR1. Its parts include 8 capacitors, 7 connectors, 4 resistors, 3 ICs and 1 switch. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
2AT90USB1287-AU
LQFP-64(14x14)-40℃~+85℃ 128KB 16MHz 2.7V~5.5V 48 4KB 8 Bit 8KB AVR Built-in FLASH LQFP-64(14x14) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)MT093APR1
PLCC-44(16.6x16.6)0℃~+70℃ 4.5V~14.5V 45MHz 65Ω 8 PLCC-44(16.6x16.6) Analog Switches, Multiplexers ROHSMicrochip TechnologyAnalog Switches / Multiplexers
README
README.mdSynopsis
xirtam is a an interface device to connect a USB keyboard to a computer with a matrix keyboard interface, i.e. an 8 bit home computer.
The repository contains the AT90USB1287 firmware source code and KiCAD schematic/PCB design for the xirtam project. It is a fork of the SmallyMouse2 project that implements a similar device for realy computer mice.
Motivation
8 bit home computers interface to their keyboard through a matrix style interface. The main CPU periodically scans the keyboard matrix for key presses converts them to characters or control information as required. This is in contrast to more modern machines, where a separate microcontroller performs the keyboard scanning task and interfaces to the main CPU using a serial interface.
Being able to use an USB interface with an 8 bit home computer is often desireable because of the bad quality that home computer keyboards typically have. Some don't even have physical keys, but most use cheap mechanical switches. Furthermore, the keyboard is always integrated into the system unit, and a detachable keyboard is much desireable.
Implementation
Interfacing a modern keyboard to a computer with a matrix interface is slightly tricky because of the way how the scanning is typically implemented. The keyboard is organized as a matrix of switches, with each switch connecting a particular pair of a vertical and horizontal line of the matrix. It does so by sending a high signal to one of the row lines of the matrix, and then reading back the value sent by the keyboard on the column lines. For each key pressed in the particular row, the respective column bit will be high.
The scanning of the keyboard is a rapid process, with little time between when the row was selected and the column being read. Typically, there will only be a few hundred nanoseconds between when the CPU selects a row and when it reads back the column data. Hence, software based solutions to emulate a keyboard matrix, while they exist, require a very fast microcontroller or additional hardware or software running on the micro to work.
xirtam approaches the timing problem by using a matrix switch chip that works the same way as a physical keyboard. The physical switches of the keyboard are replaced by semiconductor switches inside of the chip which can be controlled by a host interface. When one of the switches is turned on by the host, it connects the row and column at its intersection until the host turns if off again. Hence, the scanning of the keyboard by the home computer can be done at arbitrary rate, like with a physical keyboard.
Matrix switch chips are used in video and
audio crossbar applications and have been around for a long time. They are
available in various configurations and sizes and are reasonably priced. The
chip chosen for xirtam is the MT093.
It was developed by Zarlink (now Microchip) and provides for 96 switches in an
8x12 configuration. It provides an easy to use interface for control,
allowing the microcontroller to address one of the switches on a parallel address
bus and sending the desired switch state on a separate data bit.
xirtam supports both JTAG and USB bootloader programming. The AT90USB1287 is pre-programmed by Atmel with the (FLIP) DFU bootloader; this bootloader is recognised by Atmel Studio as a programming device and can be used to flash the firmware to the board.
Installation
Note: This is an Atmel Studio 7 project that can be loaded and compiled by the IDE
Please see http://www.waitingforfriday.com/?p=827 for detailed documentation about SmallyMouse2
Authors
SmallyMouse2 was written and is maintained by Simon Inns. It was adapted to xirtam by Hans Hübner.
License (Software)
SmallyMouse2 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SmallyMouse2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SmallyMouse2. If not, see <http://www.gnu.org/licenses/>.License (Hardware)
Both the schematic and the PCB design of xirtam (i.e. the KiCAD project and files) are covered by a Creative Commons license; as with the software you are welcome (and encouraged!) to extend, re-spin and otherwise use and modify the design as allowed by the license. However; under the terms of the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license you are required to release your design 5.(or redesign) under the same license. For details of the licensing requirements 6.please see https://creativecommons.org/licenses/by-sa/4.0/
Parts
29| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100nF | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C3, C5, C6, C7, C8 |
| 2 | 10K | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R3, R4 |
| 2 | 22R | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R1, R2 |
| 2 | 22pF | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C1, C2 |
| 1 | 16 MHz | Crystals:Crystal_SMD_5032-2pin_5.0x3.2mm_HandSoldering | Y1 |
| 1 | 1uF | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C4 |
| 1 | 4066 | Package_SO:SO-14_5.3x10.2mm_P1.27mm | U3 |
| 1 | AT90USB1287 | Housings_QFP:TQFP-64_14x14mm_Pitch0.8mm | U2 |
| 1 | Bootloader | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Horizontal | J5 |
| 1 | Conn_01x28_Female | Connector_PinSocket_2.54mm:PinSocket_1x28_P2.54mm_Horizontal | J2 |
| 1 | Conn_01x28_Male | Connector_PinHeader_2.54mm:PinHeader_1x28_P2.54mm_Horizontal | J1 |
| 1 | Debug | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | J6 |
| 1 | JTAG | Connector_IDC:IDC-Header_2x05_P2.54mm_Horizontal | J4 |
| 1 | MT093APR1 | Package_LCC:PLCC-44 | U1 |
| 1 | MatrixInterconnectMatrix | Jumper:matrixinterconnectmatrix | M1 |
| 1 | Power | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Horizontal | J3 |
| 1 | Reset | Button_Switch_SMD:SW_SPST_FSMSM | SW1 |
| 1 | USB_A | SimonsFPLibrary2017:Amphenol_87583-2010BLF | P1 |
The 25 most common of 29 parts.
Similar boards
- 2 layers52.3 × 42.2 mm

- 2 layers447.8 × 139.3 mm

- 2 layers65.5 × 50.8 mm

BeebSCSI
Domesday86/BeebSCSI
SCSI-1 Emulator for 8-bit Acorn computers such as the BBC Master and BBC Model B
60 parts29 - 2 layers101.6 × 76.1 mm

- 2 layers52.3 × 42.2 mm

- 2 layers52.3 × 10.5 mm

StackLink
gusmanb/logicanalyzer
24 channel, 100Msps logic analyzer hardware and software
29 parts5.1kGPL-3.0 - 2 layers56 × 20 mm

HallEffectXY Endstop
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group
29 parts1.1kGPL-3.0 - 2 layers50 × 23.2 mm

Analog
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
29 parts1kGPL-3.0
Questions
How big is the Xirtam PCB?
It measures 140.3 × 51.9 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Xirtam use?
29 parts, built around the AT90USB1287-AU and MT093APR1. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Xirtam KiCad files?
From the hanshuebner/xirtam repository on GitHub, at the commit this page was made from: the board is KiCAD/xirtam.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Xirtam design in my own project?
Its repository states no licence, so its author keeps all rights: ask hanshuebner before reusing the design.