• Please review our updated Terms and Rules here

Epson HX-20 from Bundeswehr, some questions about unusual memory expansion and so on.

macieksoft

Member
Joined
Sep 8, 2017
Messages
13
Location
Poland
Hi. It's my first post on the forum so i'd like to explain some things.
I live in Poland and when i found Epson HX-20 on local auction portal for 150zł (less than 50$) i couldn't resist.
I bought one from the guys who are specialized in post military (demobilized) equipment.

I have some questions about it.
First is how it was used in military? Anybody has any ideas? I heard that HP41 calculators were used onboard flying tankers to calculate things like center of gravity. Some people reports about various programmable calculators from 80s that have been used as MBCs (Mortar Ballistic Computers).
But how was HX-20s used in Bundeswehr? I'd like to know what was the use of the device i have.

I found this one quite unusual. First are the ROM modules that turns out to be EPROMs with stickers on them (they seems to protect those little windows from UV radiation like it used to be with EPROMS). I heard that orignal ones had mask one time programmable PROMs and no EPROMs like mine have. I am talking about ones that stores firmware with BASIC interpreter and so on, the extra EPROM slot is free (there is no chip in it).

The unusual thing is the rater exotic memory expansion board that fits inside. It's smaller than the other internal expansion boards i seen on internet. It seems to use 2 SRAM chips and regarding to datasheet they have 32kB each so it gives 64kB total.

Epson HX-20 can adress only 16kB of memory trough it's expansion port (it has 16kB of RAM by default so when you connect expansion it gives total of 32kB RAM).
This leds to conclusion that there must be software switching implemented (there are no DIP switches on the board) to utilize this 64kB of memory and turn them into banks of 16kB.

The interestning thing is that the module has to be "activated" trough a specal procedure printed on the case. Before activation HX-20 shows 12891 bytes of free memory available to user so it's like any unexpanded HX-20. After going trough procedure it shows 29275 bytes so it's like HX-20 with expansion unit.

So the questions are:
-How it was used in Bundeswehr?
-How to utilize software switching to use the enteire memory in this unusual memory expansion unit?

Below there are photos of the memory expansion board and expansion unit activation procedure.

IMG_4142.jpgIMG_4144.jpg
 
I am having quite a lot of fun when programming this thing. I'd like to share with you one of my first programs i have written. I have updated this program many times and yesterday aswel as today i have spent some time on thinking what could i add to it.

The program is a tenkey type calculator. It is written from scratch and very different from the one that is already available on the net.
-It has automatic trace print function and manual printing functions for result and keyboard register.
-It has 120 memory cells you can use in read/write operations.
-It has statistical module for statistical calculations (count, min, max, diff between min and max, sum, mean) and can also plot a simple bargraph.
-It can be used as framework for you'r own programs so you can run your own programs inside it. Just input your program between certain lines and press certain key to start it.

The downside is that i can't really tell how it will work on keyboard variants other than German. But it should be very easy to modify.
I am publishing this as free software OFC so feel free to edit it and use any way you want.

Software is distributed with manual. Software itself is a MP3 file. Instruction on how to transfer it to HX-20 is provided, you just need jack to jack cable and OFC HX-20 to do it. I am unable to provide listing online as i still have not made my RS-232 cable and i have no Linux to use "HXtape" program.
If you want to list it you would need "HXtape" program or just use your HX-20.

Here is a link: www.macieksoft.cba.pl/softw/hx20/tenkeyhx20.zip
 
Hello,

I've got an HX-20, still just about working, apart from battery (using external rechargeable ones just now).

My unit has an internal RAM expansion, this also requires a initialisation routine, with a set of commands within the MONITOR process. Seem to be very similar to the instructions you have. May not be identical?

The unit can cope with 64k memory total.

Normally, this comprises 16K ROM, and the default of 16k RAM. There are sockets for two extra ROM chips, going from 16k to 32k (my unit has one rom socket with a FORTH programming ROM installed). The RAM can be filled up to 32k either with the external RAM expansion, or with the internal unit (seems there are at least two types).

Loading software via MP3 file?? That's a new one. I'll get the file and check that out!!

I've also got the Epson TF-20 floppy drive unit, which DID work well, but now it does not connect. Maybe damaged the PCB in the HX with constant connect/disconnect of cable socket. TF still seems to go though the motions of booting, etc, so I think it is working otherwise.

