поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

TMP88CS38 датащи(PDF) 28 Page - Toshiba Semiconductor

номер детали TMP88CS38
подробное описание детали  8-bit single chip microcomputer
PDF  226 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  TOSHIBA [Toshiba Semiconductor]
домашняя страница  http://www.semicon.toshiba.co.jp/eng
Logo TOSHIBA - Toshiba Semiconductor

TMP88CS38 датащи(HTML) 28 Page - Toshiba Semiconductor

Back Button TMP88CS38 Datasheet HTML 24Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 25Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 26Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 27Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 28Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 29Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 30Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 31Page - Toshiba Semiconductor TMP88CS38 Datasheet HTML 32Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 226 page
background image
TMP88CS38/CM38A/CP38A
2007-09-12
88CS38-28
(2) Saving/restoring general-purpose registers
During interrupt acceptance processing, the program counter (PC) and the program
status word (PSW) are automatically saved on the stack, but not the accumulator and
other registers. These registers are saved by the program if necessary. Also, when
nesting multiple interrupt services, it is necessary to avoid using the same data
memory area for saving registers.
The following method is used to save/restore the general-purpose registers.
1. General-purpose register save/restore by automatic register bank changeover
The general-purpose registers can be saved at high speed by switching to a
register bank that is not in use. Normally, the bank0 is used for the main task and
the banks 1 to 15 are assigned to interrupt service tasks. To increase the efficiency
of data memory utilization, the same bank is assigned for interrupt sources which
are not nested.
The switched bank is automatically restored by executing an interrupt return
instruction [RETI] or [RETN]. Therefore, it is not necessary for a program to save
the RBS.
Example: Register bank changeover
PINTxx:
Interrupt processing
RETI
VINTxx:
DP
PINTxx
DB
1
;
RBS
← RBS + 1
2. General-purpose register save/restore by register bank changeover
The general-purpose registers can be saved at high speed by switching to a
register bank that is not in use. Normally, the bank0 is used for the main tank and
the banks 1 to 15 are assigned to interrupt service tasks.
Example: Register bank changeover
PINTxx:
LD RBS, n
Interrupt processing
RETI
;
Restores bank and returns
VINTxx:
DP
PINTxx
;
Interrupt service routine entry address
DB
0
Figure 1.5.4 Saving/Restoring General-purpose Registers
Acceptance
of interrupt
Saving
registers
Restoring
registers
Interrupt
service task
Interrupt return
Main task
(b) Saving/restoring using push/pop or data transfer instructions
m
Acceptance
of interrupt
Bank m
n
m
m
Interrupt
service task
Restore to bank m
automatically by
[RETI]/[RETN]
Interrupt return
Switch to bank n by
LD, RBS and n
instruction
Switch to bank n
automatically
Main task
(a) Saving/restoring by register bank changeover
Time
m



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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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