SIC63616-(Rev. 1.0) NO. P14
3240-0412
Chapter
3 Cpu, roM, raM
3.1 CPU
The S1C63616 has a 4-bit core CPU S1C63000 built-in as its CPU part.
Refer to the "S1C63000 Core CPU Manual" for the S1C63000.
3.2 Code ROM
The built-in code ROM is a mask ROM for loading programs, and has a capacity of 16,384 words
×
13
bits. The core CPU can linearly access the program space up to step FFFFH from step 0000H, however, the
program area of the S1C63616 is step 0000H to step 3FFFH. The program start address after initial reset is
assigned to step 0110H. The non-maskable interrupt (NMI) vector and hardware interrupt vectors are al-
located to step 0100H and steps 0101H–010FH, respectively.
0000H
3FFFH
4000H
FFFFH
0000H
0100H
0101H
0110H
0100H
0101H
0102H
0103H
0104H
0105H
0106H
0107H
0108H
0109H
010AH
010BH
010CH
010DH
010EH
010FH
Program area
NMI vector
Hardware
interrupt vectors
Program start address
Program area
Code ROM
Unused area
13 bits
S1C63000 core CPU
program space
Watchdog timer
R/f converter
Programmable timer 0
Programmable timer 1
Programmable timer 2
Programmable timer 3
Programmable timer 4
Programmable timer 5
Programmable timer 6
Programmable timer 7
Serial interface
Key input interrupt (P1)
Key input interrupt (P4)
Stopwatch
Clock timer (128/64/32/16 Hz)
Clock timer (8/4/2/1 Hz)
S1C63616
program area
Fig. 3.2.1 Configuration of code ROM
3.3 RAM
The RAM is a data memory for storing various kinds of data, and has a capacity of 2,048 words
×
4 bits. The
RAM area is assigned to addresses 0000H to 07FFH on the data memory map. Addresses 0100H to 01FFH
are 4-bit/16-bit data accessible areas and in other areas it is only possible to access 4-bit data. When pro-
gramming, keep the following points in mind.
(1) Part of the RAM area is used as a stack area for subroutine call and register evacuation, so pay atten-
tion not to overlap the data area and stack area.
(2) The S1C63000 core CPU handles the stack using the stack pointer for 4-bit data (SP2) and the stack
pointer for 16-bit data (SP1).
16-bit data are accessed in stack handling by SP1, therefore, this stack area should be allocated to
the area where 4-bit/16-bit access is possible (0100H to 01FFH). The stack pointers SP1 and SP2
change cyclically within their respective range: the range of SP1 is 0000H to 07FFH and the range of
SP2 is 0000H to 00FFH. Therefore, pay attention to the SP1 value because it may be set to 0200H or
more exceeding the 4-bit/16-bit accessible range in the S1C63616 or it may be set to 00FFH or less.
Memory accesses except for stack operations by SP1 are 4-bit data access.
After initial reset, all the interrupts including NMI are masked until both the stack pointers SP1 and
SP2 are set by software. Further, if either SP1 or SP2 is re-set when both are set already, the interrupts
including NMI are masked again until the other is re-set. Therefore, the settings of SP1 and SP2 must
be done as a pair.
Содержание S1C63616
Страница 1: ...S1C63616 Technical Manual Rev 1 0 ...