Regarding your RAM card, the only option I could think of is that there might be a way to switch OFF the ROM and use the RAM instead??

Geoff
 
Hm, just checked.

The instructions re MONITOR are quite different.

Mine relate to disable of one of ROM sockets to free up for RAM.

My instructions use two byte addresses, i.e. FEFD or FE99, while your instructions refer to single byte addresses 7E and 3B (at the other end of memory??

Geoff
 
Hmm, bit of a mystery here.

The HX external expansion provides either 32k extra ROM or 16k ROM and 16k RAM.

Not sure how the extra ROM fits in.

My 16k RAM board is actually providing 8k extra ONLY, as the FORTH ROM is active. If I switched that off, then I could get the 16k extra RAM.

The manual shows the max memory as 64k, i.e. 0000 - FFFF. 16k RAM, 8k not assigned, 8k 'option' ROM (which is where the FORTH sits), then 32k of ROM for BASIC, and I/O routines.

What shows on your MENU when you turn device on?

Geoff
 
Doing some quick check on the web, there seem to be other machines on offer. One listing refers to use on Bundeswehr aircraft, but not what about.

Further digging might reveal. Also, try to check what's in the ROMs?

Geoff
 
Well, I've never seen reference before to 'memory banks' for the HX....

Trying to check in my manual for what the addresses are for on the initialisation, I find some details for the first one, 7E. The indiv bits for this byte indicate certain things. Bit 4 shows 'currently selected memory bank'!! What constitutes memory bank, I don't know, but seems there in Bank 0 and bank 1, and this bit can of course be 0 or 1 and that's the current bank. The info suggests enter 8?, but I cannot make out what the second char is, maybe it's a special German one. Capital O (Oh) with two dots above? So change may be to swap from Bank 0 to Bank 1?

Geoff
 
Well, according to further checks via web, there do seem to be a number of these units on the market just now, some with extras, others less so.

Does your's have the microcassette drive? Does the drive work?

The Memory expansion unit would seem - from pics on the web - to have two sockets added. This is NOT normal. Any idea what the sockets/connectors are for? Any idea what chips are in the expansion unit (as opposed to the chips in the main unit)?

What's the state of the battery in your's? Proper repl batteries are not easy to find nowadays, I'm using an external battery pack with mine.

Geoff
 
Yes, mine has microcassette drive and it works just fine, i have used it multiple times and i never got any troubles with it. Tape head seems to be in perfect condition.
Orignal (Epson) external memory expansion unit has 2 sockets that are empty by default. From what i have read they are for extra ROM modules, you can fill this with your own ROM, AFAIK it can be set trough microswitch to "replace" orignal ROMs.
I don't own orignal external expansion unit. The device in ex Bundeswehr ones that looks like expansion unit (it has even written "expansion unit" on the case) is actually a charger in a case of expansion unit. This charger has 6.33V output (measured without load) and when current reach 1A it goes into CC (Constant Current) mode. It also has extra socket (probably for a lamp) that is about 30V without load. There is also a socket at the left side, i don't know what it is for, it has unusual 3 pin connector.

When i bought it battery was leaked. It was described as untested. I used to use 4AA batteries externally to power it, however printer causes quite high current spikes and it shows to charge battery when i use it. So when i need to print i just use lab power supply. When you quickly disconnect batteries and connect lab power supply you won't loose data from RAM.

Link worked in Mozilla, but in Chrome some graphic from a hosting provider just showed up.
You can also try https://www.macieksoft.cba.pl/softw/hx20/tenkeyhx20.zip

However now i am preatty sure that it will require some changes in code as i used many INKEY$ statements that reference German keyboard chars.

EDIT:
Proper repl batteries are not easy to find nowadays
I heard about a people who have made their replacements with NICD or NIMH sub C cells. Orignal NICDs were sub C sized.
The problem with NIMH ones is that they seems to have less tolerance for overcharging than NICD. Epson HX-20 has no peak detection at all. Charging circuit is literally 2 elements. Just resistor and a diode. This is why it is important to respect maximum charging time which was orignally 8 hours for a fully discharged battery. From what i recall PX-8 or PX-4 had better charging circuits, but in HX-20 it was as simple as it could be.

Further digging might reveal. Also, try to check what's in the ROMs?
Mine has no extra ROMs. The ones that it has seems to be orignal ROMs, however thay are EPROMs instead of mask PROMs. Expansion memory board i have doesn't have any ROM sockets, just 2 SRAM chips as you can see on the photo.

The manual shows the max memory as 64k, i.e. 0000 - FFFF. 16k RAM, 8k not assigned, 8k 'option' ROM (which is where the FORTH sits), then 32k of ROM for BASIC, and I/O routines.
AFAIK by default you got 32k ROM and 16k RAM. This gives 48k total, so you got 16k available for expansion unit.

What shows on your MENU when you turn device on?
When device isn't initialized (when you remove a power then after some time connect it again) it just shows MONITOR. When i initialize it (or when i turn it ON and there was no power interruption) it shows MONITOR and BASIC, then when i use TITLE statement to name one of my programs they appear on menu screen.

Loading software via MP3 file?? That's a new one. I'll get the file and check that out!!
It is simple. Epson HX-20 has a connectors for external tape drive, it shares same recording format as internal tape drive. Instead of tape drive you can connect any audio device capable or record and playback. PC sound card works well , you just need a 3.5mm jack to jack cable to connect. Single cable is enough because you don't need simultanous record and playback (it's not even possible anyway). Just remember to record in mono, this decreases file size and will work regardless of jack type (should work with 3 pin stereo jacks aswel as 2 pin mono ones). For recording i used free program called Audacity. For playback any program can be used. Manual i provided with my tenkey calc software describes the whole process.
 
