Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HCS12 Datasheet(PDF) 430 Page - Freescale Semiconductor, Inc

Part # HCS12
Description  HCS12 Microcontrollers
PDF  452 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

HCS12 Datasheet(HTML) 430 Page - Freescale Semiconductor, Inc

Back Button HCS12 Datasheet HTML 426Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 427Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 428Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 429Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 430Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 431Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 432Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 433Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 434Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 430 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
430
Freescale Semiconductor
C.9 Function Calls
Bank switching is a fairly common way of adapting a CPU with a 16-bit
address bus to accommodate more than 64 Kbytes of program memory
space. One of the most significant drawbacks of this technique has been the
requirement to mask (disable) interrupts while the bank page value was
being changed. Another problem is that the physical location of the bank
page register can change from one MCU derivative to another (or even due
to a change to mapping controls by a user program). In these situations, an
operating system program has to keep track of the physical location of the
page register. The CPU12 addresses both of these problems with the
uninterruptible CALL and return-from-call (RTC) instructions.
The CALL instruction is similar to a JSR instruction, except that the
programmer supplies a destination page value as part of the instruction.
When CALL executes, the old page value is saved on the stack and the new
page value is written to the bank page register. Since the CALL instruction
is uninterruptible, this eliminates the need to separately mask off interrupts
during the context switch.
The CPU12 has dedicated signal lines that allow the CPU to access the
bank page register without having to use an address in the normal 64-Kbyte
address space. This eliminates the need for the program to know where the
page register is physically located.
The RTC instruction is similar to the RTS instruction, except that RTC uses
the byte of information that was saved on the stack by the corresponding
CALL instruction to restore the bank page register to its old value. Although
a CALL/RTC pair can be used to access any function subroutine regardless
of the location of the called routine (on the current bank page or a different
page), it is most efficient to access some subroutines with JSR/RTS
instructions when the called subroutine is on the current page or in an area
of memory that is always visible in the 64-Kbyte map regardless of the bank
page selection.
Push and pull instructions can be used to stack some or all the CPU
registers during a function call. The CPU12 can push and pull any of the
CPU registers A, B, CCR, D, X, Y, or SP.



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