Applications and Design Examples
16-8
MC68328 USER’S MANUAL 11/10/97
MOTOROLA
APPLICATIONS
AND
14
DESIGN
EXAMPLES
PRELIMINARY
TCMP2
equ
(M328BASE+$610); Compare Reg
TCR2
equ
(M328BASE+$612); Capture Reg
TCN2
equ
(M328BASE+$614); Counter
TSTAT2
equ
(M328BASE+$616); Status Reg
; Watchdog Registers
WCR
equ
(M328BASE+$618); Control Reg
WRR
equ
(M328BASE+$61A); Reference Reg
WCN
equ
(M328BASE+$61C); Counter
; SPI Registers
; SPI Slave Registers
SPISR
equ
(M328BASE+$700); SPIS Reg
;SPI Master Registers
SPIMDATA
equ
(M328BASE+$800); Control/Status Reg
SPIMCONT
equ
(M328BASE+$802); Data Reg
; UART Registers
USTCNT
equ
(M328BASE+$900); Status Control Reg
UBAUD
equ
(M328BASE+$902); Baud Control Reg
UARTRX
equ
(M328BASE+$904); Rx Reg
UARTTX
equ
(M328BASE+$906); Tx Reg
UARTMISC
equ
(M328BASE+$908); Misc Reg
; LCDC Registers
LSSA
equ
(M328BASE+$A00); Screen Start Addr Reg
LVPW
equ
(M328BASE+$A05); Virtual Page Width Reg
LXMAX
equ
(M328BASE+$A08); Screen Width Reg
LYMAX
equ
(M328BASE+$A0A); Screen Height Reg
LCXP
equ
(M328BASE+$A18); Cursor X Position
LCYP
equ
(M328BASE+$A1A); Cursor Y Position
LCWCH
equ
(M328BASE+$A1C); Cursor Width & Height Reg
LBLKC
equ
(M328BASE+$A1F); Blink Control Reg
LPICF
equ
(M328BASE+$A20); Panel Interface Config Reg
LPOLCF
equ
(M328BASE+$A21); Polarity Config Reg
LACDRC
equ
(M328BASE+$A23); ACD (M) Rate Control Reg
LPXCD
equ
(M328BASE+$A25); Pixel Clock Divider Reg
LCKCON
equ
(M328BASE+$A27); Clocking Control Reg
LLBAR
equ
(M328BASE+$A29); Last Buffer Addr Reg
LOTCR
equ
(M328BASE+$A2B); Octet Terminal Count Reg
LPOSR
equ
(M328BASE+$A2D); Panning Offset Reg
LFRCM
equ
(M328BASE+$A31); Frame Rate Control Mod Reg
LGPMR
equ
(M328BASE+$A32); Gray Palette Mapping Reg
LIRQR
equ
(M328BASE+$A34); Interrupt Control Reg
; RTC Registers
RTCHMSR
equ
(M328BASE+$B00); Hrs Mins Secs Reg
RTCALM0R
equ
(M328BASE+$B04); Alarm Register 0
RTCALM1R
equ
(M328BASE+$B08); Alarm Register 1
RTCCTL
equ
(M328BASE+$B0C); Control Reg
RTCISR
equ
(M328BASE+$B0E); Interrupt Status Reg
RTCIENR
equ
(M328BASE+$B10); Interrupt Enable Reg
RSTPWCH
equ
(M328BASE+$B12) ; Stopwatch Minutes
Reset_start:
move.w
#$2700,sr
; mask off all interrupts
;**********************************************************************
;
; Initialize I/O according to user’s configuration
;