68HC11 Instruction Set
68HC11 Microcontroller. Instruction Set This group of instructions is used to initialize alter the contents of a register or memory location
M68HC11RM M68HC11 - Reference Manual
M68HC11 instruction set includes 91 new opcodes. The nomenclature. M68xx is used in conjunction with a specific CPU architecture and instruction set as
Programming
The Instruction Set and Addressing Modes. F. 68HC11 Instruction Set. G. Microcontroller Arithmetic and the CCR. H. Program Flow Control Using Looping &.
Menu Computer Functional Block Diagram
%20Comp%20Org
68HC11 Programmers Reference Manual
Motorola “HC11 — M68HC11 Reference Manual”
Introduction to Microcontrollers
Introduction to Microcontrollers. Motorola 68HC11. MicroController Unit. The CPU: 68HC11E9. • 8-Bit word size. • 6800 Instruction set w/extensions.
ELECTRONICS-2 Microprocessors: Lecture 2 Introduction to the
Introduction to the 68HC11 Architecture and Instruction Set. Arithmetic Revision: Hexadecimal & Binary Arithmetic. Add. Complement. Subtract. Shift Left.
ELECTRONICS-2 Microprocessors: Lecture 3 Introduction to the
Introduction to the 68HC11. Address Map Registers and Basic Instruction Set. Contents: Address Map. Register Set. Instruction Set Overview
Microprocessor Systems using the Motorola 68HC11
1.5 68HC11 Instruction Set . 1.7.2 WIN68: A Software Simulation of the 68HC11 EVB . ... 2.5 68HC11 Addressing Modes and Instruction Execution .
Chapter 7. Microcontroller Implementation Consideration
In this section a Motorola 68HC11 microcontroller is suitability of the architecture and instruction set of Motorola 68HC11.
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 contentsof 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 programExamples: 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 ABAAdd 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 byThe instruction.
Immediate addressing always deals with data or operands stored in registers not in memory.Examples:
Address Code Mnemonic Instruction Actions0100 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 operandECE2325 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 NumberECE2325 Spring 03 - Fernando Rios 14
Examples
A DDA 2 5Add 25
d to Acc A A DDA $25 ; Add 25 h (37 d ) to Acc A A DDA25 ; Add 25
o (21 d ) to Acc A A DDA %00011001 ; Add 25 d to Acc AECE2325 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 inmemory.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 5CECE2325 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 othe 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 ORGSpecify Memory Storage Location
ENDSpecify end of program
b)Data DirectivesFCB
Specify constant Byte
FDBSpecify double constant byte
FCCForm Constant Character
EQUAssign Value to a Label
RMBReserve 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 2ORG $C200
START LDAA NUM2
END 22Program
inMemory
1996B5A06F6C6C
6548CDAB
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 1005Memory
Address
211713
951C100C101C102C103C104C105
ECE2325 Spring 03 - Fernando Rios 27
Program
startLoad 1
Start L OAD C 100ADD C 101
ADD C 102
ADD C 103
ADD C 104
ADD C 105
End Add 5 Add 9
Add 13Add 17Add 21
endECE2325 Spring 03 - Fernando Rios 28
Program Syntax
LDAA Load acc A
M oves a new data to Acc ADDAAdd a data using A Adds a new data to contents
of acc A result is left in acc AMnemonic Instruction
A ction Label M nemonic Action ORG $C200 ; specify starting address of program Start L DAAC100 ; loads first operant into A
ADDA $C101 ; adds second data ADDA $C102 ; adds third data ADDA $C103 ; adds fourth data ADDA $C104 ; adds fifth data ADDA $C105 ; adds sixth data Endquotesdbs_dbs14.pdfusesText_20[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
[PDF] 6ix9ine gooba lyrics meaning