3. HARDWARE OVERVIEW

Below is a block diagram of the DCDM:

3.1 HC11 MICROCONTROLLER

The DCDM is based on the Motorola MC68HC11 microcontroller, running in expanded bus mode, which features an external 8 bit data and 16 bit address bus. Additionally, the HC11 features an RS232 serial port and an 8 channel, 8 bit analog to digital converter. The system clock and bus run at 2.0 Mhz.

3.2 MEMORY

The HC11 can physically address 64kb of memory, which is divided into static RAM, ROM, EEPROM, and miscellaneous internal registers. Below is the memory map for the HC11 used in the DCDM:

The user 8kb RAM located at address $6000 is external to the HC11, as is the 16kb EPROM located at address $C000. Also, there are three registers located external to the HC11: the LCD register ($8000); the ISP register ($8001); and a general purpose register ($8002). Memory decoding is performed by a Lattice ISP2032, which is discussed in the next section.

3.3 EXTERNAL ADDRESS DECODER AND REGISTERS

Address decoding is performed by a Lattice ISP2032 device. The Lattice ISP series performs much like conventional programmable logic, however, it can be reprogrammed without needing any special hardware. Connector P1 and jumper J15 are used to program the ISP2032 via a PC with a serial port equipped with an ISP adapter cable.

The inputs to the memory decoder are the 6 least significant bits and the 4 most significant bits of the address, as well as Memory Read/Write control line (R/W*) from the HC11. Based on these inputs, various control signals are generated and used to select the external registers, ROM, RAM, and LCD for reading or writing.

In addition to providing memory decode logic, the Lattice ISP2032 contains an 8 bit write-only register (ISP REG) located at address $8001. Unused outputs of the ISP2032 (PAL[0:5]) are brought out to header J16 for future expandability.

3.3.1 INTERNAL ISP REGISTER

At the time of writing, only one bit of the internal ISP register is used, and it is used to enable the 2.2k ohm pullup resistors. Bit 0 of the ISP register is brought out to a pin on the ISP2032 and named EN_BIAS. It is read only and is located at $8001. The role of EN_Bias is explained in greater detail in section 3.4.

3.3.2 GENERAL PURPOSE REGISTER

The general purpose register is actually split into two registers, one for writing (chip U9, a 74HCT273 octal D flip flop) and one for reading (chip U8, a 74HCT244 octal buffer). Both of these registers are located at address $8002.

When address $8002 is read the input bits to U8 are "seen" by the HC11. At the time of writing, only 5 of the 8 bits of this register are being used: bit 0 is the Start Button, and bits 1 through 4 are used to read the configuration toggle switches. The unused bits (GPIBIT[0:2]) are brought out to headers J14 and J12 for future expandability.

3.3.3 LCD REGISTER

The LCD register acts as a buffer between the HC11 data bus and the 8 bit LCD interface. The LCD register is implemented with a bi-directional latch, allowing the LCD interface to be read by the HC11. The only situation where this might be useful is if the "LCD ready" bit was being polled by the HC11. At the time of writing the LCD register is only being used as a write only register, and software delays are being used instead of polling the "LCD ready" bit.

Writing to the display is a three step process. First, the data (either an ascii value or instruction) is written into the LCD register. Then, another write to the general purpose register sets up any extra control signals needed by the LCD module. Lastly, the LCD E bit is toggled though another series of writes to the general purpose register. See section 3.5 for more information about the LCD interface.

3.4 ANALOG TO DIGITAL CONVERTER AND ANALOG MULTIPLEXER

The HC11 is equipped with an 8 channel, 8 bit ADC, designated Port E. However, only 4 of the 8 channels can be digitized at once. The sampled analog voltage cannot exceed the reference voltage VRH, nor can it be more negative than VRL. For the DCDM, VRH is set to 5 volts, and VRL is set to 0 volts. For example, an input voltage of 5.0V would be digitized as 0xFF, and an input of 2.5V would be digitized as 0x80.

Due to the large number of analog voltages that need to be digitized, a system of multiplexers is utilized. A total of 80 lines are fed into 5 dual channel 8 to 1 multiplexers. These select lines are controlled directly by the HC11 via PORTA[3:5]. The 10 outputs of these multiplexers are fed into another series of 2 channel, 4 to 1 multiplexers. The select bits of this second set of multiplexers are directly controlled by the HC11 via PORTA[6:7].

Due to the fact that signals on the DART cables are differential, and that they multiplexers are wired in such a manner that

Because some of the termination networks have no external bias voltage, the DCDM incorporates pullup and pulldown resistors that can be enabled or disabled. Setting bit 0 in the internal ISP register enables the 2.2k ohm pullup and pulldown resistors, which connect to the outputs of the dual channel 8 to 1 multiplexers. Since the analog multiplexers have a low impedance, the pullup and pulldown resistors are effectively connected to the "floating" termination resistor. The multiplexer network is shown on page 2 of the schematic in appendix C.

3.5 LIQUID CRYSTAL DISPLAY

The Optrex LCD interface is 11 bits wide: 8 bits are for data, and the remaining three bits are for control signals. The 8 data bits are connected to the HC11 data bus via the LCD register, and the control signals are set with bits in the general purpose register and the ISP2032 memory decoder.

The LCD contains a small microcontroller capable of writing ASCII values to the screen one character at a time, and also executing a small number of instructions. Some instructions are: clear screen, set cursor position, turn cursor on or off, turn screen on or off, and shift the display. After the LCD receives data, there is a short delay before new data can be accepted. This delay varies from 1.6ms for complex instructions such as initialize or clear screen to 40ms for most of the other instructions. When the LCD is again ready to accept data the "Ready" bit is set.

3.6 SERIAL I/O

In addition to the LCD panel, the DCDM is equipped with a RS232 port that provides access to additional information such as: self-test results, raw digitized data, lookup tables, and extended error messages. Originally it was used as a debugging tool. Set communications software to 9600 baud, 8 bits, 1 stop bit, no parity. Additionally, flow control such as RTS/CTS and XON/XOFF must be disabled. To construct a serial cable, refer to the chart below.

3.7 ELECTRICAL AND MECHANICAL SPECIFICATIONS

PC Board Construction

  • 4 layer PCB.
  • 3 signal layers, 1 ground layer.
  • Aluminum bar reinforcement on solder side.

    Size

  • 195mm wide x 190mm deep x 63mm tall.

    Power Requirements

  • +5.0 VDC
  • -5.0 VDC
  • +3.3 VDC

    Cooling Requirements

  • No cooling required for this card.