UPD78F0138 NEC, UPD78F0138 Datasheet - Page 69

no-image

UPD78F0138

Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
(3) Stack pointer (SP)
(b) Zero flag (Z)
(c) Register bank select flags (RBS0 and RBS1)
(d) Auxiliary carry flag (AC)
(e) In-service priority flag (ISP)
(f) Carry flag (CY)
This is a 16-bit register to hold the start address of the memory stack area. Only the internal high-speed RAM
area can be set as the stack area.
The SP is decremented ahead of write (save) to the stack memory and is incremented after read (restored) from
the stack memory.
Each stack operation saves/restores data as shown in Figures 3-20 and 3-21.
Caution Since RESET input makes the SP contents undefined, be sure to initialize the SP before using
SP
When the operation result is zero, this flag is set (1). It is reset (0) in all other cases.
These are 2-bit flags to select one of the four register banks.
In these flags, the 2-bit information that indicates the register bank selected by SEL RBn instruction
execution is stored.
If the operation result has a carry from bit 3 or a borrow at bit 3, this flag is set (1). It is reset (0) in all other
cases.
This flag manages the priority of acknowledgeable maskable vectored interrupts. When this flag is 0, low-
level vectored interrupt requests specified by a priority specification flag register (PR0L, PR0H, PR1L, PR1H)
(refer to 17.3 (3)
acknowledged. Actual request acknowledgement is controlled by the interrupt enable flag (IE).
This flag stores overflow and underflow upon add/subtract instruction execution. It stores the shift-out value
upon rotate instruction execution and functions as a bit accumulator during bit operation instruction
execution.
SP15 SP14 SP13 SP12 SP11 SP10 SP9
the stack.
15
Priority specification flag registers (PR0L, PR0H, PR1L, PR1H)) can not be
Figure 3-19. Format of Stack Pointer
CHAPTER 3 CPU ARCHITECTURE
User’s Manual U16228EJ2V0UD
SP8
SP7
SP6
SP5
SP4
SP3
SP2
SP1
SP0
0
69

Related parts for UPD78F0138