LC587008, 587006, 587004
Continued from preceding page.
Symbol R/W
Function
Stack pointer
The stack consists of eight 14-bit registers and thus can be set to a depth of up to eight levels.
The stack pointer is incremented by CALL instructions and interrupts, and decremented by RTS, RTSR and POP
instructions.
Initialization
value at reset
STACK R/W
01H
P0 to P11: Program counter (PC)
DPF:
Data pointer flag
Bank register
The bank register is a 4-bit register that divides RAM (from 00H to FFH) into 16 sections and is used in moving RAM
data, immediate operations and setting the data pointer.
BNK
R/W
00H
Example: ADD*_5,10.....If BNK is 6 then the operation performed will be: RAM(65H) + 10 → AC → RAM(65H).
RAM page flags
APG
R/W
The RAM page flags consist of 2 bits that allow RAM to be expanded in 256 4-bit pages to a total of 1024 4-bit
locations.
00H
Note: Pages 2 and 3 cannot be used by the LC587004, LC587006 and LC587008.
Timer counters
The timers consist of 8-bit down counters. (timer 1 and timer 2)
Timer setting is performed in 8-bit units for immediate data. (timer 1 and timer 2)
Reading and writing the lower 4 bits of a timer counter is performed through a RAM location. (timer 2 only)
Reading and writing the upper 4 bits of a timer counter is performed using the B register. (timer 2 only)
TIM
TIM1 R/W
TIM2
Undefined
Continued on next page.
No. 4435-17/29