전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

ST9 데이터시트(PDF) 17 Page - STMicroelectronics

부품명 ST9
상세설명  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 데이터시트(HTML) 17 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 13Page - STMicroelectronics ST9 Datasheet HTML 14Page - STMicroelectronics ST9 Datasheet HTML 15Page - STMicroelectronics ST9 Datasheet HTML 16Page - STMicroelectronics ST9 Datasheet HTML 17Page - STMicroelectronics ST9 Datasheet HTML 18Page - STMicroelectronics ST9 Datasheet HTML 19Page - STMicroelectronics ST9 Datasheet HTML 20Page - STMicroelectronics ST9 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 146 page
background image
17/146
ST9 USER GUIDE
routine. Doing this preserves the contents of the whole group, and the reverse operation re-
stores them, as in the example:
; The main program uses the working register group 0
InterruptRoutine:
pushw
RPP
; Keep track of current group
srp
#2
; Switch to group 1 (see text below for details)
...
...
; Body of the interrupt service routine
...
popw
RPP
; Restore whatever group was active
iret
; Return from interrupt
Supposing we could not switch working registers, we would have to push 16 bytes to the stack
to ensure that the contents of the working area have been preserved, and pop them back be-
fore returning. Obviously the example above is more efficient, both in code and data memory
size, and also in execution time.
You use register pointers to allocate the working registers in a particular group. When writing
in C or assembly language, you must position the working registers before you use them(2).
Switching groups involves the RPP register pair, made of the two registers RP0 and RP1.
These registers are directly accessible, but since their bits are laid out in a non-trivial manner,
it is recommended that you set them using only one of the srp, srp0 or srp1 instructions.
The registers are considered as sixteen groups of sixteen registers each. This is the way they
are represented in the register number summary table (See Table 1.). Use the numbers in this
table to refer to a register directly, e.g. when writing R35, this designates the fourth register of
group 2.
3.1.6.1 Switching the 16 Groups of Working Registers
This is done using the srp instruction. In spite of what we have explained up until now, and
how it is usually represented, the core does not actually divide the registers in 16 groups of 16
registers, but 32 blocks of 8 registers. This is why the srp instructions require arguments
ranging from 0 to 31 instead of 0 to 15. Here is how the Register Pointers select the desired
register group among 16 such groups.
(2) Device Datasheet; Address spaces of the register file § 2.2.1 and following, system regis-
ters § 2.3.



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



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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