em78p156n ELAN Microelectronics Corp, em78p156n Datasheet - Page 9

no-image

em78p156n

Manufacturer Part Number
em78p156n
Description
8-bit Micro-controller
Manufacturer
ELAN Microelectronics Corp
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
em78p156nPJ
Quantity:
42
Part Number:
em78p156nPJU
Manufacturer:
Hamlin
Quantity:
40 000
This specification is subject to change without prior notice.
3. R2 (Program Counter) & Stack
in Fig.3.
codes. One program page is 1024 words long.
PC to go to any location within a page.
the subroutine entry address can be located anywhere within a page.
stack.
of the PC are cleared.
ninth and tenth bits of the PC are cleared.
ninth and tenth bits (A8~A9) of the PC to be cleared. Thus, the computed jump is limited to the first
256 locations of a page.
change the contents of R2. Such instruction will need one more instruction cycle.
• Depending on the device type, R2 and hardware stack are 10-bits wide. The structure is depicted
• Generating 1024 13 bits on-chip OTP ROM addresses to the relative programming instruction
• R2 is set as all "0"s when under RESET condition.
• "JMP" instruction allows direct loading of the lower 10 program counter bits. Thus, "JMP" allows
• "CALL" instruction loads the lower 10 bits of the PC, and then PC+1 is pushed into the stack. Thus,
• "RET" ("RETL k", "RETI") instruction loads the program counter with the contents of the top-level
• "ADD R2, A" allows the contents of ‘A’ to be added to the current PC, and the ninth and tenth bits
• "MOV R2, A" allows to load an address from the "A" register to the lower 8 bits of the PC, and the
• Any instruction that writes to R2 (e.g., "ADD R2,A", "MOV R2,A", "BC R2,6",
• All instruction are single instruction cycle (fclk/2 or fclk/4) except for the instruction that would
Stack Level 1
Stack Level 2
Stack Level 3
Stack Level 4
Stack Level 5
PC (A9 ~ A0)
Fig. 3 Program Counter Organization
9
On-chip Program
Interrupt Vector
Reset Vector
Memory
000H
008H
3FFH
EM78P156N
) will cause the
OTP ROM
07.29.2004 (V1.2)

Related parts for em78p156n