While every effort has been made to ensure the accuracy of all information in
this document, Motorola assumes no liability to any party for any loss or
damage caused by errors or omissions or by statements of any kind in this
document, its updates, supplements, or special editions, whether such errors are
omissions orstatementsresultingfromnegligence, accident, or any other cause.
M
O
C
I
Motorola further assumes no liability arising out of the application or use of any
information,product, or system described herein: nor any liability for incidental
or consequential damages arising from the use of this document. Motorola
disclaims all warranties regarding the information contained herein, whether
R
E
E
S
expressed, implied, or statutory, including implied warranties of
merchantability or fitness for a particular purpose. Motorola makes no
representation that the interconnection of products in the manner described
herein will not infringe on existing or future patent rights, nor do the
descriptions contained herein imply the granting or license to make, use or sell
H
C
equipment constructed in accordance with this description.
R
A
Trademarks
D
E
V
I
This document includes these trademarks:
Motorola and the Motorola logo are registered trademarks
of Motorola, Inc.
This user’s manual provides the necessary information for using the
M68HC12A4EVB evaluation board (EVB), an evaluation, debugging, and
code-generation tool for the MC68HC812A4 microcontroller units (MCU).
Reference items, such as schematic diagrams and parts lists, are shipped as part
of the EVB package.
E
E
R
F
M
ESE
N
O
C
I
1.3 General Description and Features
The EVB is an economical tool for designing and debugging code for and
evaluating the operation of the M68HC12 MCU Family. By providing the
essential MCU timing and input/output (I/O) circuitry, the EVB simplifies user
evaluation of prototype hardware and software.
The board consists of an 8-inch by 8-inch multi-layer printed circuit board
(PCB) that provides the platform for interface and power connections to the
MC68HC812A4 MCU chip, which is installed in a production socket.
Figure 1-1 shows the EVB’s layout and locations of the major components, as
viewed from the component side of the board.
The block diagram in Figure 1-2 depicts the logical relationships and
interconnections within the EVB and with external equipment.
Hardware features of the EVB include:
•Power, ground, and four signal planes
•Single-supply +3- to +5-Vdc power input (J6)
•Two RS-232C interfaces
•Two memory sockets populated with two 32-Kbyte x 8-bit EPROMs
•Two memory sockets populated with two 8-Kbyte x 8-bit SRAMs
E
V
I
H
C
A
R
•Support for up to 1 MByte of program space and 512 Kbytes of data
•16-MHz crystal-controlled clock oscillator (Y2) in a socket that can
•Headers for jumper selection of hardware options (for full details of the
.
C
N
I
,
R
O
T
C
U
D
N
O
C
I
M
ESE
L
A
C
S
E
E
B
Y
R
F
(U7 and U9A), containing the D-Bug12 monitor program
D
(U4 and U6A)
space using optional memory configurations
accommodate optional 8- or 14-pin oscillator chips (XY2)
PA [7:0]
PB [7:0]
PC [7:0]
PD [7:0]
PE [6:0]
PG [5:0]
PE2/RW
PE3/LSTRB
M68HC12A4EVB
RS-232C
TRANSCEIVER
C
U
D
N
S2 – PROGRAM ABORT
GLUE
LOGIC
Figure 1-2. System Block Diagram
,
R
O
T
CLOCK
EXTERNAL
ROM
AND
RAM
General Information
Performance Notes
J3
TERMINAL
.
J2
SPARE
C
N
I
J6
POWER
J5
BDM INTERFACE
Freescale Semiconductor, I
1.4 Performance Notes
The M68HC12A4EVB’s external RAM memory chips, U4 and U6A, were
chosen to emphasize the EVB’s low-voltage and low-power operational
capability over the range of +3.5 to +5.0 Vdc.
However, these parts are not fast enough to operate at the 16-MHz speed of the
factory-supplied clock oscillator. To use them at this external clock speed, the
D-Bug12 startup code programs the MCU’s RAM chip select to insert one wait
state into each access of external RAM. Thus, when programs are run from
external RAM, performance is approximately 40 percent slower than it would
be if the RAM chips were fast enough to run without wait states. Typical
software performance improvements of 80 to 95 percent can be realized with
faster external RAM.
For high-speed performance, the factory-supplied RAM devices may be
replaced with faster parts that allow programs to execute at the full external
clock speed. Two steps are required for this:
1.Replace the RAM devices, U4 and U6A, with faster parts.
2.Modify the RAM chip select to eliminate the wait state (E-clock stretch).
Detailed instructions for these procedures are found in 2.7 Using Fast External
RAM.
Programsthat execute exclusively from theMCU’s on-chip RAM and EEPROM
alwaysrun at the fullclock speed. No wait states are introduced when accessing
these areas.
Table 3-5. Factory-Configuration Memory Map, the default memory map,
E
V
I
depicts the addresses of the EVB’s different memory areas.
H
C
R
A
The EVB is factory-configured to execute D-Bug12, the EPROM-resident
monitor program, without further configuration by the user. It is ready for use
with an RS-232C terminal for writing and debugging user code. Follow the
setup instructions in Section 2. Configuration and Setup to prepare for
operation.
Optionally, the EVB can accommodate various types and configurations of
external memory to suit a particular application’s requirements. These custom
configurations are made by installing the appropriate memory chips in the
EVB’s memory sockets and by setting jumpers on the EVB to correctly
establish the MC68HC812A4’s memory-access operations. Table 1-1 lists the
allowable sizes and types of memory. For the correct jumper settings, refer to
The D-Bug12 operating instructions in this manual presume the factory-default
memory configuration. Other configurations require different
operating-software arrangements.
For More Information On This Product,
Go to: www.freescale.com
..
.
nc
NOTE:
A
Freescale Semiconductor, Inc.
The MC68HC812A4’s two serial communications interface (SCI) ports are
associated with separate RS-232C interfaces. D-Bug12 uses one of the SCIs for
communications with the user terminal (jumper-selectable, SCI0 by default).
The second SCI port is available for user applications. For information on the
ports and their connectors, refer to 2.5 EVB to Terminal Connection and 4.5
Terminal Interface.
If the MCU’s single-wire background debug mode (BDM) interface serves as
the user interface, both of the SCI ports become available for user applications.
This mode requires a background debug development tool, such as Motorola’s
serial debug interface (SDI), and a host computer with the appropriate interface
software. For more information, refer to Appendix F. SDI Configuration and
tothe Serial Debug Interface User’s Manual, Motoroladocument order number
SDIUM/D.
D-Bug12 does not use the BDM interface.
Two methods may be used to generate EVB user code:
E
•For small programs or subroutines, D-Bug12’s single-line
V
I
H
C
R
•For larger programs, the Motorola MCUez assembler may be used on
The EVB features a prototype area, which allows custom interfacing with the
MCU’s I/O and bus lines. These connections are broken out via headers J8 and
J9, which are immediately adjacent to the prototype area as shown in
Figure 1-1.
General Information
Functional Overview
.
C
N
I
,
R
O
T
C
U
D
N
O
C
I
M
ESE
L
A
C
S
E
E
R
F
Y
B
D
assembler/disassembler may be used to place object code directly into
the EVB’s memory.
a host computer to generate S-record object files, which then can be
loaded into the EVB’s memory using D-Bug12’s LOAD command.
An on-board push-button switch, S1, provides for resetting the EVB hardware
and restarting D-Bug12. Another on-board switch, S2, allows aborting the
execution of a user program, useful in regaining control of a runaway program.
Both of these switch functions are available for customized use in the prototype
area.
The EVB can begin operation in either of two jumper-selectable (W20) modes
at reset. In normal mode, D-Bug12 immediately issues its command prompt on
the terminal display and waits for a user entry. In the alternate mode, execution
For More Information On This Product,
Go to: www.freescale.com
General Information
Freescale Semiconductor, Inc.
begins directly with the user code in on-chip EEPROM. This hardware function
is also available for customized use in the prototype area.
D-Bug12 allows programming of the MC68HC812A4’s on-chip EEPROM
through commands that directly alter memory. For full details of all the
commands, refer to 3.6 D-Bug12 Command Set.
Because the MCU must manage the EVB hardware and execute D-Bug12 in
addition to serving as the user-application processor, there are a few restrictions
on its use. For more information, refer to 3.10 Operational Limitations.
1.6 External Equipment Requirements
..
.
nc
NOTE:
Freescale Semiconductor, I
In addition to the EVB, the following user-supplied external equipment is
required:
•Power supply — See Table 1-1 for voltage and current requirements.
Table 1-1 indicates that EVB operation at +3.0 Vdc requires the slower clock
speed of 8 MHz. This limitation applies to programs (including the operating
firmware, D-Bug12) that use external memory.
If an application program uses on-chip RAM and EEPROM exclusively — for
H
C
instance, if external memory is not used — the clock speed can remain at
–Host computer with RS-232C serial port — Allows off-board code
assembly that can be loaded into the EVB’s memory. Requires a
user-supplied communications program capable of emulating a
dumb terminal. Examples of acceptable communications programs
are given in Appendix B. Communications Program Examples.
F
R
E
E
S
C
A
ESE
L
M
.
C
N
I
,
R
O
T
C
U
D
N
O
C
I
•Power-supply and terminal interconnection cables as required
For full details of equipment setup, cabling, and special requirements, refer to
–Host computer using the MCU’s BDM (background debug mode)
interface — Frees both of the MCU’s SCI ports for user applications.
Requires a background debug development tool, such as the
Motorola serial debug interface (SDI), and the appropriate interface
software
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
1.7 EVB Specifications
Table 1-1 lists the EVB specifications.
General Information
EVB Specifications
Table 1-1. EVB Specifications
..
.
nc
CharacteristicSpecifications
MCUMC68HC812A4
SRAM maximum memory:
Wide mode
Narrow mode
ROM maximum memory:
EPROM:
Wide mode
Narrow mode
EEPROM:
Wide mode
Narrow mode
MCU I/O portsHCMOS compatible
Background debug mode interface2-row x 3-pin header
Communications portsTwo RS-232C DCE ports
Power requirements:
16-MHz clock source
8-MHz clock source
Prototype area:
Area
Holes
Board dimensions8 inches x 8 inches
A
R
C
H
E
V
I
16, 64, 256, or 1024 Kbytes
8, 32, 128, or 512 Kbytes
M
C
A
ESE
L
64, 128, 256, 512, or 1024 Kbytes
32, 64, 128, 256, or 512 Kbytes
S
E
E
64, 128, 256, or 512 Kbytes
R
F
32, 64, 128, or 256 Kbytes
Y
B
D
+3.5 to +5.0 Vdc @ 150 mA (max.), fuse-protected @ 1.5 A
+3.0 to +5.0 Vdc @ 150 mA (max.), fuse-protected @ 1.5 A
2 inches x 8 inches, approximately
79 wide x 20 high (0.1-inch centers)
Before beginning configuration and setup of the EVB:
Freescale Semiconductor, I
1.Verify that these items are present in the EVB package:
Section 2. Configuration and Setup
C
I
M
ESE
L
A
C
S
E
E
R
F
Y
B
D
E
•M68HC12A4EVB board assembly
O
N
D
U
C
T
O
R
,
.
C
N
I
M68HC12A4EVB Evaluation Board — Rev. 1User’s Manual
MOTOROLAConfiguration and Setup27
•Warranty and registration cards
•EVB schematic diagram and parts list
•M68HC12A4EVB User’s Manual
•MC68HC812A4 Technical Summary
•CPU12 Reference Manual
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Configuration and Setup
•MC68HC12 Family Brochure
•Using D-Bug12 Callable Routines
•Demo software
•Assembly language development toolset
..
.
nc
2.3 EVB Configuration
Freescale Semiconductor, I
2.Remove the EVB from its anti-static shipping bag.
3.Carefully remove the protective case and conductive foam that cover the
MCU and its socket during shipment.
C
U
C
O
N
D
4.Save all packing materials for storing and shipping the EVB.
5.Inspect the alignment of the MCU’s pins within its socket. If it appears
necessary to reseat the MCU:
ESE
L
E
S
C
A
a.Press down on two opposite sides of the MCU socket.
b.Gently press the MCU chip into place.
c.Release the MCU socket.
B
D
E
6.Verify that all other socketed parts are correctly seated.
V
I
H
C
R
A
Becausethe EVB has been factory-configuredto operate withD-Bug12, it is not
necessary to change any of the jumper settings to begin operating immediately.
Only one jumper (header W20) should be changed during the course of
factory-default EVB operation with D-Bug12:
•Pins 2 and 3 jumpered (default) — Normal execution mode. D-Bug12 is
executed from external EPROM upon reset. The D-Bug12 prompt
appears immediately on the terminal display.
Y
E
R
F
M
I
T
O
R
,
.
C
N
I
•Pins 1 and 2 jumpered — Alternate execution mode. User code is
Other jumper settings affect the hardware setup and/or MCU operational
modes. For an overview of all jumper-selectable functions, refer to 1.3 General
Description and Features. For details of the settings, see Table 4-1.
Jumper-Selectable Functions.
User’s ManualM68HC12A4EVB Evaluation Board — Rev. 1
28Configuration and SetupMOTOROLA
executedfrom on-chip EEPROMupon reset. For more information, refer
to 3.7 Alternate Execution from EEPROM.
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
2.4 EVB to Power Supply Connection
The EVB requires a user-provided external power supply. See Table 1-1. EVB
Specifications for the voltage and current specifications. For full details of the
EVB’s power-input circuitry, refer to 4.4 Power Input Circuitry.
Configuration and Setup
EVB to Power Supply Connection
..
.
nc
CAUTION:
A
Although fuse protection is built into the EVB, a power supply with
current-limiting capability is desirable. If this feature is available on the power
T
O
R
,
supply, set it to 200 mA.
N
D
U
C
Connect the external power supply to connector J6 on the EVB as shown in
Figure 2-1, using 20 AWG or smaller insulated wire. Strip each wire’s
insulation 1/4 inch from the end, lift the J6 contact lever to release tension on
the contact, insert the bare end of the wire into J6, and close the lever to secure
the wire. Observe the polarity carefully.
S
Do not use wire larger than 20 AWG in connector J6. Larger wire could
damage the connector.
E
V
I
H
C
R
D
Y
B
E
E
R
F
Figure 2-1. EVB Power Connector J6
C
A
ESE
L
M
O
C
I
.
C
N
I
Freescale Semiconductor, I
2.5 EVB to Terminal Connection
For factory-default operation, connect the terminal to J3 or J4 on the EVB, as
shown in Table 2-1. This setup uses the MCU’s SCI port 0 (SCI0) and its
associated RS-232C interface for communications with the terminal device.
To use SCI1 and the second RS-232C interface for the terminal, the EVB’s
hardware setup must be modified. For details, refer to 4.5 Terminal Interface.
M68HC12A4EVB Evaluation Board — Rev. 1User’s Manual
MOTOROLAConfiguration and Setup29
For More Information On This Product,
Go to: www.freescale.com
Configuration and Setup
..
.
nc
EVB Pins, Always DCE
(1)
J3
Receptacle
(1)
(2)
Freescale Semiconductor, I
(3)
(4)
(2)
/ J2
DB-9
22Receive data (RXD)2233
33Transmit data (TXD)3322
51Ground (GND)5757
Factory default. Terminal interface uses SCI0.
Optional. Terminal interface uses SCI1. Hardware modifications are required. For details, refer to 4.5 Terminal
Interface.
Normal (DCE-to-DTE) cable connections
Null modem (DCE-to-DCE) cable connections
(1)
J4
3-Pin
Header
A
/ J1
Freescale Semiconductor, Inc.
Standard, commercially available cables may be used in most cases. Note that
the EVB uses only three of the RS-232C signals. Table 2-1 lists these signals
and their pin assignments.
The EVB’s RS-232C connectors, J2 (default) and J3 (unpopulated footprint),
are wired as data circuit-terminating equipment (DCE) and employ 9-pin
subminiature D (DB-9) receptacles. The equivalent 3-pin headers, J1 and J4,
serve the same purposes and may be used for customized cabling.
,
R
U
C
T
O
Most terminal devices — whether dumb terminals or the serial ports on host
computers — are wired as data terminal equipment (DTE) and employ 9- or
25-pin subminiature D (DB-9 or DB-25) plugs. In these cases, normal
straight-through cabling is used between the EVB and the terminal. Adapters
M
I
C
O
N
D
.
C
N
I
are readily available for connecting 9-pin cables to 25-pin terminal connectors.
ESE
L
E
S
C
A
Terminal Pins
(3)
DTE
Plug
DB-9DB-25DB-9DB-25
DCE
Receptacle
(4)
If the terminal device is wired as DCE, the RXD and TXD lines must be
cross-connected, as shown in Table 2-1. Commercial null modem adapter
cables are available for this purpose.
B
D
Table 2-1. RS-232C Interface Cabling
E
V
I
H
C
R
(2)
DTE Signal
Y
E
R
F
Optionally, the MCU’s background debug mode (BDM) interface can serve as
the user interface. This setup makes both of the SCI ports available for user
applications. Additional hardware and software are required. For more
information, refer to the documentation for the background debug development
tool being used, such as Motorola’s serial debug interface.
NOTE:
User’s ManualM68HC12A4EVB Evaluation Board — Rev. 1
30Configuration and SetupMOTOROLA
D-Bug12 does not use the BDM interface.
For More Information On This Product,
Go to: www.freescale.com
Loading...
+ 130 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.