MAXIM MAX187EVKIT

19-0313; Rev. 0; 9/94
MAX187 Evaluation System/Evaluation Kit
___________________________Features
♦ Evaluates MAX187 and MAX189
The EV system can function as a data acquisition system,
collecting samples from the MAX187, storing them in memory, and displaying the conversion results on the host computer. Conversions may be self-timed or synchronized to
an external timebase. Waveforms can be digitized and displayed graphically versus time.
♦ QSPI Serial Interface
The EV system can also evaluate the MAX187’s shutdown
feature, and has provisions for monitoring the supply current in the various modes of operation (internal reference,
external reference, or power-down).
♦ Proven PC Board Layout
Order the EV system (MAX187EVC16-DIP) for comprehensive evaluation of the MAX187 or MAX189. Order the standalone EV kit (MAX187EV KIT-DIP) for custom use or if the
68HC16 module (68HC16MODULE-DIP) has already been
purchased with another Maxim EV system. The MAX187
EV kit can also be used to perform limited evaluation on a
stand-alone basis (see the MAX187 EV Kit Quick Start section). The EV system requires an external DC power source
(such as a 12V DC wall transformer) and an IBM-compatible computer with a serial port and a 5 1/4" disk drive. To
evaluate the MAX189, order the MAX187EVC16-DIP plus a
free sample of the MAX189BCPA.
♦ Fully Assembled and Tested
♦ Complete Evaluation System Includes EV Kit and
68HC16 µC Module
♦ 12-Bit Resolution ADC
♦ 0V to 4.096V Input Range
♦ Internal Reference Voltage (MAX187)
♦ Low-Supply-Current Shutdown Mode
♦ Complete Source Code Provided
♦ Convenient Test Points Provided on Board
♦ User Prototype Area
______________Ordering Information
TEMP. RANGE
BOARD TYPE
MAX187EVC16-DIP
PART
0°C to +70°C
Through-Hole
MAX187EVKIT-DIP
0°C to +70°C
Through-Hole
68HC16MODULE-DIP
0°C to +70°C
Through-Hole
___________________________________________________________________EV System
™QSPI is a trademark of Motorola Corp.
________________________________________________________________ Maxim Integrated Products
Call toll free 1-800-998-8800 for free samples or literature.
1
Evaluates: MAX187
_______________General Description
The MAX187 evaluation system (EV system) consists of a
MAX187 evaluation kit (EV kit) board plus a Maxim
68HC16 microcontroller (µC) module. Both boards come
fully assembled and tested, and software is provided. The
unit connects to an IBM-compatible personal computer.
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
_______EV System Component List
QTY
1
1
DESCRIPTION
MAX187 evaluation kit (MAX187EVKIT-DIP)
68HC16 µC module (68HC16MODULE-DIP)
__MAX187 EV System Quick Start
This section applies only to the use of the MAX187 EV
kit operating with Maxim’s 68HC16 module.
1) Copy the files from the distribution disk to your hard
drive or to blank floppy disks. Store the MAX187 EV
kit software in its own directory to prevent conflicts
with other Maxim EV kit files. The necessary files are
in the root directory of the distribution disk, and
ancillary files are located in the SOURCE and
TMS320 subdirectories. These subdirectories are
not required for EV kit operation, and are described
in other sections of this manual.
2) Carefully connect the boards by aligning the 40-pin
header of the MAX187 EV kit with the 40-pin connector of the 68HC16 µC module and gently press
them together. The two boards should be flush
against one another.
3) Use a small flat-blade screwdriver to connect a 9V
to 15V DC power source to the µC module. The terminal block is located next to the on/off switch, in
the upper right corner of the module. Observe the
polarity marked on the board.
4) Connect a cable from the computer’s serial port to
the µC module. If using a 9-pin serial port, use a
straight-through 9-pin female-to-male cable. If the
serial port uses a 25-pin connector, a standard 25pin to 9-pin adapter will be required.
5) Start up the MAX187 software on the IBM PC by setting the current directory to match the directory containing the Maxim programs, and then type the program name “MAX187”.
6) The program allows the user to select which serial
port is connected to the µC module. Press the
space bar until the correct port is highlighted, then
press ENTER.
7) The MAX187 program will switch to terminal-emulation mode. At this point, apply power to the 68HC16
module. The LED should light, and within 5 seconds
2
____________EV Kit Component List
DESIGNATION
C1
C2, C3
J1
J4
JU1
R1
U1
None
None
None
QTY
1
2
1
1
1
1
1
4
1
1
DESCRIPTION
0.1µF ceramic capacitor
4.7µF electrolytic capacitors
Female 40-pin data connector
6-pin header
3-pin header
10kΩ resistor
Maxim MAX187ACPA
Rubber feet
8-pin socket for U1
MAX187 printed circuit board
the program will display a logon banner. The LED is
a status indicator, not a power indicator; it will flash
to indicate module readiness. Refer to the 68HC16
module self-check system.
8) To download and run the RAM resident code on the
µC module, press ALT+L (i.e. hold down the ALT
key and strike the L key). The program prompts for
the file name. Press the ENTER key to download
and run the file KIT187.S19 on the 68HC16 module.
9) The KIT187.S19 RAM resident program offers a
menu of commands, listed in Table 1.
Stand-Alone MAX187 EV Kit
_________________________Quick Start
This section applies only to the use of the MAX187 EV
kit without the µC module.
1) Connect a regulated 5V DC power supply to the terminals labeled POS5 and GND. The GND pad is
ground, and the POS5 pad is the 5V input. The
board draws less than 5mA of supply current.
2) To enable the MAX187’s internal reference, connect
the SHDN pin to 5V. To use an external reference,
leave the SHDN pin open and provide a reference
voltage at the VREF pad. To put the MAX187 in
shutdown mode, connect the SHDN pin to ground.
3) Connect the interface signals to the CS, SCK, and
DOUT test points. Use the AGND test point as signal ground. See the MAX187 data sheet for timing
information.
4) Apply the input voltage to the terminals labeled
INPUT and GND.
_______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
EPROM Resident Program
A small bootstrap program is stored in the EPROM
located on the 68HC16 board. The EPROM resident
program initializes the 68HC16, tests the static RAM,
configures the chip-select logic, establishes serial communications with the host, and downloads a program
into RAM. It starts operating on power-up or whenever
the RESET button is pressed. After RESET, it tests the
RAM and then waits to receive a character on its serial
port before transmitting its identification banner.
RAM Resident Program
KIT187.S19 and MIN187.S19 are 68HC16 RAM-resident
programs that are transferred from disk to the static RAM
on the 68HC16 module. They are used transparently by
the example programs. The example programs that do
not require the full command set of KIT187 download the
MIN187 program, which is smaller and implements only
the read and collect commands. Because the MIN187
occupies less user RAM, more sample data can be collected (MIN187 can collect approximately 400 more
samples than KIT187 before it must upload the samples
to the host.) When the KIT187 program is running, it
offers the commands listed in Table 1. The MIN187 program commands are listed in Table 2.
Table 1. Commands Available when
KIT187.S19 is Running
KEY
Space
FUNCTION
Read the MAX187 and print result in decimal.
V
Repeatedly read the MAX187 and print result in
decimal.
R
Read the MAX187 and print result in hexadecimal.
O
Oscilloscope test; observe system timing by operating the MAX187 at high speed without processing
the data.
S
Set the state of the SHDN pin.
L
Display low-power menu.
D
Set power-up delay and sleep time
(low-power menu only).
T
Test the accuracy using the current power-up delay
and sleep time settings (low-power menu only).
M
Return to main menu (low-power menu only).
?
List the available commands.
Personal Computer Program
MAX187.EXE, which runs on an IBM-compatible computer, is a terminal program that establishes communication
with the 68HC16 module and allows the user to download and run a Maxim-provided RAM resident program.
The serial communication baud rate is initiated at 1200
baud to ensure proper operation with slower systems.
The MAX187.EXE program provides several commands
that are associated with the host computer. These functions are listed in Table 3.
The MAX187.EXE program can store the text of a terminal session in a log file. To begin recording the terminal
session, press ALT+O [the letter O]. The program will
ask for a file name. Press ENTER to accept the default
file name, or type in a different name. If there is already
a file with that name, the old file will be erased. To close
the file, press ALT+C. The log file will contain the complete text of the terminal session from the time when the
file is opened until the file is closed.
Graphing Program
The program SAMPL187.BAS samples the MAX187
and draws a graph of voltage over time. Preset sample
rates range from 2.5ksps to 10ksps. The time base is
approximate and there is no triggering mechanism, so
this program is only suitable for observing the waveforms of an external frequency generator.
Table 2. Commands Available after
MIN187 has been Downloaded
KEY
FUNCTION
?
Print RAM resident program version and list of commands available.
r
Read the MAX187 and display the value as a 2-byte
hexadecimal number.
c
Collect and upload a number of data samples to the
host PC. Samples can be collected at full speed, or
collected with a fixed delay, or collected in accordance with an external clock. Approximately 16,000
samples may be collected and they can be displayed in either decimal or in hexadecimal.
ESC
Exit the evaluation software.
_______________________________________________________________________________________
3
Evaluates: MAX187
________________Detailed Description
__________________________of Software
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Table 3. Commands Available in
MAX187.EXE Terminal Program
KEY
FUNCTION
68HC16
I/O
ALT+L
Load and run resident code on 68HC16.
ALT+X
Exit to DOS.
ALT+P
Change port (COM1, COM2).
PCS0
MAX187
SHDN
CS
SCK
SCLK
MISO
DOUT
ALT+R
Send RESET command to 68HC16.
ALT+O
Open a log file.
ALT+C
Close the log file.
ALT+B
Display baud rate menu.
ALT+1
1200 baud
Programming Languages Used
ALT+4
4800 baud
ALT+9
9600 baud
ALT+2
19200 baud
The IBM PC programs were compiled under Borland
C++ version 3.1. The EPROM and RAM resident
68HC16 programs were assembled using the Motorola
68HC macro assembler version 4.1, which comes with
Motorola’s 68HC16Z1EVB evaluation board. Contact the
Motorola Microprocessor and Memory Technologies
Group at (512) 891-2628.
Figure 1. QSPI Interface Schematic
Table 4. Compiled Program Dependencies
PROGRAM
SIMPLE.EXE
PROGRAM SECTION
SOURCE FILES
main program
simple.c
68HC16 command
interface
sercmd.c, sercmd.h
MAX187 EV kit commands
max187.c, max187.h
main program
shell.cpp, global.h
custom controls
meters.cpp, meters.hpp
MAX187.EXE terminal + downloader
download.cpp,
download.h
68HC16 command
sercmd.c, sercmd.h
interface
MAX187 EV kit commands max187.c, max187.h
DOS Development Platform
For applications that require custom software, the MAX187
EV kit includes a set of programs that can be used as a
development platform to extend the functionality of the
basic kit. Source code is in the SOURCE subdirectory of
the MAX187 EV kit disk. Advanced C or C++ programmers should see Table 4 for the makefile dependencies.
The simplest program that accesses the MAX187 EV kit is
SIMPLE.EXE, which loads the small RAM resident program into the 68HC16 module and then performs continuous conversions, until the user presses a key.
To run the SIMPLE.EXE program, enter the command SIMPLE from the DOS prompt. The program will ask which serial port is connected to the µC module. Press the ‘1’ number
key to select COM1, or press the ‘2’ number key to select
COM2. To terminate the program, press the ESC key.
4
The BASIC programs are written in Mircosoft QuickBasic
1.0, which comes with MS-DOS 5.0 and later versions.
Using the QSPI to Read the MAX187
The 68HC16 module uses its queued serial peripheral
interface (QSPI) in master mode to read the MAX187
between conversions. Figure 1 shows the schematic of
the QSPI interface connections. The MAX187 EV kit software uses the following algorithm (provided on disk in the
SOURCE subdirectory, file MIN187.ASM):
1) Initialize QSPI parameters as follows:
Master Mode
SPBR = 2 (4.192MHz serial clock)
CPOL = 0, CPHA = 1
BITS = 13 bits per transfer
DTL = 1 (1.9µs delay after transfer)
(DSCKL is not used)
Control RAM entry must enable BITS and DTL;
CS = 0 when active.
2) Assert CS low.
3) Wait 8.5µs (maximum conversion time for the
MAX187) or until MISO goes high. (Since DSCKL is
only 7 bits, the maximum delay-before-clock available
for a 16.78MHz 68HC16 is 128/16.78MHz = 7.628µs.
Thus, the QSPI’s DSCKL parameter cannot be used
unless the system clock frequency is reduced.)
4) Start QSPI transfer.
5) Wait until QSPI transfer is complete.
_______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
Evaluates: MAX187
Listing 1. Using the QSPI to Read the MAX187
_______________________________________________________________________________________
5
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
CS
(PCS0)
2
5
SCLK
(SCK)
4
3
1
DOUT
(MISO)
START BIT
1
2
3
4
5
D11
D10
D9
D0
QSPI
READ
CONVERSION TIME – MAX187: 8.5µs MAX
DELAY BEORE QSPI CLOCK: DSCKL (8.5µs) (16.78MHz) = 143 (BUT DSCKL MUST BE LESS THAN 128,
SO IT CANNOT BE USED UNLESS THE SYSTEM CLOCK SPEED IS REDUCED)
MAX187 SCK TO DOUT DELAY: 150ns MAX
QSPI SETUP TIME: 30ns MIN
SCK PERIOD: 30ns + 150ns = 180ns MIN
1
MAX FREQUENCY =
= 5.56MHz MAX
180ns
SPBR = 2 SETS BAUD RATE TO 16.78MHz = 4.195MHz
2x2
1
ACTUAL SCK PERIOD =
= 238ns
4.195MHz
Figure 2. MAX187 to QSPI Interface Timing (CPOL = 0, CHPA = 1)
6) Set CS high.
7) Extract the 12 significant bits from the read queue.
The data is right-justified.
Figure 2 is the timing diagram for the QSPI interface.
Listing 1 is an assembly-code listing that shows how to
use the QSPI to read the MAX187.
Using Bit-Pushing to Read the MAX187
The QSPI is not required by the MAX187. The MAX187
may be read by any equivalent bit-pushing algorithm. The
following algorithm reads the MAX187 by setting and
clearing I/O bits, and is functionally equivalent to the QSPI.
1) Assert SCK low.
2) Assert CS low.
3) Clear a 16-bit register that will be used to store the
reading.
4) Wait until DOUT becomes high.
5) Set SCK high.
6) Assert SCK low.
7) Repeat 12 times:
7.1) Set SCK high.
7.2) Rotate the 16-bit reading register left one bit
(i.e. multiply by two).
6
7.3) Read DOUT into least significant bit of
reading register.
7.4) Clear SCK low.
8) Set CS high.
9) Extract the 12 significant bits from the 16-bit result
register. The data is right-justified.
____________Evaluating the MAX189
The MAX187 EV kit supports both the MAX187 and
MAX189 ICs. The only difference between the two
devices is that the MAX189 requires an external reference. Refer to the MAX187/MAX189 data sheet for the
MAX189 reference requirements.
Detailed Description
________________________of Hardware
MAX187 ADC
The central component of the evaluation board is the
MAX187 analog-to-digital converter (ADC). Capacitor
C1 is close to pin 1, C3 is close to pin 4, and analog
ground is star grounded at pin 5. DC offset error may
be improved by adding a 0.1µF capacitor between
INPUT and AGND.
_______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
PIN
No.
68HC16
SIGNAL
MAX187
SIGNAL
1–4
GND
AGND
Ground
FUNCTION
7–8
+5V
+5V
+5V Supply to MAX187
Evaluation Board
30
OC1
SHDN
Shutdown Pin
35
MISO
DOUT
Serial Data Output from
MAX187
37
SCK
SCLK
Serial Clock from 68HC16
38
PSC0
CS
Chip Select from 68HC16
Table 6. 68HC11/SPI Interface
Connections
SPI
SIGNAL
MAX187
SIGNAL
SPARE I/O
SHDN
SPARE
OUTPUT
CS
MISO
DOUT
Serial Data Output from MAX187
SCK
SCLK
Serial Clock from 68HC11
SS
—
FUNCTION
Shutdown Pin
Chip Select from 68HC11
Slave Select Input to 68HC11;
must be pulled up to 5V.
All other pins are reserved.
Measuring Supply Current
To measure the amount of supply current drawn by the
MAX187, use the following procedure:
1) Turn off the power to the EV system.
2) Carefully cut the trace at J2.
3) Install a 2-pin header at J2.
4) Connect a current meter in series with J2.
The direction of current flow is marked with an arrow.
Do not connect or disconnect the current meter while
the power is on.
After observing supply current in operating and in shutdown modes, the board may be restored by installing a
shunt at J2.
Data-Connector Interface
The 68HC16 and MAX187 communicate through the
QSPI port on the 40-pin data connector. Table 5 lists
the function of each bit when interfaced to the 68HC16
module. Figure 1b shows the QSPI interface schematic
diagram.
_______________________SPI Interface
A 68HC11 can use its SPI™ (serial peripheral interface) to read a MAX187. Table 6 lists the interface
connections required by the SPI serial interface.
Figure 2 is a schematic diagram of the SPI interface.
Listing 2 shows how to use the SPI to read the
MAX187. The algorithm is as follows:
1) Initialize SPI parameters:
Master Mode
SPR = 00 (1MHz serial clock)
CPOL = 0, CPHA = 0
2) Assert CS low.
3) Wait until MISO goes high.
4) Begin SPI transfer.
5) Wait until SPI transfer is complete.
6) Save the first 8 bits in temporary storage. This first
SPI byte contains the start bit followed by MAX187
data bits 11–5.
7) Continue the SPI transfer.
8) Wait until SPI transfer is complete.
9) Negate CS high.
10) Extract the 12 significant bits from the 16 bits that
the SPI read. The second SPI byte contains
MAX187 data bits 4–0 followed by three zero bits.
™SPI is a trademark of Motorola Corp.
_______________________________________________________________________________________
7
Evaluates: MAX187
Table 5. Data-Interface Connections for
68HC16
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Listing 2. Using the SPI to Read the MAX187
8
_______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
MAX187
I/O
SHDN
I/O
The demo software configures the TMS320C30 so that
FSR1 and DR1 are inputs, and CLKR1 and XF1 are outputs. The software uses the XF1 output to start a conversion. The XF1 pulse drives the MAX187 chip-select
input. The CLKR1 output provides the serial clock to
the MAX187. Data output from the MAX187 is received
on the DR1 input. The FSR1 frame-start signal is also
tied to the data output, so the start bit from the MAX187
marks the beginning of the serial frame.
CS
+5V
10k
SS
SCK
SCLK
MISO
DOUT
Figure 3. SPI Interface Schematic
To read the MAX187, the software drives the XF1 output low, then waits 8.5µs (the maximum conversion
time). It then enables the serial receive clock. The
MAX187 sends its start bit, followed by the serial data.
The demo software polls the serial receiver until a complete frame has been received. Since only 12 of the 16
bits received are significant, the demo software rightjustifies the significant bits and removes the start bit,
then writes the 12-bit word to the TMS320C3XEVM’s
host data port.
__________________TMS320 Interface
The TMS320 subdirectory of the program disk contains
a demonstration program that interfaces the MAX187 to
Texas Instruments’ TMS320C3X Evaluation Module
(EVM), as shown in Figure 3. This demonstration
requires the additional software included with the
TMS320C3X EVM board, and is provided for the convenience of programmers who are already familiar with
Texas Instruments’ TMS320 family of digital signal
processors. To connect the MAX187 EV kit to the
For the complete ribbon-cable pinout, consult the
TMS320C3X Evaluation Module Technical Reference
that came with your TMS320C3X EVM.
CS
5
SCLK
(SCK)
2
3
4
1
DOUT
(MISO)
START BIT
D11
1
MAX187 CONVERSION TIME: 8.5µs MAX
2
SPI SETUP TIME: 100ns MIN
3
SPI HOLD TIME: 100ns MIN
4
MAX187 SCK TO DOUT DELAY: 150ns MAX
5
SCLK PERIOD: (150ns + 100ns) (2) = 500ns
ACTUAL PERIOD =
1 = 1000ns
1MHz
D10
NOTE: TIMING DIAGRAM NOT DRAWN TO SCALE
Figure 4. MAX187 to SPI Interface Timing (CPOL = 0, CPHA = 0)
_______________________________________________________________________________________
9
Evaluates: MAX187
68HC11
TMS320C3X EVM, install a 2 x 5 pin ribbon-cable header in the prototype area and wire it in accordance with
Table 7. The SHDN pin should be tied to 5V for normal
operation.
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Table 7. TMS320C3X EVM Interface
Connections
TMS320C30
TMS320C30
SIGNAL
TMS320C3X
EVM
CONNECTOR
PIN No.
MAX187
SIGNAL
GND
1
AGND
Signal Ground
DR
4
DOUT
Data Received
from MAX187
XF1
8
CS
Active-Low Chip
Select to MAX187
FSR
2
DOUT
Frame-Start Input
to TMS320
CLKR
9
SCLK
Serial Clock to
MAX187
GND
10
AGND
Signal Ground
MAX187
FSR
DR
DOUT
CLKR
SCLK
XF1
CS
Figure 5. TMS320 Interface Schematic
FUNCTION
Note: TMS320 FSR and DR both connected to MAX187 DOUT.
CS
(XF1)
8
3
4
n+3
15
SCLK
(CLKR)
0
2
1
DOUT
(FSR, DR)
6
5
7
Dn
1
CS LOW TO DOUT ENABLE: 100ns MAX
2
ACTUAL CONVERSION TIME: 8.5µs MAX
3
DELAY BEFORE CLKR: 8.5µs MIN
4
CLKR CYCLE TIME: 267ns
5
SCLK TO DOUT DELAY: 150ns MAX
6
SETUP TIME FOR DR: 31ns MIN
7
CS TO DOUT DISABLE: 100ns MAX
8
DELAY BETWEEN CONVERSIONS: 500ns MIN
NOTE: TIMING DIAGRAM NOT DRAWN TO SCALE
Figure 6. MAX187 to TMS320 Interface Timing
10
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
Evaluates: MAX187
Listing 3. Using the TMS320C3X EVM to Read the MAX187
______________________________________________________________________________________
11
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
+5V
1 +5V
POS 5
2 SHDN
J2
3 SCLK
J4 TEST POINTS
C1
0.1µF
4 CS
C2
4.7µF
5 DOUT
6 AGND
J3
1
INPUT
2
VDD
SCLK
+5V
CS
7
JU1
3
SHDN
DOUT
6
+5V
VREF
4
REF
J1-37
SCLK
J1-38
PCSO/SS
J1-31
OC2
J1-35
MISO
J1-1..4
GND
J1-7..8
+5V
2
1
3
OC1
R1
10kΩ
MAX187
AIN
8
J1-30
GND
5
C3
4.7µF
GND
*NOTE: C1, C2, C3 STAR GROUND AT MAX187 PIN 5
Figure 7. MAX186 EV Kit Component-Side Layout
12
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
Evaluates: MAX187
Figure 8. MAX187 EV Kit Component Placement Guide
______________________________________________________________________________________
13
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Figure 9. MAX187 EV Kit PC Board Layout—Component Side
14
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
Evaluates: MAX187
Figure 10. MAX187 EV Kit PC Board Layout—Solder Side
______________________________________________________________________________________
15
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
_____________________________________________68HC16 Module Component List
DESIGNATION
C1, C2, C3
QTY
3
C4, C5
2
C6, C7
C8
C9
C10–C14
D1
J1
J2
2
1
0
5
1
1
1
J3
1
J4
JU1
JU2
JU3
JU4
JU5
L1
L2
LED1
R1
0
0
0
0
0
0
0
0
1
1
DESCRIPTION
1µF ceramic capacitors
22µF, 25V radial-lead electrolytic
capacitors
22pF capacitors
0.01µF capacitor
Reference designator, not used
0.1µF capacitors
1N4001 diode
40-pin right-angle male connector
2-circuit terminal block
Right-angle printed circuit board
mount, DB9 female socket
Empty
Empty
Reference designator, not used
Empty
Empty
Empty
Empty
Empty
Light-emitting diode
10MΩ, 5% resistor
DESIGNATION
R2
R3, R4
R5
R6
SW1
SW2
QTY
1
2
1
1
1
1
DESCRIPTION
330kΩ, 5% resistor
10kΩ, 5% resistor
470Ω, 5% resistor
10kΩ SIP resistor
Slide switch
Momentary pushbutton switch
U1
1
68HC16 µC, part #
MC68HC16Z1CFC16 (132-pin
plastic quad flat pack)
U2
1
Maxim MAX233CPP
U3
1
27C256 EPROM containing
monitor program
U4
U5
U6
U7
Y1
None
None
None
None
None
1
1
1
1
1
4
1
1
1
1
7805 regulator, TO-220 size
62256 (32K x 8) static RAM
74HCT245 bidirectional buffer
Maxim MAX707CPA
32.768kHz watch crystal
Rubber feet
28-pin socket for U3
20-pin socket for U6
3" x 5" printed circuit board
Heatsink for U4, thermalloy # 6078
68HC16 Module
________________General Description
68HC16 Module
________________Detailed Description
The 68HC16 module is an assembled and tested printed-circuit board intended for use with Maxim’s highspeed serial-interface evaluation kits (EV kits). The
module uses an inexpensive 8-bit implementation of
Motorola’s MC68HC16Z1 microcontroller (µC) to collect
data samples at high speed using the QSPI™ interface.
It requires an IBM-compatible personal computer and
an external DC power supply, typically 12V DC or as
specified in EV kit manual.
The 68HC16 module draws its power from a user-supplied power source connected to terminal block J2. Be
sure to note the positive and negative markings on the
board. A three-terminal 5V regulator allows input voltages
between 8V and an absolute maximum of 20V. The
68HC16 module typically requires 200mA of input current.
Maxim’s 68HC16 module is provided to allow customers
to evaluate selected Maxim products. It is not intended
to be used as a microprocessor development platform,
and such use is not supported by Maxim.
Power Input Connector J2
68HC16 Microcontroller
U1 is Motorola’s 68HC16Z1 µC. Contact Motorola for µC
information, development, and support. Maxim EV kits use
the high-speed queued serial peripheral interface (QSPI)
and the internal chip-select generation.
A MAX707 on the module monitors the 5V logic supply,
generates the power-on reset, and produces a reset
pulse whenever the reset button is pressed.
™ QSPI is a trademark of Motorola Corp.
16
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
U5, the user RAM area, is a 32kbyte CMOS static RAM.
The 74HCT245 octal buffer lets the 68HC16 module
access an 8-bit port on the 40-pin interface connector.
This memory-mapped port consists of separate read
and write strobes, four chip selects, four address LSBs,
and eight data bits.
Table 8. Serial Communications Port J3
PIN
NAME
FUNCTION
1
DCD
Handshake; hard-wired to DTR and DSR
2
RXD
RS-232-compatible data output from
68HC16 module
3
TXD
RS-232-compatible data input to
68HC16 module
4
DTR
Handshake; hard-wired to DCD and DSR
5
GND
Signal ground connection
6
DSR
Handshake; hard-wired to DCD and DTR
7
RTS
Handshake; hard-wired to CTS
8
CTS
Handshake; hard-wired to RTS
9
None
Unused
Serial Communications
J3 is an RS-232 serial port, designed to be compatible
with the IBM PC 9-pin serial port. Use a straightthrough DB9 male-to-female cable to connect J3 to this
port. If the only available serial port has a 25-pin connector, you may use a standard 25-pin to 9-pin
adapter. Table 8 shows the pinout of J3.
The MAX233 is an RS-232 interface voltage level shifter
with two transmitters and two receivers. It includes a
built-in charge pump with internal capacitors that generates the output voltages necessary to drive RS-232 lines.
40-Pin Data Connector J1
The 20 x 2 pin header connects the 68HC16 module to
a Maxim EV kit. Table 9 lists the function of each pin.
Note that 68HC16 object code is not compatible with
68HC11 object code. Use the 68HC16 module only
with those modules that are designed to support it, and
only download code that is targeted for the 68HC16
module. Downloading incorrect object code into the
68HC16 module will have unpredictable results.
Address Ranges
The 68HC16 µC generates various enable signals for different address ranges. The ROM and RAM enable signals are fed directly to the respective chips. Several
additional signals (J1.11–J1.14) are available on the data
connector to be used by Maxim EV kits. Table 10 outlines the address ranges for each of the elements found
on the 68HC16 module, and Table 11 is a truth table that
describes the logic for each of the 68HC16’s chip-select
outputs. Because the addresses are not completely
decoded, the boot ROM and user RAM have shadows.
Table 9. 40-Pin Data-Connector Signals
PIN
1–4
5, 6
7, 8
9
10
11
12
13
14
15
16
17
18
19
20–26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
NAME
GND
VPREREG
VCC
RD
WR
7E000
7E800
7F000
7F800
A00
A01
A02
A03
EXTD0
EXTD1–7
IC1
IC2
IC3
OC1
OC2
OC3
OC4
IC4
MISO
MOSI
SCK
PCS0/SS
CLKOUT
PWMA
FUNCTION
Ground
Unregulated input voltage
+5V from on-board regulator
Read strobe
Write strobe
Chip select for 7E000–7E7FF
Chip select for 7E800–7EFFF
Chip select for 7F000–7F7FF
Chip select for 7F800–7FFFF
Address bit 0 (LSB)
Address bit 1
Address bit 2
Address bit 3
Buffered data bus 0 (LSB)
Buffered data bus bits 1–7
General I/O port bit 0 (LSB)
General I/O port bit 1
General I/O port bit 2
General I/O port bit 3
General I/O port bit 4
General I/O port bit 5
General I/O port bit 6
General I/O port bit 7
QSPI master-in, slave-out
QSPI master-out, slave-in
QSPI serial clock
QSPI chip-select output
System clock output
Pulse-width-modulator output
______________________________________________________________________________________
17
Evaluates: MAX187
The 68HC16 uses a phase-locked loop (PLL) to set its
bus speed. Crystal Y1 is a 32.768kHz frequency reference. The internal oscillator runs 256 times faster than the
external crystal. When the 68HC16 is reset, it waits for the
PLL to lock before it executes any software. After the PLL
locks onto the reference frequency, the software doubles
the clock speed by writing to the clock synthesizer control register, selecting a bus speed of 16.78MHz.
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Table 10. 68HC16 Module Memory Map
(all address values are in 20-bit hex)
PIN
FUNCTION
Boot ROM
The boot ROM, U3, is configured as an 8-bit memory
device. Resistor R4 pulls data bit 0 low during system
reset, forcing the µC to fetch instructions using only the
upper eight data bits. The boot ROM checks the system
and waits for commands from the host. Refer to the EV
kit manual for specific start-up procedures.
00000–07FFF
Boot ROM (U3, strobed by CSBOOT)
08000–0FFFF
Shadow of boot ROM
10000–17FFF
User RAM (U5, strobed by CS0 and CS2)
18000–1FFFF
Shadow of user RAM
20000–203FF
Internal standby RAM; 1kbyte
20400–7DFFF
Unused
7E000–7E7FF
External chip select (J1 pin 11) (CS7)
7E800–7EFFF
External chip select (J1 pin 12) (CS8)
7F000–7F7FF
External chip select (J1 pin 13) (CS9)
_______68HC16 Module Self Check
7F800–7FFFF
External chip select (J1 pin 14) (CS10)
80000–F7FFF
Not accessed by the 68HC16
F8000–FF6FF
Unused
FF700–FF73F
68HC16’s built-in ADC (not used)
FF740–FF8FF
Unused
To test the 68HC16 module’s integrity, connect the
power supply to the power terminals (J2). Do not connect anything to J1 or J3. Slide the power switch SW1
to the “ON” position. The LED will light up, and will flash
within 5 seconds.
FF900–FF93F
General-purpose timer module (GPT)
FF940–FF9FF
Unused
FFA00–FFA7F
System integration module (SIM)
FFA80–FFAFF
Unused
FFB00–FFB07
Internal standby RAM (SRAM)
control registers
FFB08–FFBFF
Unused
FFC00–FFDFF
Queued serial module (QSM)
FFE00–FFFFF
Unused
18
Software
All software is supplied on a disk with the EV kit.
Instructions for operating the software are included in
the EV kit manual. Refer to the EV kit manual for more
information.
If the LED flashes with a 50%-on/50%-off duty cycle, then
it passed its self check. Note that this test does not exercise the RS-232 port or the EV kit 40-pin interface, but it
does confirm that the power supply, microprocessor,
ROM, and RAM passed the self test.
If the LED flashes with a 10%-on/90%-off duty cycle,
then it failed its self check. Most likely, the RAM chip
(U5) is bad.
If the LED remains on and does not flash, then the problem is either U3 (the EPROM), U1 (the microprocessor),
U4 (the regulator), the MAX707 reset generator, or the
power supply. Use a voltmeter to verify that the power
supplies are good. Check the power-supply input and the
+5V output from the regulator. Use an oscilloscope to see
if the 32.768kHz reference oscillator is running.
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
ADDRESS
RANGE
CSBOOT
CS0
CS1
CS2
CS5
CS6
CS7
CS8
CS9
CS10
0xxxx read
L
H
H
H
H
H
H
H
H
H
1xxxx read
H
H
H
L
H
H
H
H
H
H
1xxxx write
H
L
H
H
H
H
H
H
H
H
7E0xx read
H
H
L
H
H
L
L
H
H
H
7E0xx write
H
H
H
H
L
L
L
H
H
H
7E8xx read
H
H
L
H
H
L
H
L
H
H
7E8xx write
H
H
H
H
L
L
H
L
H
H
7F0xx read
H
H
L
H
H
L
H
H
L
H
7F0xx write
H
H
H
H
L
L
H
H
L
H
7F8xx read
H
H
L
H
H
L
H
H
H
L
7F8xx write
H
H
H
H
L
L
H
H
H
L
VCC
LED1
R5
470Ω
GROUND
PWMB
C13
0.1µF
VCC
UNREGULATED 7V TO 20V
REGULATED +5V
INTEL COMPATIBLE READ/WRITE STROBES
GND
CHIP SELECTS
19
CS6/IOBUFFER
CS1/RDIO
OE
1
DIR
2
3
4
5
6
7
8
9
D08
D09
D10
D11
D12
D13
D14
D15
LOW ADDRESS BITS
U6
74HCT245
B1
B2
B3
B4
B5
B6
B7
B8
A1
A2
A3
A4
A5
A6
A7
A8
18
17
16
15
14
13
12
11
EXTD0
EXTD1
EXTD2
EXTD3
EXTD4
EXTD5
EXTD6
EXTD7
8-BIT BUFFERED BIDIRECTIONAL DATA BUS
8-BIT GENERAL I/O PORT
HIGH-SPEED SERIAL INTERFACE (QSM/QSPI)
VCC
1
2
3
4
R6
10k
SIP
RESISTOR
5
6
7
8
9
10
GND
GND
VPREREG
VCC
CS1/RDIO
CS7/7E000
CS9/7F000
A00
A02
EXTD0
EXTD2
EXTD4
EXTD6
IC1
IC3
OC2
OC4
MISO
SCK
CLKOUT
J1-1
J1-3
J1-5
J1-7
J1-9
J1-11
J1-13
J1-15
J1-17
J1-19
J1-21
J1-23
J1-25
J1-27
J1-29
J1-31
J1-33
J1-35
J1-37
J1-39
J1-2
J1-4
J1-6
J1-8
J1-10
J1-12
J1-14
J1-16
J1-18
J1-20
J1-22
J1-24
J1-26
J1-28
J1-30
J1-32
J1-34
J1-36
J1-38
J1-40
GND
GND
VPREREG
VCC
CS5/WRIO
CS8/7E800
CS10/7F800
A01
A03
EXTD1
EXTD3
EXTD5
EXTD7
IC2
OC1
OC3
IC4
MOSI
PCSO/SS
PWMA
TSTME
BKPT/DSCLK
BKPT/DSCLK
HALT
DS
J4-1
J4-2
BERR
BERR
GND
J4-3
J4-4
BKPT/DSCLK
MODCLK
GND
J4-5
J4-6
FREEZE
DSACK1
RESET
J4-7
J4-8
IPIPE1/DSI
VCC
J4-9
J4-10
IPIPE0/DS0
DSACK0
IRQ7
Figure 11. 68HC16 Module Schematic
______________________________________________________________________________________
19
Evaluates: MAX187
Table 11. 68HC16 Chip-Select Outputs Truth Table
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
VSSE
C14
0.1µF
C8
0.01µF
VCC
BR
FC2
FC1
VDDE
VSSE
FCO
CSBOOT
DATA0
DATA1
DATA2
DATA3
VSSI
DATA4
DATA5
DATA6
DATA7
DATA8
DATA9
VDDE
VSSE
DATA10
DATA11
DATA12
DATA13
DATA14
DATA15
ADDRO
DSACK0
DSACK1
AVEC
DS
AS
VDDE
U1
MOTOROLA
MC68HC16Z1CFC16
116
115
114
113
112
111
110
109
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
CSO/WRRAM
CS5/WRIO
VCC
VSSE
CSBOOT/RDROM
DOO
VSSI
DO8
DO9
VCC
VSSE
D10
D11
D12
D13
D14
D15
AOO
DSACKO
DSACK1
DS
VCC
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
VSSE
TXD
ADDR1
ADDR2
VDDE
VSSE
ADDR3
ADDR4
ADDR5
ADDR6
ADDR7
ADDR8
VSSI
ADDR9
ADDR10
ADDR11
ADDR12
ADDR13
ADDR14
ADDR15
ADDR16
ADDR17
ADDR18
VDDE
VSSE
VDDA
VSSA
ADA0
ADA1
ADA2
ADA3
ADA4
ADA5
VRH
VRL
ADA6
ADA7
VSTBY
XTAL
VDDSYN
EXTAL
VSSI
VDDI
XFC
VDDE
VSSE
CLKOUT
FREEZE/QUOT
TSTME/TSC
BKPT/DSCLK
IPIPE0/DS0
IPIPE1/DS1
RESET
HALT
BERR
IRQ7
IRQ6
IRQ5
IRQ4
IRQ3
IRQ2
IRQ1
MODCLK
R/W
SIZ1
SIZ0
VSSE
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
A01
A02
VCC
VSSE
A03
A04
A05
A06
A07
A08
VSSI
A09
A10
A11
A12
A13
A14
RXD
PCS3
PCS2
PCS1
PCS0/SS
SCK
MOSI
MISO
VSSE
VDDE
IC1
IC2
IC3
OC1
OC2
VSSI
VDDI
OC3
OC4
IC4/OC5
PAI
PWMA
PWMB
PCLK
VSSE
VDDE
ADDR23
ADDR22
ADDR21
ADDR20
ADDR19
BGACK
BG
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
RXD
TXD
VCC
CS10/7F800
CS9/7F000
CS8/7E800
CS7/7E000
CS6/IOBUFFER
CS2/RDRAM
CS1/RDIO
PWMA
PWMB
VSSE
VCC
IC1
IC2
IC3
OC1
OC2
VSSI
VDDI
OC3
OC4
IC4
MISO
MOSI
SCK
PCSO/SS
1
C3
1µF
2 20V
C10
0.1µF
VSSE
2
MODCLK
1
L2
10µH
OPTIONAL
VSTBY
XTAL
2
VCC
VSSE
CLKOUT
FREEZE
TSTME
BKPT/DSCLK
IPIPEO/DS0
IPIPE1/DSI
RESET
HALT
BERR
IRQ7
VCC
1
EXTAL
VSSI
VDDI
JU4
VSSE
VSSI
Figure 11. 68HC16 Module Schematic (continued)
20
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
1
C7
22pF
1
VCC
R2
330k
2
2
XTAL
1
2
1
1
TXD
EXTAL
C6
22pF
J3-8
CTS
7
VCC
R1
10M
Y1
32.768kHz
2
Evaluates: MAX187
2
VCC
GND
J3-7
RTS
2
T1IN
T1OUT 5
1
T2IN
T2OUT 18
3
R1OUT
J3-2
RXD
2
VCC
SW2
RESET
1
1
2
–
PFO
6
N.C.
8
RESET
4
7
RESET
PFI
GND
1
R1IN 4
20 R2OUT
5
2
J2
+
RXD
U7
MAX707
8
MR
13
12
RESET
17
3
14
R2IN 19
J3-3
TXD
GND
11
C1+
C1VVV+
C2+
15
C2+
10
C216
C2-
U2
MAX223
GND
GND
9
6
J3-4
DTR
J3-6
DSR
J3-1
DCD
SW1
POWER
1
2
1
J3-5
GND
D1
1N4001
U4
78M05
IN
OUT
1
VCC
3
VCC
GND
2
2
1
C4
22µF
25V
L1
10µH
1
1
2
1
C5
22µF
20V
2
JU5
2
2
C1 OPTIONAL
1µF
20V
JU3
1
VSSE
J3-9
RI
VSSE
GND
VPREREG
C2
1µF
20V
1
2
VDDI
VSSI
2
D09
1
R3
10k
2
RESET
2
RESET
GND
CS2/RDRAM
CS0/WRRAM
20
22
27
A0
A1 U5
A2 62256
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12
A13
A14
I/O0
I/O1
I/O2
I/O3
I/O4
I/O5
I/O6
I/O7
11
12
13
15
16
17
18
19
D08
D09
D10
D11
D12
D13
D14
D15
VCC
CS
OE
WE
C12
0.1µF
VCC
CSBOOT/RDROM
GND
2
A14
32k x 8-BIT HIGH-SPEED CMOS STATIC RAM
A00
A01
A02
A03
A04
A05
A06
A07
A08
A09
A10
A11
A12
A13
1
3
10
9
8
7
6
5
4
3
25
24
21
23
2
26
27
1
22
20
A0
A1
U3
A2 27C256
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12
A13
DQ0
DQ1
DQ2
DQ3
DQ4
DQ5
DQ6
DQ7
11
12
13
15
16
17
18
19
A14
VPP
OE
CE
D08
D09
D10
D11
D12
D13
D14
D15
D(00:15)
R4
10k
10
9
8
7
6
5
4
3
25
24
21
23
2
26
1
A(00:18)
1
A(00:18)
D00
A00
A01
A02
A03
A04
A05
A06
A07
A08
A09
A10
A11
A12
A13
A14
D(00:15)
GND
VCC
C11
0.1µF
GND
VCC
32k x 8-BIT CMOS EPROM
Figure 11. 68HC16 Module Schematic (continued)
______________________________________________________________________________________
21
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Figure 12. 68HC16 Module Component Placement Guide
22
______________________________________________________________________________________
MAX187 Evaluation System/Evaluation Kit
Evaluates: MAX187
Figure 13. 68HC16 Module PC Board Layout—Component Side
______________________________________________________________________________________
23
Evaluates: MAX187
MAX187 Evaluation System/Evaluation Kit
Figure 14. 68HC16 Module PC Board Layout—Solder Side
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
24 __________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 (408) 737-7600
© 1994 Maxim Integrated Products
Printed USA
is a registered trademark of Maxim Integrated Products.