UPD17073 NEC, UPD17073 Datasheet - Page 25

no-image

UPD17073

Manufacturer Part Number
UPD17073
Description
4-BIT SINGLE-CHIP MICROCONTROLLER WITH HARDWARE FOR DIGITAL TUNING SYSTEM
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD17073GB-572-1A7-A
Manufacturer:
RENESAS
Quantity:
16 435
3.4 Operations of Address Stack
3.4.1 Subroutine call (“CALL addr” or “CALL @AR”) and return (“RET” or “RETSK”) instructions
address is stored to the address stack register specified by the stack pointer.
address) is restored to the program counter, and the value of the stack pointer is incremented by one.
3.4.2 Table reference instruction (“MOVT DBF, @AR”)
return address is stored to the address stack register specified by the stack pointer.
contents of the address stack register specified by the stack pointer (return address) are restored to the program
counter. The value of the stack pointer is then incremented by one.
3.4.3 On acceptance of interrupt and execution of return instruction (“RETI” instruction)
stored to the address stack register specified by the stack address.
(return address) are restored to the program counter and the value of the stack pointer is incremented by one.
3.4.4 Address stack manipulation instructions (“PUSH AR” and “POP AR”)
of the address register are transferred to the address stack register specified by the stack pointer.
are transferred to the address register, and the value of the stack pointer is incremented by one.
3.5 Notes on Using Address Stack
the value of the stack pointer is 2H.
program execution returns to an “undefined” address.
When a subroutine call instruction is executed, the value of the stack pointer is decremented by one and the return
When a return instruction is executed, the contents of the address stack specified by the stack pointer (return
When the table reference instruction is executed, the value of the stack pointer is decremented by one and the
Next, the contents of the program memory addressed by the address register are read to the data buffer, and the
When an interrupt is accepted, the value of the stack pointer is decremented by one, and the return address is
When the return instruction is executed, the contents of the address stack register specified by the stack pointer
When the “PUSH” instruction is executed, the value of the stack pointer is decremented by one, and the contents
When the “POP” instruction is executed, the contents of the address stack register specified by the stack pointer
The nesting level of the address stack is two, and the value of the address stack register ASR2 is “undefined” when
Consequently, if a subroutine is called or an interrupt is used exceeding 2 levels without manipulating the stack,
PD17072,17073
25

Related parts for UPD17073