MC9RS08KA1 FREESCALE [Freescale Semiconductor, Inc], MC9RS08KA1 Datasheet - Page 58

no-image

MC9RS08KA1

Manufacturer Part Number
MC9RS08KA1
Description
RS08 Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
MC9RS08KA1CDB
Quantity:
12 306
Part Number:
MC9RS08KA1CPC
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC9RS08KA1CSC
Manufacturer:
TI
Quantity:
213
Part Number:
MC9RS08KA1CSC
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC9RS08KA1CSC
0
Company:
Part Number:
MC9RS08KA1CSCR
Quantity:
2 439
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 MC9RS08KA1