Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button 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 SPMCK16Z4MPV20 Datasheet HTML 472Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 473Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 469 / 500 page
background image
M68HC16 Z SERIES
INITIALIZATION AND PROGRAMMING EXAMPLES
USER’S MANUAL
E-17
STD
SCCR1
;enable SCI receiver and transmitter
LDAB
#$01
TBZK
;point ZK at bank 1 (the SRAM)
LDZ
#$0000
;for indexing the variables CNT and DLY
CNT
EQU
$0000
;loop counter
DLY
EQU
$0002
;delay counter
*****
Main Program
*****
MAIN:
LDAB
#$7F
;set clock speed to 16.777MHz
STAB
SYNCR
;w=0, x=1, y=111111
NOT_L:
BRCLR
SYNCR+1,#8,NOT_L
;wait until synthesizer lock bit is set
LDD
#$01B5
STD
SCCR0
;set baud rate to 1200
JSR
DELAY
;delay for modulus counter of SCI to flush
LDX
#STRING
;load address of string into IX
JSR
SEND_STRING
;subroutine to send string to dummy terminal
LDAB
#$05
;set up loop counter
STAB
CNT,Z
LOOP1:
LDX
#SEC_STR
;load address of string into IX
JSR
SEND_STRING
;subroutine to send string to dummy terminal
DEC
CNT,Z
;decrement loop counter
BNE
LOOP1
;loop 5 times
LDAB
#$4F
;change clock frequency to 4.194MHz
STAB
SYNCR
;w=0, x=1, y=001111
LOOP2:
BRCLR
SYNCR+1,#8,LOOP2
;wait until synthesizer lock bit is set
LDD
#$006D
STD
SCCR0
;set BAUD rate back to 1200
JSR
DELAY
;delay for modulus counter of SCI to flush
LDX
#STRING2
;load address of string into IX
JSR
SEND_STRING
;subroutine to send string to dummy terminal
LDAB
#$05
;set up # of loops for loop counter to 5
STAB
CNT,Z
LOOP3:
LDX
#SEC_STR
;load address of string into IX
JSR
SEND_STRING
;subroutine to send string to dummy terminal
DEC
CNT,Z
;decrement loop counter
BNE
LOOP3
;loop 5 times
LBRA
MAIN
;branch back to main
*****
Subroutines
*****
DELAY:
LDD
#$FFFF
;delay loop
STD
DLY,Z
LOOP4:
DEC
DLY,Z
BNE
LOOP4
RTS
SEND_STRING:
;subroutine to send out the entire ASCII
;string
LDAB
0,X
;get next byte in string as pointed to by IX
BEQ
STRING_DONE
;if B=00, then message is done
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