Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

7906 Datasheet(PDF) 25 Page - Renesas Technology Corp

Part # 7906
Description  16-BIT SINGLE-CHIP MICROCOMPUTER
PDF  531 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

7906 Datasheet(HTML) 25 Page - Renesas Technology Corp

Back Button 7906 Datasheet HTML 21Page - Renesas Technology Corp 7906 Datasheet HTML 22Page - Renesas Technology Corp 7906 Datasheet HTML 23Page - Renesas Technology Corp 7906 Datasheet HTML 24Page - Renesas Technology Corp 7906 Datasheet HTML 25Page - Renesas Technology Corp 7906 Datasheet HTML 26Page - Renesas Technology Corp 7906 Datasheet HTML 27Page - Renesas Technology Corp 7906 Datasheet HTML 28Page - Renesas Technology Corp 7906 Datasheet HTML 29Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 531 page
background image
7906 Group User’s Manual Rev.2.0
CENTRAL PROCESSING UNIT (CPU)
2.1 Central processing unit (CPU)
2-4
2.1.4 Stack pointer (S)
The stack pointer (S) is a 16-bit register. It is used for a subroutine call or an interrupt. It is also used when
addressing modes using the stack are executed. The contents of S indicate an address (stack area) for
storing registers during subroutine calls and interrupts. Bank 016 is specified for the stack area. (Refer to
section “2.3 Access space.”)
When an interrupt request is accepted, the microcomputer stores the contents of the program bank register
(PG) at the address indicated by the contents of S and decrements the contents of S by 1. Then the
contents of the program counter (PC) and the processor status register (PS) are stored. The contents of
S after accepting an interrupt request is equal to the contents of S decremented by 5 before accepting of
Fig. 2.1.2 Contents of stack area after accepting
interrupt request
q “S” is the initial address that the stack pointer (S)
indicates at accepting an interrupt request.
The S’s contents become “S – 5” after storing the
above registers.
Address
S–4
S–3
S–2
S–1
S
Stack area
S–5
Processor status register’s low-order byte (PSL)
Processor status register’s high-order byte (PSH)
Program counter’s low-order byte (PCL)
Program counter’s high-order byte (PCH)
Program bank register (PG)
the interrupt request. (See Figure 2.1.2.)
When completing the process in the interrupt routine
and returning to the original routine, the contents of
registers stored in the stack area are restored into
the original registers in the reverse sequence
(PS
→PC→PG) by executing the RTI instruction. The
contents of S is returned to the state before accepting
an interrupt request.
The same operation is performed during a subroutine
call, however, the contents of PS is not automatically
stored. (The contents of PG may not be stored.
This depends on the addressing mode.)
During interrupts or subroutine calls, the other
registers are not automatically stored. Therefore, if
the contents of these registers need to be held on,
be sure to store them by software.
Additionally, the S’s contents become “0FFF16” at
reset. The stack area changes when subroutines
are nested or when multiple interrupt requests are
accepted. Therefore, make sure of the subroutine’s
nesting depth not to destroy the necessary data.
❈ Refer to “7900 Series Software Manual” for addressing modes and instructions.



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


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