11/2/95
SECTION 1: OVERVIEW
UM Rev 1
MOTOROLA
MC68340 USER'S MANUAL
vii
TABLE OF CONTENTS (Continued)
Paragraph
Page
Number
Title
Number
4.2.4.2
Global Chip Select Operation ................................................................4-14
4.2.5
External Bus Interface Operation...............................................................4-15
4.2.5.1
Port A...........................................................................................................4-15
4.2.5.2
Port B...........................................................................................................4-16
4.2.6
Low-Power Stop ...........................................................................................4-17
4.2.7
Freeze.............................................................................................................4-17
4.3
Programming Model.........................................................................................4-18
4.3.1
Module Base Address Register (MBAR)...................................................4-20
4.3.2
System Configuration and Protection Registers.....................................4-21
4.3.2.1
Module Configuration Register (MCR)..................................................4-21
4.3.2.2
Autovector Register (AVR).......................................................................4-23
4.3.2.3
Reset Status Register (RSR)...................................................................4-23
4.3.2.4
Software Interrupt Vector Register (SWIV)...........................................4-24
4.3.2.5
System Protection Control Register (SYPCR).....................................4-24
4.3.2.6
Periodic Interrupt Control Register (PICR) ...........................................4-26
4.3.2.7
Periodic Interrupt Timer Register (PITR)...............................................4-27
4.3.2.8
Software Service Register (SWSR) ......................................................4-28
4.3.3
Clock Synthesizer Control Register (SYNCR) ........................................4-28
4.3.4
Chip Select Registers ..................................................................................4-29
4.3.4.1
Base Address Registers ..........................................................................4-30
4.3.4.2
Address Mask Registers ..........................................................................4-31
4.3.4.3
Chip Select Registers Programming Example....................................4-33
4.3.5
External Bus Interface Control....................................................................4-33
4.3.5.1
Port A Pin Assignment Register 1 (PPARA1).......................................4-33
4.3.5.2
Port A Pin Assignment Register 2 (PPARA2).......................................4-34
4.3.5.3
Port A Data Direction Register (DDRA).................................................4-34
4.3.5.4
Port A Data Register (PORTA)................................................................4-34
4.3.5.5
Port B Pin Assignment Register (PPARB) ............................................4-35
4.3.5.6
Port B Data Direction Register (DDRB).................................................4-35
4.3.5.7
Port B Data Register (PORTB, PORTB1) ..............................................4-35
4.4
MC68340 Initialization Sequence.................................................................4-36
4.4.1
Startup ............................................................................................................4-36
4.4.2
SIM40 Module Configuration .....................................................................4-36
4.4.3
SIM40 Example Configuration Code........................................................4-38
Section 5
CPU32
5.1
Overview.............................................................................................................5-1
5.1.1
Features..........................................................................................................5-2
5.1.2
Virtual Memory ..............................................................................................5-2
5.1.3
Loop Mode Instruction Execution ..............................................................5-3
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.