English
Language : 

MC68HC16Z1CPV16 Datasheet, PDF (464/500 Pages) Freescale Semiconductor, Inc – Symbols and Operators, CPU16 Register Mnemonics
Freescale Semiconductor, Inc.
STD
CLR
LDAB
TBSK
LDS
RAMBAL
RAMMCR
#$01
#$03FE
; store low ram array
; enable ram
; set SK to bank 1 for system stack
; put SP at top of 1k internal SRAM
E.1.6 INITSCI.ASM
*
Title : INITSCI
*
Description : Initialize the SCI to transmit and receive
*
at 9600 baud.
*
*************************************************************************
INITSCI:
LDD
STD
LDD
STD
#$0037
SCCR0
#$000C
SCCR1
;initialize the SCI
;set the SCI baud rate to 9600 baud
;enable the SCI receiver and transmitter
E.2 Programming Examples
The following programming examples use different M68HC16 Z-series modules. All
programs were written to run on the M68HC16Z1EVB evaluation board. Refer to the
M68HC16Z1EVB Evaluation Board User’s Manual (M68HC16Z1EVB/D) for further in-
formation.
NOTE
These programs will also work on the modular evaluation board
(MEVB) using a microcontroller personality board for the appropriate
Z-series derivative. See APPENDIX C DEVELOPMENT SUPPORT
for more information on the MEVB.
Several of these programs send status messages using the SCI in the QSM on the
MC68HC16Z1, MC68CK16Z1, MC68CM16Z1, MC68HC16Z2, and MC68HC16Z3.
These programs can be made to function with SCIA in the MCCI on the MC68HC16Z4
and MC68CKZ4 as follows:
• Replace SCCR0 with SCCR0A.
• Replace SCCR1 with SCCR1A.
• Replace SCSR with SCSRA.
• Replace SCDR with SCDRA.
E-12
INITIALIZATION AND PROGRAMMING EXAMPLES
For More Information On This Product,
Go to: www.freescale.com
M68HC16 Z SERIES
USER’S MANUAL