Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button SPMCK16Z4MPV20 Datasheet HTML 461Page - Freescale Semiconductor, Inc SPMCK16Z4MPV20 Datasheet HTML 462Page - Freescale Semiconductor, Inc 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 465 / 500 page
background image
M68HC16 Z SERIES
INITIALIZATION AND PROGRAMMING EXAMPLES
USER’S MANUAL
E-13
E.2.1 SIM Programming Examples
The following programming examples involve using the system integration module
(SIM). The programs include:
• Using ports E and F.
• Setting up U1 and U3 RAM slots with two 32K X 8 RAM chips using chip selects.
• Demonstrating the ability of the M68HC16 to change clock frequencies on the fly.
• Demonstrating the software watchdog, the periodic interrupt, and an autovector.
Refer to SECTION 5 SYSTEM INTEGRATION MODULE for more information on the
SIM.
E.2.1.1 Example 1 - Using Ports E and F
*
Description : This program demonstrates a simple I/O usage of
*
Ports E and F with a loop that will load Port E
*
with a number, pass that number over to
*
Port F through a hardwire of the M68HC16Z1EVB, and then
read
*
that number from the Port F data register.
*
Port E will be incremented each loop.
*
The hardwire of the M68HC16Z1EVB is from DSACK0 to MODCLK,
*
from DSACK1 to IRQ1, and from AVEC to IRQ2.
*
The numbers start at #$00 and go to #$07.
*
*************************************************************************
INCLUDE
'EQUATES.ASM'
;table of EQUates for common register
;addresses
INCLUDE
'ORG00000.ASM'
;initialize reset vector
INCLUDE
'ORG00008.ASM'
;initialize exception vectors
ORG
$00200
;start program right after exception
;vectors
*****
Initialize
*****
INCLUDE
'INITSYS.ASM'
;initially set
EK=F, XK=0, YK=0, ZK=0
;set sys clock at 16.78MHz, disable COP
INCLUDE
'INITRAM.ASM'
;turn on internal SRAM at $10000
;set stack in bank 1 (SK=1, SP=03FE)
LDAB #$00
STAB PEPAR
;define the Port E pins as I/O pins
STAB PFPAR
;define the Port F pins as I/O pins
LDAB #$00
STAB PORTE0
;clear the Port E data register
STAB PORTF0
;clear the Port F data register
LDAB #$FF
STAB DDRE
;initialize Port E pins as outputs
;note that Port E pin 3 does not exist!
LDAB #$FF
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