Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

SPMCK16Z4MPV20 Datasheet(PDF) 475 Page - Freescale Semiconductor, Inc

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

SPMCK16Z4MPV20 Datasheet(HTML) 475 Page - Freescale Semiconductor, Inc

Back Button SPMCK16Z4MPV20 Datasheet HTML 471Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 472Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 473Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 474Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 475Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 476Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 477Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 478Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 479Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 475 / 500 page
background image
M68HC16 Z SERIES
INITIALIZATION AND PROGRAMMING EXAMPLES
USER’S MANUAL
E-23
E.2.2 CPU16 Programming Example
The following programming example involves using the CPU16 indexed and extended
addressing modes.
Refer to SECTION 4 CENTRAL PROCESSOR UNIT for more information on the
CPU16.
E.2.2.1 Example 5 - Indexed and Extended Addressing
*
Description : This program demonstrates indexed and extended
*
addressing.
*****************************************************************************
****
INCLUDE
'EQUATES.ASM'
;table of EQUates for common
register addresses
INCLUDE
'ORG00000.ASM'
;initialize reset vector
INCLUDE
'ORG00008.ASM'
;initialize interrupt vectors
ORG
$0200
;start program after interrupt vectors
*****
Initialization Routines
*****
INCLUDE
'INITSYS.ASM'
;initially set EK=F, XK=0, YK=0,
ZK=0
;set sys clock at 16.78MHz, disable
COP
INCLUDE
'INITRAM.ASM'
;initialize and turn on SRAM
;set stack (SK=#$1, SP=#$03FE)
*****
Start of main program
*****
LDAB
#$00
TBZK
;point ZK to bank 0
LDZ
#$FFFE
;set IZ=#$FFFE
OFFSET
EQU
$02
;SET OFFSET = $02
LDAB
#$01
TBEK
;point EK to bank 1
GO:
LDAA
#$00
STAA
$0000
;write 00 to $10000 (extended)
LDAA
#$FF
STAA
OFFSET,Z
;write ff to $10000 (indexed)
BRA
GO
*****
Exceptions/Interrupts
*****
BDM:
BGND
;exception vectors point here
;and put the user in background mode
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



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