mc9rs08ka2 Freescale Semiconductor, Inc, mc9rs08ka2 Datasheet - Page 58

no-image

mc9rs08ka2

Manufacturer Part Number
mc9rs08ka2
Description
Rs08 Microcontrollers 8-bit Microcontroller Family
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9rs08ka2CDB
Manufacturer:
FREESCALE
Quantity:
20 000
Company:
Part Number:
mc9rs08ka2CDB
Quantity:
4 900
Part Number:
mc9rs08ka2CPC
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9rs08ka2CSC
Manufacturer:
FREESCAE
Quantity:
20 000
Chapter 8 Central Processor Unit (RS08CPUV1)
In addition to the CPU registers, there are three memory mapped registers that are tightly coupled with the
core address generation during data read and write operations. They are the indexed data register (D[X]),
the index register (X), and the page select register (PAGESEL). These registers are located at $000E,
$000F, and $001F, respectively.
8.2.1
This general-purpose 8-bit register is the primary data register for RS08 MCUs. Data can be read from
memory into A with a load accumulator (LDA) instruction. The data in A can be written into memory with
a store accumulator (STA) instruction. Various addressing mode variations allow a great deal of flexibility
in specifying the memory location involved in a load or store instruction. Exchange instructions allow
values to be exchanged between A and SPC high (SHA) and also between A and SPC low (SLA).
Arithmetic, shift, and logical operations can be performed on the value in A as in ADD, SUB, RORA,
INCA, DECA, AND, ORA, EOR, etc. In some of these instructions, such as INCA and LSLA, the value
in A is the only input operand and the result replaces the value in A. In other cases, such as ADD and AND,
there are two operands: the value in A and a second value from memory. The result of the arithmetic or
logical operation replaces the value in A.
Some instructions, such as memory-to-memory move instructions (MOV), do not use the accumulator.
DBNZ also relieves A because it allows a loop counter to be implemented in a memory variable rather than
the accumulator.
During reset, the accumulator is loaded with $00.
58
Accumulator (A)
13
13
INDEXED DATA REGISTER D[X] (location $000E)
7
7
7
SHADOW PROGRAM COUNTER
Figure 8-2. Memory Mapped Registers
CONDITION CODE REGISTER
MC9RS08KA2 Series Data Sheet, Rev. 3
PAGE SELECT REG
PROGRAM COUNTER
INDEX REGISTER
Figure 8-1. CPU Registers
8
7
7
ACCUMULATOR
0
0
0
X (location $000F)
PAGESEL (location $001F)
Z
C
0
0
0
CARRY
ZERO
PC
SPC
CCR
A
Freescale Semiconductor

Related parts for mc9rs08ka2