Motorola M68HC11EVBU Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Cartes mères Motorola M68HC11EVBU. Motorola M68HC11EVBU User manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - 68HC11 Programmer’s Reference

68HC11 Programmer’s ReferenceManualPhillip [email protected] 1999Version 1.7

Page 2 - Feedback

2 SOFTWARE DEVELOPMENT CYCLE 62.4 CodingStart filling in the details by writing code for the algorithm(s) and program structure thatyou have designed.

Page 3 - Contents

2 SOFTWARE DEVELOPMENT CYCLE 7storage you chose and also to see any assembler errors5messages next to the offendingsource statements.The object file or

Page 4 - List of Tables

2 SOFTWARE DEVELOPMENT CYCLE 8external bus signals when the CPU is accessing its internal zero-page RAM but the dataused will be transferred to and fr

Page 5 - 1 Introduction

2 SOFTWARE DEVELOPMENT CYCLE 9$0000 Start of internal RAM (512 bytes) $0000 Start of page 0 user RAM$0032 End of page 0 user RAM$0033 Start of RAM use

Page 6 - 1.1 Tools

3 OBJECT FILE DOWNLOADING 103 Object File DownloadingThere are a variety of ways that you can connect a 68HC11 board to a variety of hostcomputers — h

Page 7 - 1.3 Program preparation

3 OBJECT FILE DOWNLOADING 113.2 System = HC11 board + PC/DOS + procommThe PC is connected to the HC11 board via a serial cable. Invoke the procomm com

Page 8

3 OBJECT FILE DOWNLOADING 12set transmit echo onset transmit linefeed offset transmit fill \32set transmit pause 25set transmit prompt 0set transmit e

Page 9 - 2 Software development cycle

3 OBJECT FILE DOWNLOADING 13that 1 of the bits in external memory is always read as a 0 or 1 no matter what you store.Get a logic probe and verify tha

Page 10 - 2.5 Assembling

4 ASSEMBLER DIRECTIVES 144 Assembler directivesAssembler directives are statements in the assembly language source file that specify howyou want the da

Page 11 - 2.7 Target Machine Memory Map

4 ASSEMBLER DIRECTIVES 154.2.1 EQU — EQUATE SYMBOL TO A VALUELABEL EQU <expression> [;comment]The EQU directive assigns the value of the express

Page 12

Credits• Engineer proofreading: Dr. Barbara La Scala;• Cross Assembler for 68HC11: Motorola;• University of Wollongong F1 system: Pete Dunster; and• M

Page 13

4 ASSEMBLER DIRECTIVES 164.3.3 FCB — FORM CONSTANT BYTE[LABEL] FCB <expr>(,<expr>,...,<expr>) [;comment]The FCB directive may have o

Page 14 - 3 Object File Downloading

4 ASSEMBLER DIRECTIVES 174.4 Addressing ModesThe assembler interprets the syntax of the operands to allow us to specify the addressingmode at assembly

Page 15

