EM78P510N
8-Bit Microcontrollers
"CALL" instruction loads the low 10 bits of the PC and PC+1, and then push into the
stack.
"RET'' ("RETL k", "RETI") instruction loads the program counter with the contents at the
top of stack.
"MOV R2, A" allows the loading of an address from the A register to the PC, and
contents of the ninth and tenth bits don't change.
"ADD R2, A" allows a relative address be added to the current PC, and contents of the
ninth and tenth bits don't change.
The most significant bit (A10~A11) will be loaded with the contents of Bit PS0~PS2 in
the status register (R6) upon the execution of a "JMP'', "CALL'' instruction.
Figure 6-2 Program Counter Organization
User can use Long jump (LJMP) or long call (LCALL) instructions to program user's
code. And the program page is maintained by ELAN's compiler. It will change user's
program by inserting instructions within the program.
6.2.4 R3 (Status, Page Selection)
Status Flag, Page Selection Bits
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
LVDEN
LVDS1
LVDS0
T
P
Z
DC
C
Bit 7 (LVDEN): Voltage Detect Enable Bit
0 : No action
1 : Voltage detect enabled
Product Specification (V0.9) 09.12.2006
(This specification is subject to change without further notice)
• 13