Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button 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 SPMCK16Z4MPV20 Datasheet HTML 480Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 481Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 482Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 483Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 484Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 480 / 500 page
background image
INITIALIZATION AND PROGRAMMING EXAMPLES
M68HC16 Z SERIES
E-28
USER’S MANUAL
ANDA
#$01
;check only the TDRE flag bit
BEQ
SEND_CH
;if TDR is not empty, go back to check it
again
LDAA
#$00
;clear A to send a full word to SCDR ($FFC0E)
STD
SCDR
;transmit one ASCII character to the screen
TC_LOOP:
LDAB
SCSR+1
ANDB
#$80
;test the TC bit (transfer complete)
BEQ
TC_LOOP
;continue to wait until TC is set
RTS
;finish sending out byte
*****
The STRINGS
*****
STRING_IC1
DC.W
'Input capture 1 caught a transition',0a,0d,00
STRING_IC2
DC.W
'Input capture 2 caught a rising edge',0a,0d,00
STRING_IC3
DC.W
'Input capture 3 caught a falling edge',0a,0d,00
STRING_OC2
DC.W
0a,'Output compare 2 just toggled',0a,0d,00
STRING_PAOV
DC.W
0a,'Pulse Accum. has overflowed 10
times!',07,0a,0d,00
*****
Exceptions/Interrupts
*****
*
Note that every one of the GPT interrupt service routines clears
*
its flag bit at the end of the routine before the RTI instruction.
EVEN
IC1_ROUTINE:
;execute when IC1 senses a transition
LDX
#STRING_IC1
JSR
SEND_STRING
;print the message
BCLR
TFLG1,#$01
;clear the IC1 flag bit
RTI
IC2_ROUTINE:
;execute when IC2 senses a rising edge
LDX
#STRING_IC2
JSR
SEND_STRING
;print the message
BCLR
TFLG1,#$02
;clear the IC2 flag bit
RTI
IC3_ROUTINE:
;execute when IC3 senses a falling edge
LDX
#STRING_IC3
JSR
SEND_STRING
;print the message
BCLR
TFLG1,#$04
;clear the IC3 flag bit
RTI
OC2_ROUTINE:
;execute when OC2 does a toggle
LDX
#STRING_OC2
JSR
SEND_STRING
;print the message
BCLR
TFLG1,#$10
;clear the OC2 flag bit
RTI
PAOV_ROUTINE:
;execute on Pulse Accumulator Counter overflow
;if PAI pin tied PWMA, bell approx every 5 sec
;if PAI pin tied PWMB, bell approx every 10
min
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