[PDF] 68HC11 Instruction Set Immediate addressing always deals with





Previous PDF Next PDF



68HC11 Programmers Reference Manual

gram examples distributed with the Motorola 68HC11 Reference Manual; any of the code examples stored on the anonymous ftp sites (see Section H) or ...





68HC11 Instruction Set

Immediate addressing always deals with data or operands stored in registers not in memory. Examples: Address Code Mnemonic. Instruction Actions. 0100 86 5C LDAA 



MC68HC11

MICROCONTROLADOR 68HC11: FUNDAMENTOS RECURSOS Y PROGRAMACIÓN. OBJETIVOS : Con este libro se pretende cubrir el gran vacío que existe de información en 



68HC11 Notes

30 oct 2006 GCC 68HC11 compiler version 2.2. Processor(s):. Motorola 68HC11 E1E9 operating at 2 MHz E-clock ... 3.4 Sample Source Code .



Programming

68HC11 Instruction Set the source program is translated into machine code ... Example. ? Add the following numbers: ? 68HC11 can add 2.



M68HC11E M68HC11E Family - Data Sheet

In the M68HC11 CPU condition codes are updated automatically by most instructions. For example



Interfacing Motorola 68HC11 to Microchip SPI™ Serial EEPROMS

Motorola 68HC11. In order to simplify the design process Microchip has written an assembly code rou- tine to communicate with our SPI parts that is 



Tutorial Introduction

Welcome to this tutorial on the 68HC08 Analog-to-Digital Converter (ADC). can be found in the 68HC11 Reference Manual M68HC11RM/AD (see http://www.



68HC11 Microcontroller

Instruction Set

ECE2325 Spring 03 - Fernando Rios 2

Microcontroller Instruction Set

Data Handling Group

Arithmetic and Logic Group

Branching and Decision Group

Input/Output group

Special

ECE2325 Spring 03 - Fernando Rios 3

Data Handling Group

This group of instructions is used to initialize, alter the contents

of a register or memory location, to move data between registers,to move data between a register and memory, or between two memory locations, etc.

Examples: LOAD

STORECLEAR

ECE2325 Spring 03 - Fernando Rios 4

Arithmetic and Logic Group

This group of instructions is used to perform a specific Arithmetic or logic operation over one or more operands.

Examples: ADD

SUBSTRACTMULTIPLYORAND, etc

ECE2325 Spring 03 - Fernando Rios 5

Branching and Decision Group

This group of instructions is used to control the execution of the program

Examples: BRANCH

JUMPCALL, etc

ECE2325 Spring 03 - Fernando Rios 6

Special Instruction Group

This class of instructions is very close related to the hardwareof the CPU, and may control some internal signals.Example:

WAITNO OPERATIONINTERRUPT ENABLE, etc

ECE2325 Spring 03 - Fernando Rios 7

Instruction Formats

Op Code

1 Byte Instruction

Op Code

Op Code, Operand or Address

2 Byte Instruction

ECE2325 Spring 03 - Fernando Rios 8

Instruction Formats

Op Code

First byte of Operand or Address

Second byte of Operand or Address

Three ByteInstruction

ECE2325 Spring 03 - Fernando Rios 9

Storing of Instructions in Memory

Memory

Operand/Address LSB

Operand/Address MSB

Instruction Op code

Op code/Operand/Address

Instruction Op codeInstruction Op code

Initial

Address = 100

1 Byte instruction

101102103104105106

2 Byte instruction3 Byte instruction

ECE2325 Spring 03 - Fernando Rios 10

Addressing Modes

Whenever an instruction operates on a data or operand, we needto specify the location were the data resides. An addressing mode refers to the way we specify the address or location where the data is stored

Inherent

Immediate

Direct

Indexed

ECE2325 Spring 03 - Fernando Rios 11

Inherent Addressing

The instruction itself implies the location of the operand.Inherent addressing always deals with data or operandsstored in registers not in memory.Examples: Address Code Mnemonic Instruction Actions0100 4F CLRA ; Clear Acc A0101 5C INCB ; Increment Acc B0102 18 09 DEY ; Decrement register IY0104

1B ABA

Add Acc A to Acc B

0105 18 8F XGDY ; Swap contents of Acc D with IY

ECE2325 Spring 03 - Fernando Rios 12

Immediate Addressing

The instruction itself contains the

data or operand that is needed by

The instruction.

Immediate addressing always deals with data or operands stored in registers not in memory.

Examples:

Address Code Mnemonic Instruction Actions

0100 86 5C LDAA #$5C ; Load Acc A with 5C0102 8B 02 ADDA #$02 ; Add 02 to the contents of Acc A0104 CC 12 34 LDD #$1234 ; Load register D with 1234Note that immediate addressing is

specified by putting a # before the operand

ECE2325 Spring 03 - Fernando Rios 13

Data Numbering Definitions

T he symbols that are used to define the numbering system used in the operand field are: a)

