Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

SPMCK16Z4MPV20 Datasheet(PDF) 467 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) 467 Page - Freescale Semiconductor, Inc

Back Button SPMCK16Z4MPV20 Datasheet HTML 463Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 464Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 465Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 466Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 467Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 468Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 469Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 470Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 471Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 467 / 500 page
background image
M68HC16 Z SERIES
INITIALIZATION AND PROGRAMMING EXAMPLES
USER’S MANUAL
E-15
LDD
#$3030
STD
CSOR1
;set Chip Select 1, lower byte, write only
LDD
#$0303
STD
CSBAR2
;set Chip Select 2 to fire at base addr $30000
LDD
#$7830
STD
CSOR2
;set Chip Select 2, both bytes, read and write
LDD
#$3FFF
STD
CSPAR0
;set Chip Selects 0,1,2 to 16-bit ports
*****
The Main Program
*****
MAIN:
;Move data from another place in memory
;into the U1 and U3 RAM slots.....
LDAB
#$00
TBXK
;set XK to bank 0 for access to the STRING
LDX
#STRING
;load the starting address of STRING into IX
LDAB
#$03
;set ZK to bank 3
TBZK
;for access to U1 & U3 during write in XLOOP
LDZ
#0000
;clear IZ so ZK:IZ = $30000
XLOOP:
LDD
0,X
;load two bytes from $10000 into accum. D
STD
0,Z
;store accum. D into U1 and U3 RAM:
;the chip select logic takes care of us!
AIX
#2
;increment X index register to next word
AIZ
#2
;increment Z index register to next word
CMPA
#$00
BEQ
PRINT
;end xloop if the end of the string $00 is
CMPB
#$00
;detected in either accumulator A or B
BNE
XLOOP
PRINT:
;This loop reads its string from the U1 and U3
;slots and prints it at the dummy terminal....
LDAB
#$03
TBXK
;set XK:IX index to point to bank 3
LDX
#$0000
;point to the beginning of the ASCII string
JSR
SEND_STRING
;go output the ASCII string
BRA
PRINT
;loop back and print again
*****
Subroutines
*****
SEND_STRING:
;subroutine to send out the entire ASCII
;string
LDAB
0,X
;get next char in string as pointed to by IX
BEQ
STRING_DONE
;if B=00, then message is done
JSR
SEND_CH
;go send out a character
AIX
#1
;increment IX to point to the next ASCII char
BRA
SEND_STRING
;loop back
STRING_DONE:
RTS
;go back to whence we came
SEND_CH:
;subroutine to send out one character at a
time
LDAA
SCSR
;read the SCI status reg to check TDRE bit
ANDA
#01
;check only the tdre flag bit
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