4 ASSEMBLER DIRECTIVES 18which the assembler evaluates into 1 or 2 bytes of data that follow the op-code. (Whenthe instruction is executed later, the

Page 16 - 3.4 Troubleshooting

4 ASSEMBLER DIRECTIVES 19REGBS EQU $1000 ; location of on-board peripheralsldx #REGBS ; load X with a base addressbclr %00000010 0,X ; clear bit 1 of

Page 17

5 ASSEMBLER LISTING FILE FORMAT 205 Assembler listing file formatThe Assembler listing has the following format:LINE# ADDR OBJECT CODE BYTES [ # CYCLES

Page 18 - 4 Assembler directives

5 ASSEMBLER LISTING FILE FORMAT 210026 432d TMPX RMB 20027 432f TMPY RMB 20028 ENDProgram + Init Data = 27 bytesError count = 0MSG1 4321 *0023TMPX 432

Page 19 - 4.3 Memory Allocation

A 68HC11 CPU REGISTERS 22A 68HC11 CPU RegistersFigure 1 shows the CPU registers that we are primarily concerned with when program-ming. At the commenc

Page 20

B 68HC11 INSTRUCTION SET 23The condition code register CC holds the current CPU state. Some bits hold a summaryof recent data manipulation performed b

Page 21 - 4.4 Addressing Modes

B 68HC11 INSTRUCTION SET 24MC68HC11A8 CPU, ADDRESSING MODES, AND INSTRUCTION SET MOTOROLATECHNICAL DATA 10-7BITA (opr) Bit(s) Test A with Memory A•M A

Page 22

B 68HC11 INSTRUCTION SET 25MC68HC11A8 CPU, ADDRESSING MODES, AND INSTRUCTION SET MOTOROLATECHNICAL DATA 10-9LDS (opr) Load Stack Pointer M:M + 1 → SP

Page 23

Contents1 Introduction 11.1 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2 Command Entry . . . . . . . . . .

Page 24

B 68HC11 INSTRUCTION SET 26MC68HC11A8 CPU, ADDRESSING MODES, AND INSTRUCTION SET MOTOROLATECHNICAL DATA 10-11**Infinity or Until Reset Occurs***12 Cyc

Page 25

C 68HC11 VECTORS 27C 68HC11 VectorsThe permanent vectors in ROM location $FFD6. . .$FFFD point to locations 3 bytes apartin RAM. After a reset, BUFFAL

Page 26 - A 68HC11 CPU Registers

C 68HC11 VECTORS 28C.1 Jump Vectors**************************************************************************** This file provides vector definitions

Page 27 - B 68HC11 Instruction Set

C 68HC11 VECTORS 29**************************************************************************** PART 1 --- vectors in RAM ****************************

Page 28 - B 68HC11 INSTRUCTION SET 24

C 68HC11 VECTORS 30* fff8 03 f7 VILLOP FDB JILLOP |* fffa 03 fa VCOP FDB JCOP |* fffc 03 fd VCLM FDB JCLM |* fffe dc 00 VRST FDB BUFFALO |* Observe th

Page 29 - B 68HC11 INSTRUCTION SET 25

C 68HC11 VECTORS 31JTIC3 EQU VOFF*10+VBASEUVTIC3 EQU VOFF*10+VBASE+1JTIC2 EQU VOFF*11+VBASEUVTIC2 EQU VOFF*11+VBASE+1JTIC1 EQU VOFF*12+VBASEUVTIC1 EQU

Page 30 - B 68HC11 INSTRUCTION SET 26

C 68HC11 VECTORS 32C.2 Buffalo Entry Points**************************************************************************** PART 2 --- entry points in ROM

Page 31 - C 68HC11 Vectors

C 68HC11 VECTORS 33.UPCASE EQU $FFA0 ; = JMP UPCASE; Convert any lower case alphabetic character in; register A to upper case..WCHEK EQU $FFA3 ; = JMP

Page 32 - C.1 Jump Vectors

C 68HC11 VECTORS 34; the indirect vector area in RAM. This routine or; a similar routine should be included in a user; program which is invoked by the

Page 33

D MONITOR SYMBOL DEFINITIONS 35D Monitor Symbol DefinitionsFiles symbols.e9, symbols.f1w, and symbols.f1p contain definitions of important 68HC11IO regi

Page 34

4.4.3 Immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.4.4 Register Indirect (with offset) . . . . . . . . . . . . . . . .

Page 35

D MONITOR SYMBOL DEFINITIONS 36* A NOTE ON PORTS* If the 68HC11 is configured as a stand alone system (e.g. a Motorola EVBU* board where there is no e

Page 36 - C.2 Buffalo Entry Points

D MONITOR SYMBOL DEFINITIONS 37* Serial peripheral interface.SPCR EQU REGBS+$28 SPI control registerSPSR EQU REGBS+$29 SPI status registerSPDR EQU REG

Page 37

D MONITOR SYMBOL DEFINITIONS 38* General Purpose Chip Select Address RegisterCSGADR EQU REGBS+$5E bits[GA15 GA14 GA13 GA12 GA11 GA10 - -]** General Pu

Page 38

E MAKEFILE EXAMPLE 39E Makefile ExampleThis Makefile can be used with the memory test program memtest available fromftp://mirriwinni.cse.rmit.edu.au/pub

Page 39 - D Monitor Symbol Definitions

F REAL–TIME INTERRUPT EXAMPLE 40F Real–Time Interrupt ExampleThe following example shows how to setup the real–time interrupt facility to generate reg

Page 40

F REAL–TIME INTERRUPT EXAMPLE 41* point to a particular piece of *our* interrupt handler code. So the ** simplest thing to do was just to arrange for

Page 41

F REAL–TIME INTERRUPT EXAMPLE 42* up as a robustness measure. However, this is how it would be done* if we were writing a real piece of RESET code.***

Page 42

G MISCELLANEOUS INFORMATION 43G Miscellaneous InformationG.1 RESET Bootup Code in BUFFALOG.1.1 EVBU and BUFFALOFor EVBU boards, the RESET code in the

Page 43 - E Makefile Example

G MISCELLANEOUS INFORMATION 44G.5 Mode setting for expanded modeThe 68HC11 has two mode selection signals. The setting of MODA=1,MODB=1 results in the

Page 44 - F Real–Time Interrupt Example

H 68HC11 NET RESOURCES 45H 68HC11 Net ResourcesSome current sites that provide resources are:• http://mirriwinni.cse.rmit.edu.au/~f1documentation and

Page 45

1 INTRODUCTION 11 IntroductionThere are a large number of 68HC11 devices and 68HC11 development systems available. Itis possible for this generous cho

Page 46

I 68HC11 OVERVIEW 46I 68HC11 OverviewOSCILLATORPE0A15A14A13A12A11A10AD7AD6AD5AD4AD3AD2AD1AD0RWbarASRESETbarXIRQbarPOWERSELECTMODEPE7PE6PE5PE4PE3PE2PE1

Page 47 - G Miscellaneous Information

1 INTRODUCTION 2• http://mirriwinni.cse.rmit.edu.au/~phillip/f1• http://mirriwinni.cse.rmit.edu.au/~f1• ftp://mirriwinni.cse.rmit.edu.au/pub/UoW1.1 To

Page 48

1 INTRODUCTION 3• the ImageCraft C compiler (ICC), which runs under DOS and OS/2, provides a doc-umented near ANSI C compiler, assembler, linker, and

Page 49 - H 68HC11 Net Resources

1 INTRODUCTION 41.4 Setting up your assembly language tools1.4.1 Cross assembler — DOSFor DOS systems, the cross assembler is available in executable

Page 50 - I 68HC11 Overview

2 SOFTWARE DEVELOPMENT CYCLE 52 Software development cycle2.1 Understand the problemWhat is it you need to do? Identify the data inputs and data outpu

Commentaires sur ces manuels

Pas de commentaire