No Symbol

Decimal Number

b) H exadecimal Number c) O ctal Number d) B inary Number

ECE2325 Spring 03 - Fernando Rios 14

Examples

A DDA 2 5

Add 25

d to Acc A A DDA $25 ; Add 25 h (37 d ) to Acc A A DDA

25 ; Add 25

o (21 d ) to Acc A A DDA %00011001 ; Add 25 d to Acc A

ECE2325 Spring 03 - Fernando Rios 15

Direct Addressing

The instruction contains the address of the memory location where the data or operand is stored. Direct addressing always deals with data or operands stored in

memory.There are two options for direct addressing: short and extendedExamples: Address Code Mnemonic Instruction Actions

0100 96 5C LDAA $5C ; Load acc A with data in location 5

C0102 8B 02 ADDA $02 ; Add the contents of loc 02 to acc A0104 B6 00 05 LDAA $005C ; Load acc A with data in location 5C

ECE2325 Spring 03 - Fernando Rios 16

Indexed Addressing

The address of the memory location where the data or operand is stored, is specified by using a special register.

There are two registers that can be

used to hold the address, and they are commonly known as index registers X and Y Indexed addressing always deals with data or operands stored in memory. This is the most complex type of addressing that the micro- controller can use to access a data in memory. Besides the address pointed by the index register, we can also specify a second number called an "offset". This number is added t o

the number stored in the index register to calculate the effective address of the data that is used by the instruction

ECE2325 Spring 03 - Fernando Rios 17

Indexed Addressing

Examples: Address Code Mnemonic

0100 A6 00 LDAA $0,X0102 18 E6 56 LDAB $56,X0105 18 A7 05 STAA $05,Y

ECE2325 Spring 03 - Fernando Rios 18

Instruction Actions

ECE2325 Spring 03 - Fernando Rios 19

Instruction Actions

ECE2325 Spring 03 - Fernando Rios 20

Pseudo instructions and Directives

a) Control Directives ORG

Specify Memory Storage Location

END

Specify end of program

b)

Data DirectivesFCB

Specify constant Byte

FDB

Specify double constant byte

FCC

Form Constant Character

EQU

Assign Value to a Label

RMB

Reserve Memory Block

ECE2325 Spring 03 - Fernando Rios 21

Pseudo-Instruction Usage Examples

ORG $C000

NUM1 EQU 25NUM2 EQU $25CONST FDB $ABCDMESSA FCC 'HELLO'

ORG $C100

DATA1 FCB $A0DATA2 FCB $B5BUFFER RMB 2

ORG $C200

START LDAA NUM2

END 22

Program

in

Memory

1996

B5A06F6C6C

6548
CDAB

2 Reservedlocations

Double biteDataMessage

Single ByteSingle Byte

Start ofProgramCode

ECE2325 Spring 03 - Fernando Rios 23

ECE2325 Spring 03 - Fernando Rios 24

ECE2325 Spring 03 - Fernando Rios 25

ECE2325 Spring 03 - Fernando Rios 26

Program Example 1

Write a program in assembly langu

age to add the numbers that are stored in memory at locations C100 - C 1005

Memory

Address

211713

951

C100C101C102C103C104C105

ECE2325 Spring 03 - Fernando Rios 27

Program

start

Load 1

Start L OAD C 100
ADD C 101
ADD C 102
ADD C 103
ADD C 104
ADD C 105
End Add 5 Add 9

Add 13Add 17Add 21

end

ECE2325 Spring 03 - Fernando Rios 28

quotesdbs_dbs7.pdfusesText_13
[PDF] 68hc11 instruction set

[PDF] 69 co defendants

[PDF] 69 cours de verdun oyonnax

[PDF] 69 meaning in the bible

[PDF] 6g frequency band

[PDF] 6ix9ine age 2019

[PDF] 6ix9ine age 2020

[PDF] 6ix9ine age jail

[PDF] 6ix9ine agency

[PDF] 6ix9ine gooba cast

[PDF] 6ix9ine gooba dancers

[PDF] 6ix9ine gooba lyrics az

[PDF] 6ix9ine gooba lyrics english

[PDF] 6ix9ine gooba lyrics español

[PDF] 6ix9ine gooba lyrics genius