MPC2F35E2 MEGAWIN [Megawin Technology Co., Ltd], MPC2F35E2 Datasheet - Page 5

no-image

MPC2F35E2

Manufacturer Part Number
MPC2F35E2
Description
Low-speed USB micro-controller
Manufacturer
MEGAWIN [Megawin Technology Co., Ltd]
Datasheet
FUNCTION DESCRIPTION
Registers
Accumulator
The accumulator is a 8-bit register, which stores the results of most arithmetic and logic operations.
In addition, the accumulator usually contains one of two data words used in these operations.
Index Register (X, Y)
There are two 8-bit index registers (X and Y), which may be used to count program steps or to
provide an index value to be used in generating an effective address. When executing an
instruction, which specifies indexed addressing, the MCU fetches the OP Code and the base
address, and modifies the address by adding the index register to the base address before
performing the desired operation. Pre- or post-index of index address is possible.
Processor Status Register (P)
The 8-bit processor status register contains seven status flags. Some flags are controlled by the
program,
Program Counter (PC)
The 16-bit program counter register provides the addresses, which steps MPC2F35 through the
sequential program instructions. Each time this MCU fetches an instruction from program memory, the
lower byte of the program counter (PCL) is placed on the low-order 8 bits of the address bus, and the
higher byte of the program counter (PCH) is placed on the high-order 8 bits. The counter is incremented
each time when an instruction or data is fetched from program memory.
MEGAWIN
Bit 7
N
N: Signed flag, 1 = negative, 0 = positive
V: Overflow flag, 1 = true, 0 = false
B: BRK interrupt command, 1 = BRK, 0 = IRQB
D: Decimal mode, 1 = true, 0 = false
I: IRQB disable flag, 1 = disable, 0 = enable
Z: Zero flag, 1 = true, 0 = false
C: Carry flag, 1 = true, 0 = false
PCH
and
Bit 6
1
V
others
may
PCL
Bit 5
A
Y
X
P
S
1
be
MPC2F35_USB Data Sheet
controlled
Bit 4
B
by
Bit 3
D
both
the
Bit 2
I
program
Bit 1
Z
and
the
Bit 0
C
MCU.
5

Related parts for MPC2F35E2