Report Generator

Author(s): Paul Donnelly
Publication: LISTing Newsletter
Date: Sample Issue
Pages: 9-10

Copyright 1983
P.J. Donnelly

Hardware Review: Everything Interface

ITEM:      REPORT GENERATOR BOARD
FROM:      ENER-Z COMPANY
           PO BOX 635
           FORT WASHINGTON, PA 19034
FEATURES:  RTC, A/D, I/O PORTS, PRINTER INTERFACE
PRICE:     $89.95 + PH - Kit available

If you could buy only one peripheral which would let your ZX/TS communicate with the real world, Ener-Z‘s Report Generator just might be it. The board’s features include a real time clock, analog to digital interface, Input/Output ports and a Centronics printer interface. All those features, and the under $80 price tag, sounded like too good a buy to pass up to me, especially since one or two to these features alone would cost more than this board from most other vendors. Does the R.G. deliver? Let’s take a look.

Physically, the R.G. board is 4″ X 6″ and has a cleanly designed physical layout for its 16 IC’s and assorted passive components. Construction is professional, with few jumpers, plated through holes, and sockets for the more critical IC’s. An on-board regulator is supplied. This helps to keep your ZX/TS’s internal regulator cool. A battery holder is provided for the real time clock (RTC) and most of the offboard tie-ins can be made using standard DIP (dual-in-line pin) headers. These last are easy to obtain and inexpensive. In most uses, extra ground or 0 volts lines are provided. These fall between the active lines and should help keep down the effect of transients in your ribbon cables to the real world. The board plugs onto the ZX/TS expansion port and a through-edge connector is provided for other add-ons (e.g., RAMPACKS).

The heart of the R.G. board is a Z80 PIO (peripheral input/output) chip. Through the very clever use of an internal data bus (on the R.G. board), Ener-Z has expanded the capabilities of this simple chip to allow it to address what, in effect, are more than five (5) separate port configurations instead of the conventional two (2). Two versions of R.G. are available, one has all its software on a 2716 EPROM (mine is this type), the other has the driver software in RAM. The RAM version is required if you already are making use of the 2800H to 2B00H area where the EPROM version would normally reside. All functions on the R.G. board are made by USR calls to the appropriate subroutines on the EPROM, which, in turn executes the I/O functions.

An OKI MSM 58321 clock chip provides the year, month, day, week, hour, minutes and seconds for the RTC. With 3 Nicad batteries installed and the clock setting software (supplied as a listing) entered, you need only enter the correct time once and your ZX/TS will always know exactly what time it is. This is especially helpful if you want your ZX/TS to perform certain I/O functions at specified times.

Eight bit input and output ports are provided by a 74LS 244 buffer and 74LS 373 latch respectively. The inputs can monitor digital signals in the TTL range (0 or 5 volts). Real world signals can either be directly coupled to the buffer lines (e.g., simple switches) or coupled through conditioning circuits (e.g., relays). Outputs are also TTL compatible, through load carrying capacity is only moderate. To drive a large fanout or heavy load, you’d need a power amplifying/buffering stage (e.g., triac to run 110 volt circuits).

The analog converter section of the board uses a National ADC0809, eight bit, eight channel port to convert real world signals in the range of 0-5 volts into their digital equivalents. As an example, a measurement of about 50 means the ADC input is seeing about 1 volt d.c. With eight channels, you can monitor the status of 8 separate analogue devices. Typical uses here include monitoring rotary type joysticks (paddles), thermistors, photo-voltaic cells, peak detector circuits and pressure transducers.

Up to this point we’ve seen how this board can tell what is happening off-board (input and A/D), know when it’s happening (RTC) and even perhaps do something about what it sees (output). Now we’re at the stage where, perhaps, you can see how the board got its name. The unit can also generate reports about what’s going on, this time by using its final feature, a Centronics parrallel printer interface. For this important, high speed task the PIO ports are used directly. Eight data lines transmit ASC II character codes generated by a lookup table in the EPROM. The EPROM effectively “overlays” the Sinclair ROM for this operation, allowing the support of Sinclair’s LPRINT, LCOPY AND LLIST commands directly, for the printing of the standard character set. Graphics are not directly supported, but special USR calls can produce a byte code which will produce other characters depending on your printer’s capabilities. The overlay of Sinclair’s ROM appears to be done with a tricky application of the ROMCS signal when the printer commands are invoked.

