[
]
The later, more popular TRS-80 Model 100 line, designed by Kyocera, owed much to the design of the HX-20.
LCD
The LCD is 120x32 pixels and is controlled by six uPD7227 LCD controller ICs each responsible for 40x16 pixels of the LCD. The uPD7227 uses a serial protocol and has two memory banks for switching between rows 0-7 and 8-15. It features multiple modes, including "Write", "Read", "AND", "OR" and "Character". The "character" mode draws characters from a built-in character map.
Each bank is 40 bytes with bit 6 of the address determining the bank and even though the address can be up to 127, nothing will happen when trying to access data outside the banks. If the pointer action in a command is set to decrement and the pointer is at 0, the pointer will wrap to 127.
Monitor
The Monitor program can be accessed via the main menu on startup by pressing 1, by typing the command "MON" in BASIC or by causing a trap, ie. writing/reading to/from protected addresses or executing an illegal instruction.
In the case of a trap, "Trap!" will be displayed in the Monitor and the user can use it for debugging.
When entering Monitor it shows a prompt on the first line, "Trap!" on the second line (if entered via a trap) and the CPU registers on the third and fourth lines as they were right before the Monitor was entered. These registers are A (Accumulator A), B (Accumulator B), X (Index Register), C (Condition Code Register), S (Stack Pointer) and P (Program Counter).
Monitor can be used for reading and writing memory, modifying CPU registers, running code at specific addresses in memory, saving/loading memory to/from a plugin option, etc. This is very useful for debugging programs written in machine code in difference to programs written in the EPSON BASIC programming language.
Commands
Expansion port
The expansion port allows hardware to connect directly to the master processor's memory bus, exposing the 16-bit address bus, 8-bit data bus and control signals. An external device can add ROMs, RAM or MMIO-devices to the master CPU's address space. The address range 0x4000-0x5FFF exists solely for this purpose but almost any address can be used.
There's an "expansion unit" which contains sockets for extra RAM and ROMs which can be mapped to various areas in the address space using a DIP switch, even replacing the BASIC interpreter ROMs. Some software distributed as ROMs were designed to be used in the expansion unit.
Memory map
ROM #0 and #1 are known as the I/O ROMs, handling system reset and providing functions for using the LCD, keyboard, clock, printer, speaker, serial communication, etc. The I/O ROMs are equivalent to the BIOS in modern PCs.
ROM #0 also contains the interrupt vector table at FFF0-FFFF. FFFE-FFFF determines what the program counter should be set to on power up or reset. In the standard set of ROMs for the HX-20, this value is E000, the start of ROM #0.
ROM #2 and #3 contains the BASIC interpreter. If the BASIC ROMs are removed from the motherboard, the BASIC option in the main menu will disappear, leaving only MONITOR. This is because ROM #3 contains a program header which is detected by the menu routines. This works the same for all user-created programs, except the program type is different.
Similar Epson models
HC-80 (Japanese version of the PX-8)
HC-88 (Japanese version of the PX-8)
HX-40 (American version of the PX-4)
HX-45 (American version of the PX-4)
KX-1
PX-16 (IBM PC compatible portable, cartridges compatible with PX-4)
PX-4 (successor of the HX-20, with larger screen and CP/M compatible like the PX-8)
PX-8 (Geneva)
QX-10 (CP/M desktop), QX-16 (like the QX-10 but with MS-DOS compatibility)
EHT-30, EHT-40
References
Problems
A common complaint found in most HX-20 computers today is the failure of the internal Ni-Cd rechargeable battery pack. The battery pack is easily replaced by a NiMH (or equivalent) battery pack. Changing the battery pack is not generally considered to reduce the collectible value of the computer, as doing so does not damage any internals.
An easy fix for replacement batteries is to use four AA cells in a holder secured on the inside. The leads can be easily soldered on to the connector from an original battery. It can also work with a lantern battery on alligator clips.
External links
Epson HX-20 documentation, photos and software
Epson’s HX-20 manual and additional material
HX-20 utility and game programs
'HXTape' program to read and write tapes via a soundcard
old-computers.com article on the HX-20
1983 review of the HX-20
vintage-computer.com article about the HX-20
Category:Laptops
Category:Seiko Epson
Category:History of computing hardware