MEVB QUICK START GUIDE
M68MPB334UM/D
3-7
Below is the MPB334.ICD initialization macro program listing.
reset
Reset MCU device
-----Define symbol values-----
symbol START 10400
Example starting address for user code
symbol MESSAGE 10500
Message string is stored here
symbol STACK 10700
Example stack pointer at end of TPURAM
symbol SIMCR FFFA00
SIM Configuration Register
symbol SYNCR FFFA04
Clock Synthesizer Control Register
symbol CSBARBT FFFA48
Chip-Select Base Address Register Boot ROM
symbol CSORBT FFFA4A
Chip-Select Option Register Boot ROM
symbol TRAMMCR FFFB00
TPU RAM Module Configuration Register
symbol TRAMBAR FFFB04
TPU RAM Base Address Register High
mdf3 200
Display memory at 200 to stop bus errors
var.w CSORBT
Show variables in F6 area
var.w CSBARBT
var.w SIMCR
var.w SYNCR
pc=200
Temporarily set program counter & stack pointer
a7=200
--to stop bus errors--
mm.w SIMCR 40CF
Set Module Mapping to $FFF000-$FFFFFF
mm.b SYNCR 7F
Set System Clock Frequency to 16.78 MHz
watchdog
Disable watchdog timer
mm.w CSBARBT 0003
Change CSBOOT Block Size to 64K
mm.w CSORBT 7830
Change Wait State to Zero
mmw TRAMMCR 8000
STOP TPU in order to set Base Address
mmw TRAMBAR 0100
Set TPU RAM Base Address to $010xxx
--The 1K of TPURAM begins at $10400--
mmw TRAMMCR 0000
Turn on TPURAM
D0=00000000
Initialize register values
D1=00000000
D2=00000000
D3=00000000
D4=00000000
D5=00000000
D6=00000000
D7=00000000
A0=00000000
A1=00000000
Содержание M68MPB334
Страница 6: ...CONTENTS vi M68MPB334UM D ...
Страница 10: ...GENERAL INFORMATION 1 4 M68MPB334UM D ...
Страница 22: ...HARDWARE PREPARATION AND INSTALLATION 2 12 M68MPB334UM D ...
Страница 42: ...MEVB SUPPORT INFORMATION 4 12 M68MPB334UM D ...
Страница 48: ...MAPI SUPPORT INFORMATION 5 6 M68MPB16Y3UM D ...
Страница 58: ...SCHEMATIC DIAGRAMS 6 10 M68MPB334UM D ...