ADAM24P08 ETC, ADAM24P08 Datasheet - Page 28

no-image

ADAM24P08

Manufacturer Part Number
ADAM24P08
Description
Remote Control Transmitter
Manufacturer
ETC
Datasheet
www.DataSheet.co.kr
3. Instruction
(17) RTN
(16) CAL a
Naming :
Status :
Format :
Function :
<Purpose>
program.
<Comment>
Naming :
Status :
Format :
Operand :
Function :
<Comment>
Return from Subroutine
Set
PC ← SR1
SR1 ← SR2
SR2 ← SR3
SR3 ← SR3
Control is returned from the called subroutine to the calling
Control is returned to its home routine by transferring to the
PC the data of the return address that has been saved in the stack
register (SR1).
At the same time, data of the page stack register (PSR1) is
transferred to the PA and PB, and data of the block stack register(BSR1)
is transferred to the BA and BB.
Subroutine Call on status 1
Conditional depending on the status
Subroutine code address a (Addr)
When ST =1 :
When ST = 0 :
Note : PC actually has pseudo-random count against the next instruction.
In a program, control is allowed to be transferred to a mutual
subroutine. Since a call instruction preserves the return
address, it is possible to call the subroutine from different
locations in a program, and the subroutine can return control
accurately to the address that is preserved by the use of the
call return instruction (RTN).
Such calling is always conditional depending on the status.
The subroutine stack (SR) of three levels enables a subroutine to be
manipulated on three levels. Besides, a long call (to call another page)
can be executed on any level.
For a long call, LBBY or LPBI instruction should be executed before
the CAL. When LBBY or LPBI is omitted (and when BA=BB and PA=PB),
a short call (calling in the same page) is executed.
PC ← PC + 1
a. If the status is reset, call is not executed.
b. If the status is set, call is rightly executed.
PC ← a (Addr)
SR1 ← PC + 1
SR2 ← SR1
SR3 ← SR2
Page 27 of 36
PA, PB ← PSR1
PSR1 ← PSR2
PSR2 ← PSR3
PSR3 ← PSR3
PA ← PA
PA ← PB
PSR1 ← PA
PSR2 ← PSR1
PSR3 ← PSR2
BA ← BA
BA, BB ← BSR1
BSR1 ← BSR2
BSR2 ← BSR3
BSR3 ← BSR3
ST ← 1
BSR1 ← BA
ADAM24PXX
BA ← BB
BSR2 ← BSR1
BSR3 ← BSR2
ST ← 1
Datasheet pdf - http://www.DataSheet4U.net/

Related parts for ADAM24P08