Electronic Components Datasheet Search
  English  ▼

X  

TMP47P201 Datasheet(PDF) 8 Page - Toshiba Semiconductor

Part # TMP47P201
Description  CMOS 4-bit Microcontroller
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TOSHIBA [Toshiba Semiconductor]
Direct Link  http://www.semicon.toshiba.co.jp/eng
Logo TOSHIBA - Toshiba Semiconductor

TMP47P201 Datasheet(HTML) 8 Page - Toshiba Semiconductor

Back Button TMP47P201 Datasheet HTML 4Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 5Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 6Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 7Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 8Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 9Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 10Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 11Page - Toshiba Semiconductor TMP47P201 Datasheet HTML 12Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 32 page
background image
8/32
TOSHIBA CORPORATION
TMP47C101/201
(1)
Stack
The stack provides the area in which the return
address is saved before a jump is performed to the
processing routine at the execution of a subroutine call
instruction or the acceptance of an interrupt. When a
subroutine call instruction is executed, the contents
(the return address) of the program counter are saved;
when an interrupt is accepted, the contents of the pro-
gram counter and flags are saved.
When returning from the processing routine, executing
the subroutine return instruction [RET] restores the
contents of the program counter from the stack; exe-
cuting the interrupt return instruction [RETI] restores
the contents of the program counter and flags.
The stack consists of up to 15 levels (locations 0
through 14) which are provided in the data memory
(addresses 40H through 7BH). Each location consists
of 4-word data memory. Locations 13 and 14 are
shared with the count registers of the timer/counters
(TC1, TC2) to be described later.
The save/restore locations in the stack are determined
by the stack pointer word (SPW). The SPW is automat-
ically decremented after save, and incremented before
restore.That is, the value of the SPW indicates the
stack location number for the next save.
(2)
Stack Pointer Word (SPW)
Address 7FH (3FH for the 47C101) in the data memory
is called the stack pointer word, which identifies the
location in the stack to be accessed (save or restore).
Generally, location number 0 to 12 can be set to the
SPW, providing up to 13 levels of stack nesting. Loca-
tions 13 and 14 are shared with the timer/counters to
be described later; therefore, when the timer/counters
are not used, the stack area of up to 15 levels is avail-
able. Address 7FH is assigned to the SPW, so that the
contents of the SPW cannot be set “15” in any case.
The SPW is automatically updated when a subroutine
call is executed or an interrupt is accepted. However, if
it is used in excess of the stack area permitted by the
data memory allocating configuration, the user-pro-
cessed data may be lost.(For example, when the user-
processed data area is in an address range 00H
through 4FH, up to location 4 of the stacks are
usable.If an interrupt is accepted with location 4
already used, the user-processed data stored in
addresses 4CH through 4FH corresponding to the
location 3 area is lost.)
The SPW is not initialized by hardware, requiring to
write the initial value (the location with which the use of
the stack starts) by using the initialization routine. Nor-
mally, the initial value of “12” is used.
Example:
To initialize the SPW (when the stack is
used from location 12)
LD
A,#12
;
SPW
←12
ST
A,0FFH
(3)
Data Counter (DC)
The data counter is a 12-bit register to specify the
address of the data table to be referenced in the pro-
gram memory (ROM). Data table reference is per-
formed by the table look-up instructions [LDL A, @DC]
and [LDH A, @DC +]. The data table may be located
anywhere within the program memory address space.
The DC is assigned with a RAM address in unit of 4
bits. Therefore, the RAM manipulation instruction is
used to set the initial value or read the contents of the
DC.
Example:
To set the DC to 380H.
LD
HL,#07CH
; Sets RAM address of
DCL to HL register pair.
ST
#0H,@HL+
; DC
←380H
ST
#8H,@HL+
ST
#3H,@HL+
Figure 2-7. Data Counter



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com