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.
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...
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 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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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,...
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...
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,...
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...
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...
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...
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,...
( ) 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...
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...
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...
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,...
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,...
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...
< 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...
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...
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...
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...
>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...
>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...
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,...
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...
< 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...
>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...
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...
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...
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...
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...
$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...
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...
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...
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...
• 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...
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,...
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,...
• 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...
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,...
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,...
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...
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...
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,...
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...
(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...
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,...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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,...
Freescale Semiconductor, Inc. User’s Manual — M68HC12A4EVB Evaluation Board Appendix B. Communications Program Examples B.1 Contents Introduction..........124 Procomm for DOS —...
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...
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...
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,...
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...
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...
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...
; 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...
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...
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,...
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,...
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...
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 •...
$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...
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.
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.
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 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.