Last edited:
Thanks for the note.

My micro cassette was working, but after a long time of no use, when I tried to use it, it read a file for a little while and then came up with an error, so there's something wrong. I suspect the drive band (a rubber band) is a little corroded? I've tried to open the unit up, to see if band can be replaced, but it's difficult to get at. So my mc unit is slightly in bits just now. I've used an external cassette instead, and that seems to work OK.

Interesting about the expansion unit, I wondered if the extra plugs on the top were connected with power or data links, but you're saying power both in and out?

While I had the unit, I'd replaced the battety two or three times, but back then you could buy a proper repl battery pack. Now you cannot, although I think you could get one made, but what cost??

Regarding the printer, if you're printing, then I would use the machine with the power adaptor plugged in and on, so the unit can draw power from the adaptor. I think that will work OK. I think I used to do that while using the TF unit (when the two units were speaking to each other!!). But, maybe you've not got the correct mains adaptor? So this may not be an option? Certainly, the 4 AA batteries may not store enough. My external battery pack uses 4 of the size D cells. Note, the manuals say that the charger CAN be used like this, but ONLY if the batteries are there, as they are part of the curcuit, which as you say, isn't very clever.

Regarding the link, yes, I was getting a graphic from hosting provider as well. Using Chrome. I'll try it again with another browser?

Geoff
 
Interesting about the expansion unit, I wondered if the extra plugs on the top were connected with power or data links, but you're saying power both in and out?
You mean the Bundewehr charger thing in the the case that has expansion unit written on it?
Well. The plug on the top is actually extension of orignal RS-232 8 pin DIN connector. It is here because it would be hard to connect a cable to orignal socket when HX-20 is in this suitcase like case. This way its easier to connect things to this port.
There is also a socket that outputs 30V on the top. From what i have read on case it seems to be used for a lamp.
And then you got a 3 pin socket at the left side. I have no idea what it is for but i can only guess that it is for a kind of external power (from the aircraft?) or so.
This Bundesweh charger unit (this way i gonna call it because it has nothing to do with real expansion unit but the text on the top) has only 2 connection cables going to the HX-20. One goes to the power adaptor socket (where you plug orignal charger) and another goes to the 8 pin DIN RS-232 port, but it is just extension of the port and it is directly connected to the 8 pin DIN socket on top.

This BCU (Bundeswehr Charger Unit, the short way i gonna call it) has 2 trim pots inside. One is changing the voltage on the cable that goes to HX-20, i have no idea what the other one does, i tried to turn it but i couldn't find what it does.

Regarding power supply and printing. I cannot use power adaptor because my HX-20 have power adaptor's plug stucked in the socket. I was trying hard to remove it but it seems to be stuck there forver :p The only way to get rid of it seems to be replacing the the socket.

