68EVB912B32UM/DFebruary 1997M68EVB912B32EVALUATION BOARDUSER’S MANUAL© MOTOROLA Inc., 1997; All Rights Reserved
GENERAL INFORMATION68EVB912B32UM/D1-2• Header footprints for access to all MCU pins• 16-MHz crystal for 8-MHz bus operation• Headers for jumper sel
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/DB-64. Click on Send.NOTES1. S-Records are not displayed during the file transfer.2. Following the file
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/D B-7NOTES-Records are not displayed during the file transfer.Upon completion of the S-Record file transf
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/DB-8
D-BUG12 STARTUP CODE68EVB912B32UM/D C-1APPENDIX CD-BUG12 STARTUP CODEThe D-Bug12 startup code is located in Flash EEPROM starting at address range $F7
D-BUG12 STARTUP CODE68EVB912B32UM/DC-2;*******************************************************************************; INITIALIZATION;; The code in t
D-BUG12 STARTUP CODE68EVB912B32UM/D C-3staa INITRG ; re-map the on-chip registers.ldx #_UserFnTable ; point to the table of user accessible;routines.j
D-BUG12 STARTUP CODE68EVB912B32UM/DC-4
D-BUG12 CUSTOMIZATION DATA68EVB912B32UM/D D-1APPENDIX DD-BUG12 CUSTOMIZATION DATAThe customization data area, located in Flash EEPROM from $FC60 to $F
D-BUG12 CUSTOMIZATION DATA68EVB912B32UM/DD-2INITIAL USER CPU REGISTER VALUESThe first seven fields in the CustomData typedef struct are used to provid
D-BUG12 CUSTOMIZATION DATA68EVB912B32UM/D D-3NOTEIt is the responsibility of the startup code to set the base address ofthe I/O registers. D-Bug12 do
GENERAL INFORMATION68EVB912B32UM/D 1-3Figure 1-1. EVB Layout and Component Placement
D-BUG12 CUSTOMIZATION DATA68EVB912B32UM/DD-4NOTEIt is the responsibility of the startup code to set the base address ofthe EEPROM. D-Bug12 does not s
D-BUG12 CUSTOMIZATION DATA68EVB912B32UM/D D-5The function implementing the new command can report any error conditions to the user in oneof two ways:I
D-BUG12 CUSTOMIZATION DATA68EVB912B32UM/DD-6
EEPROM BOOTLOADER68EVB912B32UM/D E-1APPENDIX EEEPROM BOOTLOADERThe EEPROM bootloader occupies 1 Kbyte of erase-protected Flash EEPROM starting ataddre
EEPROM BOOTLOADER68EVB912B32UM/DE-2bootloader executes immediately. The bootloader’s prompt appears on the host terminal:(E)rase, (P)rogram or (L)oad
EEPROM BOOTLOADER68EVB912B32UM/D E-3(P)rogramIn Flash programming mode, the bootloader sends an ASCII "*" (asterisk character) to the hostco
EEPROM BOOTLOADER68EVB912B32UM/DE-4To allow the user code to specify interrupt and reset addresses, each member of the erase-protected vector table st
EEPROM BOOTLOADER68EVB912B32UM/D E-5Obtaining D-Bug12 UpgradesUpgrades to D-Bug12 are made available for electronic downloading. S-Record files conta
EEPROM BOOTLOADER68EVB912B32UM/DE-6First, generate S-Record files for the new data, using an M68HC12-compatible assembler or Ccompiler.Next, prepare t
INDEX68EVB912B32UM/D 1INDEX—A—ASM command, 3-11assemblerprogram, 1-5, 2-4, 3-54single-line (D-Bug12), 3-11—B—background debug mode (BDM)as user interf
GENERAL INFORMATION68EVB912B32UM/D1-4Figure 1-2. EVB Solder Side View1.3 FUNCTIONAL OVERVIEWThe EVB is factory-configured to execute D-Bug12, the Fla
INDEX68EVB912B32UM/D2operating, 3-4reloading, E-5resetting, 3-6stack pointer, 3-55starting, 3-3startup code, C-1startup modes, 1-5, 2-1, 3-3terminal i
INDEX68EVB912B32UM/D 3—P—P1 — SCI RS-232C port, 2-2, 2-3P2, P3, P4, P6 — MCU access, 1-5, 4-7P5 — power input, 2-2, 4-4packing list, 2-1POD mode, 3-2,
INDEX68EVB912B32UM/D4
GENERAL INFORMATION68EVB912B32UM/D 1-5NOTESThe D-Bug12 operating instructions in this manual presume thefactory-default memory configuration. Other c
GENERAL INFORMATION68EVB912B32UM/D1-6 b. If D-Bug12 has been replaced in Flash EEPROM with user code (i.e., Mode 4below has been performed), executi
GENERAL INFORMATION68EVB912B32UM/D 1-7For full details of equipment setup, cabling, and special requirements, refer to Chapter 2.1.5 EVB SPECIFICATION
GENERAL INFORMATION68EVB912B32UM/D1-81.6 CUSTOMER SUPPORTAUSTRALIA, JAPANMelbourne – (61-3)887-0711 Fukuoka – 81-92-725-7583Sydney – (61-2)906-3855 Go
CONFIGURATION AND SETUP68EVB912B32UM/D 2-1CHAPTER 2CONFIGURATION AND SETUP2.1 UNPACKING AND PREPARATIONVerify that the following items are present in
CONFIGURATION AND SETUP68EVB912B32UM/D2-2Table 2-1. EVB Startup Mode JumpersJumperPositionsStartup ModeW3 W40 0 EVB execution mode (default). D-Bug1
CONFIGURATION AND SETUP68EVB912B32UM/D 2-3Standard, commercially available cables may be used in most cases. Note that the EVB requiresonly three of
68EVB912B32UM/DiiMotorola reserves the right to make changes without further notice to any products herein toimprove reliability, function or design.
CONFIGURATION AND SETUP68EVB912B32UM/D2-42.5 TERMINAL COMMUNICATIONS SETUP2.5.1 Communication ParametersThe EVB’s serial communications port uses the
CONFIGURATION AND SETUP68EVB912B32UM/D 2-52.5.4 Changing the Baud RateThe EVB’s default baud rate for the RS-232C port is 9600. This can be changed
CONFIGURATION AND SETUP68EVB912B32UM/D2-6
OPERATION68EVB912B32UM/D 3-1CHAPTER 3OPERATION3.1 OPERATING MODESThe EVB can operate in one of four jumper-selectable modes:EVB mode either D-Bug12
OPERATION68EVB912B32UM/D3-2This mode is effected using the MCU’s PAD0 line. User code may be programmed into byte-erasable EEPROM using the D-Bug12 c
OPERATION68EVB912B32UM/D 3-33.1.3.3 Programming the Target’s EEPROMThe target MCU’s on-chip byte-erasable or Flash EEPROM may be programmed from user
OPERATION68EVB912B32UM/D3-46. Apply power to the EVB and to the terminal. If the terminal is a host computer,a. Verify that it has booted correctly.
OPERATION68EVB912B32UM/D 3-53.1.2 JUMP-EEPROM Mode. Control can be returned to the D-Bug12 terminal prompt bydoing one of the following:1. terminat
OPERATION68EVB912B32UM/D3-6Single Chip mode. Resetting the target MCU in Special Single Chip mode places itin active background mode. See the target
OPERATION68EVB912B32UM/D 3-7When operating in POD mode, the D-Bug12 RESET or STOP command can be used to regaincontrol of the target system.3.5 USING
CONTENTS68EVB912B32UM/D iiiTABLE OF CONTENTSCHAPTER 1 GENERAL INFORMATION1.1 INTRODUCTION...
OPERATION68EVB912B32UM/D3-8<parameter> is an expression or address.<ENTER> is the terminal keyboard’s carriage-return or enter key.NOTES1.
OPERATION68EVB912B32UM/D 3-9Table 3-1. D-Bug12 Command-Set Summary (continued)Command DescriptionCALL [<Address>] Execute a user subroutine; re
OPERATION68EVB912B32UM/D3-10Table 3-1. D-Bug12 Command-Set Summary (continued)Command DescriptionT [<Count>] Trace — execute an instruction, di
OPERATION68EVB912B32UM/D 3-11ASMAssembler/DisassemblerASMsyntax:ASM <Address>where:<Address> is a 16-bit hexadecimal number.The assembler
OPERATION68EVB912B32UM/D3-12The assembly/disassembly process may be terminated by entering a period (.) as the first non-space character following the
OPERATION68EVB912B32UM/D 3-13Hexadecimal numbers must be entered with a leading dollar sign ($) followed by one to fourhexadecimal digits. The defaul
OPERATION68EVB912B32UM/D3-14BAUDSet Baud RateBAUDsyntax:BAUD <BAUDRate>where:<BAUDRate> is an unsigned 16-bit decimal number.The BAUD com
OPERATION68EVB912B32UM/D 3-15BFBlock FillBFsyntax:BF <StartAddress> <EndAddress> [<Data>]where:<StartAddress> is a 16-bit h
OPERATION68EVB912B32UM/D3-16BRBreakpoint SetBRsyntax:BR [<Address> <Address> ...]where:<Address> are optional 16-bit hexadecimal
OPERATION68EVB912B32UM/D 3-17example:>BR 35ec 2f80 c592Breakpoints: 35EC 2F80 C592>BRBreakpoints: 35EC 2F80 C592>
CONTENTS68EVB912B32UM/Div3.2.1 Startup Procedure...
OPERATION68EVB912B32UM/D3-18BULKBulk Erase EEPROMBULKsyntax:BULKThe BULK command is used to erase the entire contents of byte-erasable EEPROM in a sin
OPERATION68EVB912B32UM/D 3-19CALLCall SubroutineCALLsyntax:CALL [<Address>]where:<Address> is an optional 16-bit hexadecimal number.The C
OPERATION68EVB912B32UM/D3-20DEVICESpecify Target MCU DeviceDEVICEsyntax:DEVICEDEVICE <DeviceName> [<EEStart> <EEEnd> <FStart>&
OPERATION68EVB912B32UM/D 3-21configures D-Bug12 for operation with the selected target device. The default device listcontains entries for the MC68HC
OPERATION68EVB912B32UM/D3-22example:>DEVICEDevice: 912B32EEPROM: $0D00 - $0FFFFlash: $8000 - $FFFFRAM: $0800 - $0BFFI/O Regs: $0000S>DEVICE 912b
OPERATION68EVB912B32UM/D 3-23EEBASESpecify Target EEPROMBase AddressEEBASEsyntax:EEBASE <Address>where:<Address> is an optional 16-bit hex
OPERATION68EVB912B32UM/D3-24example:S>DEVICEDevice: 912B32EEPROM: $0D00 - $0FFFFlash: $8000 - $FFFFRAM: $0800 - $0BFFI/O Regs: $0000S>EEBASE 1d0
OPERATION68EVB912B32UM/D 3-25FBULKErase Target FlashEEPROMFBULKsyntax:FBULKThe FBULK command is used to erase the entire contents of the target MCU’s
OPERATION68EVB912B32UM/D3-26example:S>FBULKFlash Programming Voltage Not PresentS>FBULKF/EEPROM Failed To EraseS>FBULKS>>FBULKCommand N
OPERATION68EVB912B32UM/D 3-27FLOADProgram Target FlashEEPROMFLOADsyntax:FLOAD [<AddressOffset>]where:<AddressOffset> is a 16-bit hexadecim
CONTENTS68EVB912B32UM/D vStop Execution on Target MCU ... 3-50T
OPERATION68EVB912B32UM/D3-28Before using the FLOAD command, a target device must have been selected using the DEVICEcommand that reflects the location
OPERATION68EVB912B32UM/D 3-29GGo Execute a User ProgramGsyntax:G [<Address>]where:<Address> is an optional 16-bit hexadecimal number.The
OPERATION68EVB912B32UM/D3-30GTGo TillGTsyntax:GT <Address>where:<Address> is a 16-bit hexadecimal number.The GT command is similar to the
OPERATION68EVB912B32UM/D 3-31HELPOnscreen Help SummaryHELPsyntax:HELPThe HELP command is used to display a summary of the D-Bug12 command set. Eachco
OPERATION68EVB912B32UM/D3-32example:>HELPASM <Address> Single line assembler/disassembler <CR> Disassemble next instruction
OPERATION68EVB912B32UM/D 3-33LOADLoad S-Record FileLOADsyntax:LOAD [<AddressOffset>]{Send File}where:<AddressOffset> is an optional 16-bi
OPERATION68EVB912B32UM/D3-34MDMemory DisplayMDsyntax:MD <StartAddress> [<EndAddress>]where:<StartAddress> is a 16-bit hexadecimal
OPERATION68EVB912B32UM/D 3-35MDWMemory Display, WordMDWsyntax:MDW <StartAddress> [<EndAddress>]where:<StartAddress> is a 16-bit he
OPERATION68EVB912B32UM/D3-36MMMemory ModifyMMsyntax:MM <Address> [<Data>]where:<Address> is a16-bit hexadecimal number.<Data>
OPERATION68EVB912B32UM/D 3-37example:>MM 8000800 00 <CR>0801 F0 FF0802 00 ^0801 FF <CR>0802 00 <CR>0803 08 55 /0803
CONTENTS68EVB912B32UM/DviAPPENDIX B COMMUNICATIONS PROGRAM EXAMPLESINTRODUCTION...
OPERATION68EVB912B32UM/D3-38MMWMemory Modify, WordMMWsyntax:MMW <Address> [<Data>]where:<Address> is a 16-bit hexadecimal number.&
OPERATION68EVB912B32UM/D 3-39example:>MMW 8000800 00F0 <CR>0802 0008 AA55 /0804 843F ^0802 AA55 <CR>0804 843F <CR>0806
OPERATION68EVB912B32UM/D3-40MOVEMove Memory BlockMOVEsyntax:MOVE <StartAddress> <EndAddress> <DestAddress>where:<StartAddress&
OPERATION68EVB912B32UM/D 3-41NOBRRemove BreakpointsNOBRsyntax:NOBR [<Address> <Address> ...]where:<Address> is an optional 16-bit
OPERATION68EVB912B32UM/D3-42RDRegister DisplayRDsyntax:RDThe Register Display command is used to display the CPU12’s registers.restrictions:When opera
OPERATION68EVB912B32UM/D 3-43REGBASESpecify Target EEPROMRegister AddressREGBASEsyntax:REGBASE <Address>where:<Address> is a 16-bit hexade
OPERATION68EVB912B32UM/D3-44example:S>DEVICEDevice: 912B32EEPROM: $0D00 - $0FFFFlash: $8000 - $FFFFRAM: $0800 - $0BFFI/O Regs: $0000S>REGBASE 20
OPERATION68EVB912B32UM/D 3-45RESETReset Target MCURESETsyntax:RESETThe RESET command is used to reset the target system processor when operating in D-
OPERATION68EVB912B32UM/D3-46RMRegister ModifyRMsyntax:RMThe Register Modify command is used to examine and/or modify the contents of the CPU12’sregist
OPERATION68EVB912B32UM/D 3-47STOPStop Execution on TargetMCUSTOPsyntax:STOPWhen operating in D-Bug12’s POD mode, the STOP command is used to halt targ
CONTENTS68EVB912B32UM/D viiVECTOR JUMP TABLE: INTERRUPT AND RESET ADDRESSES ...E-4RELOADING AND CUSTOMIZING D-BUG12...
OPERATION68EVB912B32UM/D3-48TTraceTsyntax:T [<Count>]where:<Count> is an optional 8-bit decimal number in the range 1 to 255.The Trace co
OPERATION68EVB912B32UM/D 3-49example:>T PC SP X Y D=A:B CCR=SXHI NZVC0803 09FE 057C 0000 10:00 1001 00000803 830001
OPERATION68EVB912B32UM/D3-50UPLOADDisplay Memory in S-Record FormatUPLOADsyntax:UPLOAD <StartAddress> <EndAddress>where:<StartAddress
OPERATION68EVB912B32UM/D 3-51VERFVerify S-Record File against MemoryVERFsyntax:VERF [<AddressOffset>]{Send File}where:<AddressOffset> is
OPERATION68EVB912B32UM/D3-52<Register Name>Modify Register Value<Register Name>syntax:<RegisterName> <RegisterValue>where:<
OPERATION68EVB912B32UM/D 3-53Table 3-4. Condition Code Register Bits (continued)CCR Bit Name Description Legal ValuesV Two’s Complement Overflow Flag
OPERATION68EVB912B32UM/D3-543.7 OFF-BOARD CODE GENERATIONCode developed outside the EVB environment should be generated with an M68HC12-compatible as
OPERATION68EVB912B32UM/D 3-55NOTED-Bug12 sets the default value of the user’s stack pointer to$0A00. This is not a mistake. The M68HC12’s stack poin
OPERATION68EVB912B32UM/D3-563.9.1 On-Chip RAMD-Bug12 requires 512 bytes of on-chip RAM for stack and variable storage. This usage is shownin Table 3-
OPERATION68EVB912B32UM/D 3-573.9.5 Terminal CommunicationsHigh baud rates occasionally result in dropped characters on the terminal display. This is
CONTENTS68EVB912B32UM/Dviii
OPERATION68EVB912B32UM/D3-58
HARDWARE REFERENCE68EVB912B32UM/D 4-1CHAPTER 4HARDWARE REFERENCE4.1 PCB DESCRIPTIONThe EVB printed circuit board (PCB) is a 5.15 by 3.4 inch (13.1 by
HARDWARE REFERENCE68EVB912B32UM/D4-2CAUTIONWhen cutting a PCB trace to customize a header footprint, use asharp blade. Be careful to avoid personal i
HARDWARE REFERENCE68EVB912B32UM/D 4-3Table 4-1. Jumper and Header Functions (continued)Diagram Pins DescriptionW3, W4 EVB Mode Selection1010W3-0W4-0
HARDWARE REFERENCE68EVB912B32UM/D4-4Table 4-1. Jumper and Header Functions (continued)Diagram Pins DescriptionW10 Vdd Connection to BDM OUT121-2cutC
HARDWARE REFERENCE68EVB912B32UM/D 4-54.4 TERMINAL INTERFACEAn RS-232C transceiver (U1A or U1B) links the MCU’s Serial Communications Interface to theR
HARDWARE REFERENCE68EVB912B32UM/D4-64.6 CLOCK CIRCUITRYThe EVB comes with a 16-MHz crystal, Y1, with appropriate startup capacitors. The boardshould
HARDWARE REFERENCE68EVB912B32UM/D 4-7The BDM interface may serve in two ways:• as the "probe" interface through which a host EVB in POD mod
HARDWARE REFERENCE68EVB912B32UM/D4-8PA2 1ll2 PA3PA4 3ll4 PA5PA6 5ll6 PA7VDD47 7ll8 VSS48VRH 9ll10 VRLPAD0 11ll12 PAD1PAD2 13ll14 PAD3PAD4 15ll16 PAD5P
HARDWARE REFERENCE68EVB912B32UM/D 4-9PB3 1ll2PB4PB5 3ll4PB6PB7 5ll6PE7PE6/MODB 7ll8 PE5/MODAPE4 9ll10 VSSX30VDDX31 11ll12 RESET*EXTAL 13ll14 XTALPE3 1
GENERAL INFORMATION68EVB912B32UM/D 1-1CHAPTER 1GENERAL INFORMATION1.1 INTRODUCTIONThis manual provides the necessary information for using the M68EVB9
HARDWARE REFERENCE68EVB912B32UM/D4-10
S-RECORD FORMAT68EVB912B32UM/D A-1APPENDIX AS-RECORD FORMATDESCRIPTIONThe S-Record format for output modules was devised for the purpose of encoding p
S-RECORD FORMAT68EVB912B32UM/DA-2Each record may be terminated with a CR/LF/NULL. Additionally, an S-Record may have aninitial field to accommodate o
S-RECORD FORMAT68EVB912B32UM/D A-3S-RECORD EXAMPLEShown below is a typical S-Record format module, as printed or displayed:S00600004844521BS1130000285
S-RECORD FORMAT68EVB912B32UM/DA-4The next 16 character pairs are the ASCII bytes of the actual program code/data. In thisassembly language example, t
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/D B-1APPENDIX BCOMMUNICATIONS PROGRAM EXAMPLESINTRODUCTIONIn all of these examples, first follow the EVB
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/DB-2Flow control NONECR translation (in) CRCR translation (out) CRBS translation DESTBS key definition BS
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/D B-32. Instruct Procomm to send the S-Record file by pressing the <Page Up> key. Followthe onscr
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/DB-4KERMIT — SUN WORKSTATIONSetupTo set up Kermit on the Sun Workstation for use as the EVB terminal, fir
COMMUNICATIONS PROGRAM EXAMPLES68EVB912B32UM/D B-5MACTERMINAL — APPLE MACINTOSHSetupTo set up MacTerminal on an Apple MacIntosh computer for use as th
Komentarze do niniejszej Instrukcji