The other two lines provided by the printer interface are STB and ACK (strobe and acknowledge). I used the interface with a Centronics 101 printer and Ener-Z says it works with EPSON and should work with most other Centronic style printers. I agree, but suggest you include your printer type in any correspondence you have with Ener-Z.

After getting my R.G. board, I put it through its paces, on and off, for over a month. The RTC lost only a few seconds, and I hooked up switches (joystick actually) to the input ports. I’ve used the output ports, all eight lines, with two off-board chips to drive a 3 digit 7 segment display. This last lets me see measurement status without turning on my TV. The A/D converter measured some resistance circuits I’d set up quite accurately and I’ve even tied it into a thermistor and gotten a fairly good thermometer, accurate without amplification to about 2-3°F. To get the printer interface working, you’ll need to make up your own cable. You can get everything you’ll need at Radio Shack or a number of the mail order houses. Try to keep your cable under 8-10 feet in length.

If the R.G. board sounds pretty good up to this point, make no mistake, it is. However, it seems that nothing is ever absolutely perfect and there are some negative aspects to the board. Minor turn offs which don’t really affect the boards performance included a loose battery connector on my board, some “afterthought” pull up resisters tacked on to assure TTL-CMOS compatiablity and the lack of a case. Three more meaningful items, which might even affect your decision to get an R.G. board, do need mentioning. First, is the somewhat hastily prepared documentation. While there is an excellently documented source listing for the EPROM, the supporting narrative on BASIC applications has quite a number of typos and no page numbers. The 29 page documentation swings back and forth between the EPROM and RAM based USR calls, and while a mini hex monitor for loading the RAM version (you must enter this by hand) is provided, the code listing is not. I’d suggest that Ener-Z either prepare two separate versions of the documentation or one complete and comprehensive dual purpose version. I think the average user will be able to use the board, but straight BASIC programmers (i.e., who don’t use ML and have little hardware knowledge), may find they’ll have to make a call or two to Ener-Z for guidance. I found them most helpful on the phone, myself.

The next complaint is one I have voiced before. This is that we’re not told explicitly in either advertising or documentation, which port locations are used. In the case of the R.G. board, with a little digging, the source listing documentation does indicate addresses 01,03,05 and 07. However, a quick look at the board’s partial decoding will show you that any odd numbered port below 80H will respond to the I/O calls from EPROM. Keep this in mind if you have other I/O mapped peripherals.

The other significant “flaw” with the R.G. board has to do more with the “nature of the (TIMEX) beast” than with the board itself. As you probably know, the ZX/TS cannot directly address I/O ports. In order to do so then, we must jump to an ML (machine lanuage) I/O routine and this means using FAST mode and consequently lots of blank screen time and “flicker”. I probably wouldn’t have thought this to be a significant problem if I hadn’t seen JK Audio‘s 310 board. While this board costs about as much as the R.G. and has fewer features as a stand alone board (I/O ports and clock only), it uses memory mapping to accomplish its I/O functions. This means that the JK board can be run completely from BASIC and provide a continuous rock-steady display while performing its I/O function. I don’t feel the R.G. board should be downrated on function because of the difference, only that users should be aware of a need for a little more effort required to produce good looking screens with the R.G. board.

To more than make up for these little flaws, the R.G. offers its high reliability, numerous features, low cost and some bonus features not mentioned in its documentation. The board nominally has one 8 bit input and one 8 bit output port. You could concieveably stretch these, with some off-board multiplexing, to 64 each. How? Schmitt conditioning of signals fed to the A/D converter could give you 8 more digital input lines. Also, the printer port has 8 bits, this time with handshaking. There are other such combinations which you could implement with a few IC’s to suit your particular application. A final extra bonus is that about 180 bytes of the EPROM are not yet programmed. Using sufficient care, and an EPROM programmer, you could use this area to add your own special USR routine to the board.

On balance, I found the R.G. board an excellent value and perhaps (next to my $39.95 TIMEX) the most cost effective computer purchase I’ve made. If you need any two of the board’s features, I recommend buying it. I’ve given this board a hard to get 9.9 on my price-for-value scale. A “10” could be obtained if the unit were also offered as a kit, the RAM driven version was provided on tape, and documentation was cleaned up a little. Ener-Z has done an outstanding job with its first entry into the ZX/TS peripheral market. As a suggetion for further items, some detailed I/O applications (perhaps collected from users) could be provided and even hardware (e.g., temp probes, light pens, synthesizers) described or made available.

P.J. Donnelly