I gonna add a photo of the inside of the BCU in attachments.

IMG_4827.jpg
 
Hello,

Just found an interesting game from japan for HX-20.

Found it via link http://www.chrismcovell.com/diary.html

I'm still checking this out, so story is not complete yet.

I've now got game loading, and finally it will run. Still some queries about game key commands.

Game is not brilliant, but there are some interesting programming techniques involved.

NB - the game will operate ONLY if loaded in Program Area 1. Due to one of the 'tricks' in the programming!

Geoff
 
But how was HX-20s used in Bundeswehr?

I served in a logistics regiment in the German army in the late 90s (in an electronics support group). From time to time we had HX20 for service and cleaning. I believe that one application was as field computer for land survey/geodesy (and maybe artillery). Leaking NiCd batteries was a problem back then as well as today for these units.... I believe they have been used in Germany by civil authorities as well for land survey applications.
 
Regarding the above, I have had my HX-20 since late 1982, when I got it new.

Over the years, I think I had 3 repl batteries. Maybe 4. Never had any hint of one leaking. I understand that a leaking NiCad is not healthy?

What sort of thing causes/encourages leaking? Was I just lucky never to have seen it. I still have at least two 'dead' packs sitting about now, no longer holding any charge. Again, no hint of any leak.

Geoff
 
There are many factors that can cause leaks. Cell quality matters a lot. Cheap beatteries (i mean non rechargable AA and AAA ones) you can buy everywhere gonna leak if you don't use them for months.
Good cells should survive more time, but eventually they gonna get a leaks too.
From what i heard overcharging them a lot can also cause leaks, aswel as extreme temperatures (especially during charging).

(and maybe artillery)
Would be nice to have some code for a artillery ballistic computer :)

And regarding games, here are some: http://www.wickensonline.co.uk/app/index.html#/hx20
 
Over the years, I think I had 3 repl batteries. Maybe 4. Never had any hint of one leaking. I understand that a leaking NiCad is not healthy?

No leaking NiCd batteries are not healthy for you (Cadmium is poisonous when ingested) or the hardware (eating away the tracks on the PCB). From Commodore machines (PC10, Amiga) I have learned that VARTA is more prone to leakage than other brands they have used. Two weaks ago on the VCF in Berlin I saw my last HX20 with leaking batteries caused severe damage on the kapton foil cable....but I cannot remember the battery brand. Maybe Epson used like C= different brands with different long term corrosion resistance?
 
I finally made my RS-232 cable for my HX-20.
I am now writing terminal software for sending and receiving programs. I got the problem. I cannot find compatible font.
When program is being received and shown in textbox all the "special" Epson characters (mainly those that you type with GRPH key pushed) are turned into question marks. When i then transmit it to the HX-20 they remain question marks...
Would be nice to have a compatible font, but i have no idea if anybody tried doing that. Maybe i should try by myself? Do you have any ideas if this would be possible?

Do you know any software that could make this possible?
 
Last edited:
Not sure what you're meaning, especially which end of the link is which.

The RS-232 link will merely send ASCII codes. It has no idea what those codes mean. It's up to whichever machine is at each end to interpret.

The HX's special characters are still just ASCII codes, the HX merely interprets them a special way and displays a non standard character. Not got the books to jand, but I guess that those ASCII codes mean nothing to your other computer, so you get '?' displayed. BUT, it seems the code is being converted - why? Maybe should keep original code, display '?' as cannot display correct code, but if sends back original code to HX then HX should be able to display correct character as HX knows about this code.

Your prog must be converting code when it ought not to?

I'll dig out manuals and check further.

Geoff
 
The problem is in terminal software i am writting for PC. Or rather in the way the textbox works in the VB.net. When it gets code it cannot convert to some font it simply converts it into question mark.
I hope i would be able to solve it by saving the data to text file bypassing textbox. I belive that this way orignal charcode will be kept, but i have to check that.

It would be still the best option to have a font that can make use of those "special" chars, this way editing HX-20 programs on PC would be possible. I never tried to make fonts, so i am asking if it would be possible to create one that would actually display those "special" chars. If yes, what software to use? Maybe it would be possible to use some already existing LCD fonts (there are some of them over the internet) and just add those special chars?
 
Back
Top