Table of Contents

Advertisement

Quick Links

Freescale Semiconductor, Inc.
M68HC12A4EVBUM/D
October 1999
M68HC12A4EVB
EVALUATION BOARD
USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com

Advertisement

Table of Contents
loading

Summary of Contents for Freescale Semiconductor M68HC12A4EVB

  • Page 1 Freescale Semiconductor, Inc. M68HC12A4EVBUM/D October 1999 M68HC12A4EVB EVALUATION BOARD USER’S MANUAL For More Information On This Product, Go to: www.freescale.com...
  • Page 2 Freescale Semiconductor, Inc. Important Notice to Users 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 or statements resulting from negligence, accident, or any other cause.
  • Page 3 Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board List of Sections Section 1. General Information ....15 Section 2. Configuration and Setup ....27 Section 3.
  • Page 4: Motorola For More Information On This Product

    Freescale Semiconductor, Inc. List of Sections User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 List of Sections MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 5: Table Of Contents

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Table of Contents Section 1. General Information Contents ..........15 Introduction.
  • Page 6 Alternate Execution from EEPROM ......72 User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Table of Contents...
  • Page 7 Schematics ..........99 M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual...
  • Page 8 B.7.2 S-Record Transfers to EVB Memory..... . 130 User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Table of Contents MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 9 Auxiliary Command Table Entries ..... . . 138 Appendix E. Customizing the EPROMs Appendix F. SDI Configuration Glossary Index M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Table of Contents For More Information On This Product,...
  • Page 10 Freescale Semiconductor, Inc. Table of Contents User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Table of Contents MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 11 Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board List of Figures Figure Title Page EVB Layout and Component Placement ..... . 18 System Block Diagram .
  • Page 12 Freescale Semiconductor, Inc. List of Figures User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 List of Figures MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 13 Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board List of Tables Table Title Page EVB Specifications........23 RS-232C Interface Cabling.
  • Page 14 Freescale Semiconductor, Inc. List of Tables User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 List of Tables MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 15: Contents

    1.2 Introduction 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.
  • Page 16 – MCU mode control (W30, W34, and W42) – Alternate execution from on-chip EEPROM (W20) – Serial communications interface (SCI) configuration (W10, W14, and W21) User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 General Information MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 17 Full support for either dumb-terminal or host-computer terminal interface • Single-line assembler/disassembler • File transfer capability from a host computer, allowing off-board code generation M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA General Information For More Information On This Product, Go to: www.freescale.com...
  • Page 18: Evb Layout And Component Placement

    Freescale Semiconductor, Inc. General Information PROTOTYPE AREA Figure 1-1. EVB Layout and Component Placement User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 General Information MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 19: Performance Notes

    LOGIC Figure 1-2. System Block Diagram 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.
  • Page 20: Functional Overview

    Settings. NOTE: The D-Bug12 operating instructions in this manual presume the factory-default memory configuration. Other configurations require different operating-software arrangements. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 General Information MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 21 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 M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA...
  • Page 22: External Equipment Requirements

    Power-supply and terminal interconnection cables as required For full details of equipment setup, cabling, and special requirements, refer to Section 2. Configuration and Setup. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 General Information MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 23: Evb Specifications

    2 inches x 8 inches, approximately Holes 79 wide x 20 high (0.1-inch centers) Board dimensions 8 inches x 8 inches M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA General Information For More Information On This Product, Go to: www.freescale.com...
  • Page 24: Typographic Conventions

    For usage in this manual, filenames are not case sensitive. But for consistency, they will always appear in all capital letters: SETUP.EXE MAP file User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 General Information MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 25: Customer Support

    Main filename edit box. 1.9 Customer Support To obtain information about technical support or ordering parts, call the Motorola help desk at 800-521-6274. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA General Information For More Information On This Product,...
  • Page 26 Freescale Semiconductor, Inc. General Information User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 General Information MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 27: Section 2. Configuration And Setup

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Section 2. Configuration and Setup 2.1 Contents Unpacking and Preparation....... . . 27 EVB Configuration .
  • Page 28: Evb Configuration

    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 Manual M68HC12A4EVB Evaluation Board — Rev. 1 Configuration and Setup MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 29: Evb To Power Supply Connection

    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. 1 User’s Manual MOTOROLA Configuration and Setup For More Information On This Product,...
  • Page 30: Rs-232C Interface Cabling

    Motorola’s serial debug interface. NOTE: D-Bug12 does not use the BDM interface. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Configuration and Setup MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 31: Terminal Communications Setup

    Appendix B. Communications Program Examples provides examples of using some of the commonly available communications programs. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Configuration and Setup For More Information On This Product,...
  • Page 32: Changing The Baud Rate

    U4 and U6A, as viewed in Figure 1-1. EVB Layout and Component Placement. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Configuration and Setup MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 33: Reprogramming The Ram Chip Select

    EVB and install it in the appropriate socket on the EPROM programmer. 3. Following the instructions and using the software for the EPROM programmer, perform the steps in procedure 1 or procedure 2, as described here. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Configuration and Setup For More Information On This Product, Go to: www.freescale.com...
  • Page 34 8. Ensure that the modification was performed properly by using D-Bug12’s MD command to examine the CSSTR0 register at memory location $003E. It should contain the value $04. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Configuration and Setup MOTOROLA For More Information On This Product,...
  • Page 35 7. Ensure that the modification was performed properly by using D-Bug12’s MD (MEMORY DISPLAY) command to examine the CSSTR0 register at memory location $003E. It should contain the value $04. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Configuration and Setup For More Information On This Product, Go to: www.freescale.com...
  • Page 36 Freescale Semiconductor, Inc. Configuration and Setup User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Configuration and Setup MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 37: Contents

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Section 3. Operation 3.1 Contents Startup ..........38 Reset .
  • Page 38: Startup

    2.6.3 Host-Computer Setup Appendix B. Communications Program Examples. 7. Reset the EVB by pressing and releasing the on-board reset switch (S1). User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 39: Reset

    Note that the EVB’s reset circuitry is associated with the low-voltage inhibit (LVI) protection. For more information, refer to 4.10 Reset 4.11 Low-Voltage Inhibit (LVI). M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product,...
  • Page 40: Program Abort

    ( ) key is pressed. D-Bug12 then displays either ENTER the appropriate response to the command or an error indication. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 41 Table 3-1 summarizes the D-Bug12 commands. For detailed descriptions of each command, refer to 3.6 D-Bug12 Command Set. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 42: D-Bug12 Command-Set Summary

    Set CPU < RegisterName > to < RegisterValue > < RegisterName > < RegisterValue > * Refer to Appendix A. S-Record Format for S-record information. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 43: D-Bug12 Command Set

    A typical example looks like this: User’s entry. >baud 9600 Change Terminal BR, Press Return D-Bug12 response. D-Bug12 prompt for > next entry. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 44: Section 3. Operation

    The instruction mnemonics and operand formats accepted by the assembler follows the syntax as described in the CPU12 Reference Manual, Motorola document order number CPU12RM/AD. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product,...
  • Page 45: M68Hc11 To Cpu12 Instruction Translation

    EXG D, X LEAX B, X XGDY EXG D, Y LEAY B, Y SEX R TFR R LEAS -1, S Restrictions: None M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 46 All numeric values disassembled as hexadecimal numbers are preceded by a dollar sign ($) to avoid being confused with values disassembled as signed decimal numbers. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product,...
  • Page 47 All 8-bit mask values (BRSET/BRCLR/ANDCC/ORCC) are disassembled as 2-digit hexadecimal numbers. All 8-bit immediate values are disassembled as hexadecimal numbers. All 16-bit immediate values are disassembled as hexadecimal numbers. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product,...
  • Page 48: Set Baud Rate

    Example: >BAUD 50 Invalid BAUD Rate >BAUD 38400 Change Terminal BR, Press Return > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 49: Block Fill

    < data >. If the < data > parameter is omitted, the memory range is filled with the value $00. Restrictions: None Example: >BF 6400 6fff 0 >BF 6f00 6fff 55 > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 50: Breakpoint Set

    10 command line arguments including the command string. Example: >BR 35ec 2f80 c592 Breakpoints: 35EC 2F80 C592 >BR Breakpoints: 35EC 2F80 C592 > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 51: Bulk Erase On-Chip Eeprom

    EEPROM in a single operation. After the bulk erase operation has been performed, each on-chip EEPROM location is checked for an erased condition. Restrictions: None Example: >BULK > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 52: Call Subroutine

    Example: >CALL 820 Subroutine Call Returned D = A:B CCR = SXHI NZVC 0820 0A00 057C 0000 0F:F9 1001 0000 > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 53: Go Execute A User Program

    >G 800 User Breakpoint Encountered D = A:B CCR = SXHI NZVC 0820 09FE 057C 0000 00:00 1001 0100 0820 > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 54: Go Till

    >GT 820 Temporary Breakpoint Encountered D = A:B CCR = SXHI NZVC 0820 09FE 057C 0000 00:00 1001 0100 0820 > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 55: Onscreen Help Summary

    Set register contents Register Names: PC, SP, X, Y, A, B, D CCR Status Bits: S, XM, H, IM, N, Z, V, C > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product,...
  • Page 56: Load S-Record File

    Pressing the reset switch returns D-Bug12 to its command line prompt. Restrictions: None Example: >LOAD 1000 ******************** > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 57: Memory Display

    7..7...'.6* 0870 A5 00 37 65 - 00 02 27 F9 - 35 E8 37 9C - 37 4C F5 02 ..7e..'.5.7.7L.. > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 58: Display Memory As 16-Bit Word

    3786 00DE - F501 EA09 - 37B5 0D0A - 27F9 362A 7..7...'.6* 0870 A500 3765 - 0002 27F9 - 35E8 379C - 374C F502 ..7e..'.5.7.7L.. > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 59: Memory Modify

    Restrictions: None Example: >MM 800 0800 <CR> 0801 0802 0801 <CR> 0802 <CR> 0803 55 / 0803 > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 60: Modify 16-Bit Memory Word

    Example: >MMW 800 0800 00F0 <CR> 0802 0008 AA55 / 0804 843F 0802 AA55 <CR> 0804 843F <CR> 0806 C000 > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 61: Move Memory Block

    < EndAddress >. The maximum number of bytes that may be moved is – 1. Example: >MOVE 800 8ff 1000 > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 62: Remove Breakpoints

    >BR 800 810 820 830 Breakpoints: 0800 0810 0820 0830 >NOBR 810 820 Breakpoints: 0800 0830 >NOBR All Breakpoints Removed > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 63: Register Display

    The REGISTER DISPLAY command is used to display the CPU12’s registers. Restrictions: None Example: >RD D = A:B CCR = SXHI NZVC 0206 03FF 1000 3700 27:FF 1001 0001 > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 64: Register Modify

    Restrictions: None Example: >RM PC=0206 200 SP=03FF <CR> X=1000 1004 Y=3700 <CR> A=27 <CR> B=FF <CR> CCR=D0 D1 PC=0200 . > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 65: Trace

    CPU execution. For this reason, only instructions that reside in alterable memory may be executed with the TRACE command. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA...
  • Page 66 0F:FF 1001 0000 0803 830001 SUBD #$0001 D=A:B CCR=SXHI NZVC 0806 09FE 057C 0000 0F:FE 1001 0000 0806 26FB $0803 > User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 67: Display Memory In S-Record Format

    >upload 400 5ff S123040000F0000843FC0000F50F379F37BF43FCF50F27FA757F177AFA047504177AFA21C5 S123042037B500FF37FAFB0437B5400037FAFB061735FB0037B500C137FAFA003715379C01 S1230440F50F379D37BC012C37BD400085009A003C023D02377C0140B6EE7A0F400037B583 S1230460000337FAFA4C37FAFA5037FAFA5437B5502037FAFA4E37B5302037FAFA5237B58A S1230480682037FAFA5637BD014037BC000095008A003C023D02377D0172B6EE37BD017259 S12304A037BC020095008A003C023D02377D018EB6EE27F937B0F50F379C37BC00CE27F901 S12304C000FC27F9104C27F90E68378000BE0A0D442D42756731362056312E3033202D20E3 S12304E04465627567204D6F6E69746F7220466F7220546865204D363848433136204661ED S12305006D696C790A0D2843292031393932204D6F746F726F6C612053656D69636F6E64BD S12305207563746F7220496E632E000037B5FF0237FAFA4837B578B037FAFA4A7A0F005E52 S12305400000000000000000020002040208020C021000000000000000000000000002144F S12305600000000000000000000000000000000002187A0F3BAC7A0F3BBC7A0F11E87A0F62 S12305803C727A0F3C847A0F3C967A0F3CA8F50F379C379D379E27FAF50F379F37BF43FCE8 S12305A07501177A4054173540523604361C27F90088B0D637BC01BC360227F70A0D3E00A9 S12305C04500B70427F936BC3C01B0F027F7277537BC400017BC405027F936CC780DB60477 S12305E027F936A0274A27F77803B6FEB03A7808B6162776B7DE3730000127F93686752002 S9030000FC > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 68: Verify S-Record File Against Memory

    S9 record without returning to the command-line prompt. Pressing the reset switch, S1, returns D-Bug12 to its command-line prompt. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product,...
  • Page 69 Freescale Semiconductor, Inc. Operation D-Bug12 Command Set Verify S-Record File Against Memory (Continued) VERF Restrictions: None Example: >VERF 1000 ******************** > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 70: Registername> Modify Register Value

    Two’s complement overflow flag 0 or 1 Carry flag 0 or 1 IRQ interrupt mask 0 or 1 0 or 1 XIRQ interrupt mask User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 71 NZVC 700E 0A00 1000 7D62 47:44 1001 0101 >D adf7 D=A:B CCR=SXHI NZVC 700E 0A00 1000 7D62 AD:F7 1001 0101 > M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 72: Alternate Execution From Eeprom

    $0c00 ; stack at top of ; on-chip RAM DEBUG12: $FD90 #STACKTOP DEBUG12 ; jump to start of ; D-Bug12 code User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 73: Off-Board Code Generation

    The monitor program, D-Bug12, occupies 24 Kbytes in the two 32-Kbyte EPROMs, U7 and U9A. The remaining 8 Kbytes are available for user programs and utilities, but since this ROM area cannot be directly written, M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA...
  • Page 74: Memory Map

    Reserved for interrupt and reset vectors *Code in these areas may be modified by reprogramming the EPROMs. Refer to Appendix E. Customizing the EPROMs. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 75: Operational Limitations

    PAD0 — Selects normal or alternate execution mode (W20) PAD1 — Selects the SCI port used for the terminal interface (W14) M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Operation For More Information On This Product, Go to: www.freescale.com...
  • Page 76: Terminal Communications

    • Displaying fewer address locations or tracing fewer instructions at a time when using the MD, MDW, or T commands User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Operation MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 77: Section 4. Hardware Reference

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Section 4. Hardware Reference 4.1 Contents Printed Circuit Board (PCB) Description ..... . 78 Configuration Headers and Jumper Settings.
  • Page 78: Printed Circuit Board (Pcb) Description

    When cutting a PCB trace to customize a header footprint, be careful not to cut adjacent traces. Do not damage the underlying PCB layers by cutting too deeply. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product,...
  • Page 79: Jumper-Selectable Functions

    W12 and W13 together select the type of RAM installed. W22, W24, W29, W32, W33, and W36 together select the type of ROM installed. W30, W34, and W42 together determine the MCU’s mode of operation. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA...
  • Page 80 W22, W24, W29, W32, W33, and W36 together select the type of ROM installed. W30, W34, and W42 together determine the MCU’s mode of operation. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product,...
  • Page 81 W12 and W13 together select the type of RAM installed. W22, W24, W29, W32, W33, and W36 together select the type of ROM installed. W30, W34, and W42 together determine the MCU’s mode of operation. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA...
  • Page 82 W22, W24, W29, W32, W33, and W36 together select the type of ROM installed. W30, W34, and W42 together determine the MCU’s mode of operation. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product,...
  • Page 83: Power Input Circuitry

    • A right-angle DB-9 receptacle wired as DCE for standard RS-232C cabling • A functionally equivalent 3-pin header for customized cabling M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product, Go to: www.freescale.com...
  • Page 84: Microcontroller

    In the normal single-chip mode of operation, no external bus is available. All program and data fetches are from on-chip memory or peripheral registers. Ports A, B, C, and D are available for general-purpose I/O. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product,...
  • Page 85: Cpu Mode Selection

    Reserved (currently defaults to peripheral mode) Normal expanded wide Install jumper on header pins 2 and 3. Install jumper on header pins 1 and 2. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product,...
  • Page 86: Memory

    The user-available area in factory-supplied EPROM requires that the ROM chips be reprogrammed with the custom code. For more information, refer to Appendix E. Customizing the EPROMs. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 87: Memory Sockets Configuration

    The default and optional settings are described in Table 4-1. Table 4-3 provides information about the supplied memories. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product, Go to: www.freescale.com...
  • Page 88: Chip Selects

    The illustration demonstrates the correct settings for CSP0 to serve as the ROM chip select and CSD to serve as the RAM chip select. Figure 4-2. Chip Select Header User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product,...
  • Page 89: Glue Logic

    ROM ONLY NARROW MSB – CS ROM/RAM LSB – CS WIDE – LOW LSTRB RAM ONLY Figure 4-3. RAM/ROM Logic Diagram M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product, Go to: www.freescale.com...
  • Page 90: Clock Circuitry

    (U1, as described in 4.11 Low-Voltage Inhibit (LVI)). The reset circuit drives the MCU’s RESET pin directly. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 91: Low-Voltage Inhibit (Lvi)

    For more information, refer to Appendix F. SDI Configuration and to the Serial Debug Interface User’s Manual, Motorola document order number SDIUM/D. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product,...
  • Page 92: Prototype Area

    Vdc (V ) connections are provided along the inboard periphery. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 93: Prototype Area (Component Side View)

    79 HOLES 79 HOLES GND BUS GND BUS GND test points GND TEST POINTS Figure 4-4. Prototype Area (Component Side View) M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product, Go to: www.freescale.com...
  • Page 94: Mcu Connectors

    SSEX0 DDEX0 BKGD RESET SSPLL DDPLL XTAL EXTAL Figure 4-5. MCU Connector J8 (Component-Side View) User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 95: Mcu Connector J9 (Component-Side View)

    DDEX1 SSAD DDAD PAD6 PAD7 PAD4 PAD5 PAD2 PAD3 PAD0 PAD1 SSEX2 DDEX2 Figure 4-6. MCU Connector J9 (Component-Side View) M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product, Go to: www.freescale.com...
  • Page 96: Mcu Connector J8 Pin Assignments

    PD6/D6/KWUD6 PD7/D7/KWUD7 PD4/D4/KWUD4 PD5/D5/KWUD5 PORT D, bits 0–7 — General-purpose I/O, PD2/D2/KWUD2 data bus, or key wakeup PD3/D3/KWUD3 PD0/D0/KWUD0 PD1/D1/KWUD1 User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 97 PB6/A6 PB7/A7 PB4/A4 PB5/A5 PORT B, bits 0–7 — General-purpose I/O PB2/A2 or low byte address bus PB3/A3 PB0/A0 PB1/A1 M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product, Go to: www.freescale.com...
  • Page 98: Mcu Connector J9 Pin Assignments

    A/D conversions. PH6/KWUH6 PH7/KWUH7 PH4/KWUH4 PH5/KWUH5 PORT H, bits 0–7 — General-purpose I/O PH2/KWUH2 or key wakeup PH3/KWUH3 PH0/KWUH0 PH1/KWUH1 User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Hardware Reference MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 99: Schematics

    PT1/IOC1 — EVB system return (V ) and power (V 4.16 Schematics The schematics for the M68HC12A4EVB are provided here for your reference. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Hardware Reference For More Information On This Product,...
  • Page 100 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 101 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 102 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 103 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 104 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 105 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 106 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 107 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 108 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 109 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 110 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 111 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 112 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 113 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 114 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 115 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 116 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 117: Overview

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Appendix A. S-Record Format A.1 Contents Overview..........117 S-Record Contents .
  • Page 118: S-Record Fields

    Accuracy of transmission is ensured by the record length (byte count) and checksum fields. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 S-Record Format MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 119: S-Record Types

    Only one termination record is used for each block of S records. Normally, only one header record is used, although it is possible for multiple header records to occur. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA S-Record Format For More Information On This Product, Go to: www.freescale.com...
  • Page 120: S0 Header Record

    Record Hexadecimal 06 (decimal 6), indicating six Length character pairs (or ASCII bytes) follow Address 4-character, 2-byte address field; zeroes User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 S-Record Format MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 121: S1 Header Record

    Checksum of the first S1 record The 16 character pairs shown in the code/data field of Table A-5 are the ASCII bytes of the actual program. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA S-Record Format For More Information On This Product,...
  • Page 122: S9 Header Record

    0101 0011 0011 0001 0011 0001 0011 0011 0011 0000 0011 0000 0011 0000 0011 0000 0011 0010 0011 1000 0011 0101 0100 0110 0011 0010 0100 0001 User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 S-Record Format MOTOROLA For More Information On This Product,...
  • Page 123: Appendix B. Communications Program Examples

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Appendix B. Communications Program Examples B.1 Contents Introduction..........124 Procomm for DOS —...
  • Page 124: Introduction

    1. At the DOS prompt, invoke the Procomm program by typing: PROCOMM And then pressing the key. RETURN 2. Enter the Setup menu by pressing User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Communications Program Examples MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 125 7. Press . The D-Bug12 prompt should appear on the display. ENTER Continue with the startup procedure in Startup. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Communications Program Examples For More Information On This Product, Go to: www.freescale.com...
  • Page 126: S-Record Transfers To Evb Memory

    1 or by activating the appropriate custom reset circuitry. The D-Bug12 prompt should appear on the display. Continue with the startup procedure in Startup. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Communications Program Examples MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 127: S-Record Transfers To Evb Memory

    1 or by activating the appropriate custom reset circuitry. The D-Bug12 prompt should appear on the display. Continue with the startup procedure in Startup. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Communications Program Examples For More Information On This Product,...
  • Page 128: S-Record Transfers To Evb Memory

    1. Select the following from the Terminal Settings menu: Terminal: Cursor Shape: Underline Line Width: 80 Columns Select: On Line Auto Repeat Click on: User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Communications Program Examples MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 129: S-Record Transfers To Evb Memory

    NOTE: Following the file transfer, MacTerminal sends a carriage return-line feed pair, which D-Bug12 interprets as an erroneous command. To return to the D-Bug12 prompt, reset the EVB. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA Communications Program Examples For More Information On This Product, Go to: www.freescale.com...
  • Page 130: Red Ryder - Apple Macintosh

    S records are not displayed during the file transfer. Upon completion of the S-record file transfer, the D-Bug12 prompt is displayed. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Communications Program Examples MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 131: Appendix C. D-Bug12 Startup Code

    ; of reset(in expanded modes) FD80 $fd80 ;***************************************************************** ; INITIALIZATION ; Initialization code for the M68HC12A4EVB D-Bug12 monitor program ;***************************************************************** FD80 CODE_START: set Port E bit 7 to an output to eliminate possible noise problems associated with unterminated input pins.
  • Page 132 ; prevent later protection lock FDB2 5AF0 staa EEMCR ; PROTLK is write-once FDB4 7900F1 BPROT ; allow EE program and erase User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 D-Bug12 Startup Code MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 133 ; load delay count into x FDC1 09 DlyLoop: ; decrement count FDC2 26FD DlyLoop ; loop till done. FDC4 3D ; return. M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA D-Bug12 Startup Code For More Information On This Product, Go to: www.freescale.com...
  • Page 134 Freescale Semiconductor, Inc. D-Bug12 Startup Code User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 D-Bug12 Startup Code MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 135: Customization Data Area

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Appendix D. D-Bug12 Customization Data D.1 Contents Customization Data Area ....... . . 135 D.2.1...
  • Page 136: C Format

    The CPU12 stack pointer points to the last byte pushed onto the stack. All of the other registers contain the value 0. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 D-Bug12 Customization Data MOTOROLA For More Information On This Product,...
  • Page 137: Sysclk Field

    The formula used to calculate the baud register value is: BaudRegVal = MCLK ( 16 * SCIBaudRate) M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA D-Bug12 Customization Data For More Information On This Product,...
  • Page 138: Eebase And Eesize Fields

    D-Bug12. The AuxCmdTableP points to an auxiliary command table, and AuxCmdCount contains the number of entries in the auxiliary command User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 D-Bug12 Customization Data MOTOROLA For More Information On This Product,...
  • Page 139 /* Invalid Hex Data */ DataSizeError = 11, /* Data Out Of Range */ NoTargetWrite = 12, /* Can't Write Target Memory */ M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA D-Bug12 Customization Data For More Information On This Product,...
  • Page 140 Freescale Semiconductor, Inc. D-Bug12 Customization Data User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 D-Bug12 Customization Data MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 141: Appendix E. Customizing The Eproms

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Appendix E. Customizing the EPROMs The following blocks in the factory-supplied EPROMs can be reprogrammed with user code or D-Bug12 code that has been modified for custom operation: • $8000–$9FFF — Available for user programs •...
  • Page 142: Physical Eprom Addresses

    $FF01–FFBF Custom — $7F80–$7FBF odd addresses $FFC0–$FFFE Factory $7FC0–$7FFF — even addresses $FFC1–$FFFF Factory — $7FC0–$7FFF odd addresses User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Customizing the EPROMs MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 143: Appendix F. Sdi Configuration

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Appendix F. SDI Configuration To configure the EVB for use with Motorola’s serial debug interface (SDI), follow these steps: 1. Remove the jumper on header W11 from CSD. 2. Move the CSP0 jumper on W11 to pins 2 and 3.
  • Page 144: Sdi Memory Map

    Freescale Semiconductor, Inc. SDI Configuration This configuration provides these enhancements when using the SDI: • The MCU’s on-chip RAM, from $0800 to $0BFF, is entirely available for user data. • Data can be loaded into the vector area, which was reserved under the D-Bug12 operating configuration.
  • Page 145: Glossary

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Glossary 8-bit MCU — A microcontroller whose data is communicated over a data bus made up of eight separate data conductors. assembler — A software program that translates source code mnemonics into opcodes that can then be loaded into the memory of a microcontroller.
  • Page 146 For example, a CPU reads an input to sense the level of an external signal and writes to an output to change the level on an external signal. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Glossary MOTOROLA For More Information On This Product,...
  • Page 147 CPU. The contents of a RAM memory location remain valid until the CPU writes a different value or until power is turned off. registers — Memory locations that are wired directly into the CPU logic M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual MOTOROLA...
  • Page 148 Word — A group of binary bits. Some larger computers consider a set of 16 bits to be a word but this is not a universal standard. User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Glossary MOTOROLA For More Information On This Product,...
  • Page 149: Index

    Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Index Symbols <RegisterName> command........70, A/D converter isolatable power circuits .
  • Page 150 ......... . . 22, 31, User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Index...
  • Page 151 DS1 ............M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual...
  • Page 152 HELP command ..........User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Index...
  • Page 153 (LVI) ........M68HC12A4EVB evaluation board....... .
  • Page 154 ........... . . User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Index...
  • Page 155 ..........21, 22, 29, M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual...
  • Page 156 ..........29, 31, User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Index...
  • Page 157 ..........20, 32, M68HC12A4EVB Evaluation Board — Rev. 1 User’s Manual...
  • Page 158 Freescale Semiconductor, Inc. Index User’s Manual M68HC12A4EVB Evaluation Board — Rev. 1 Index MOTOROLA For More Information On This Product, Go to: www.freescale.com...
  • Page 159 Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
  • Page 160 Freescale Semiconductor, Inc. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages.

Table of Contents