NXP MC68341_ Reference guide

Category
Processors
Type
Reference guide
Parts Not Suitable for New Designs
For Additional Information
End-Of-Life Product Change Notice
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
© MOTOROLA, 1993
MC68341
Integrated Processor
User’s Manual
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding
the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and
specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters can and do vary in different
applications. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. Motorola does not
convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems
intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola
product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims,
costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and are
registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
PREFACE
The complete documentation package for the MC68341 consists of the MC68341UM/AD,
MC68341 Integrated Processor User’s Manual
, M68000PM/AD,
MC68000 Family
Programmer’s Reference Manual,
and the MC68341P/D,
MC68341 Integrated Processor
Product Brief
.
The
MC68341 Integrated Processor User’s Manual
describes the programming,
capabilities, registers, and operation of the MC68341; the
MC68000 Family Programmer’s
Reference Manual
provides instruction details for the MC68341; and
the
MC68341
Integrated Processor Product Brief
provides a brief description of the MC68341
capabilities.
This user’s manual is organized as follows:
Section 1 Device Overview Section 9 Queued Serial Peripheral
Section 2 Signal Descriptions Module
Section 3 Bus Operation Section 10 IEEE 1149.1 Test Access
Section 4 System Integration Module Port
Section 5 CPU32 Section 11 Applications
Section 6 DMA Controller Module Section 12 Electrical Characteristics
Section 7 Serial Module Section 13 Ordering Information and
Section 8 Timer Modules Mechanical Data
68K FAX-IT –
Documentation Comments
FAX 512-891-8593—Documentation Comments Only
The Motorola High-End Technical Publications Department provides a fax number for you
to submit any questions or comments about this document or how to order other
documents. We welcome your suggestions for improving our documentation. Please do
not fax technical questions.
Please provide the part number and revision number (located in upper right-hand corner
of the cover) and the title of the document. When referring to items in the manual, please
reference by the page number, paragraph number, figure number, table number, and line
number if needed.
When sending a fax, please provide your name, company, fax number, and phone
number including area code.
Applications and Technical Information
For questions or comments pertaining to technical information, questions, and
applications, please contact one of the following sales offices nearest you.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
— Sales Offices —
UNITED STATES
ALABAMA, Huntsville (205) 464-6800
ARIZONA, Tempe (602) 897-5056
CALIFORNIA, Agoura Hills (818) 706-1929
CALIFORNIA, Los Angeles (310) 417-8848
CALIFORNIA, Irvine (714) 753-7360
CALIFORNIA, Rosevllle (916) 922-7152
CALIFORNIA, San Diego (619) 541-2163
CALIFORNIA, Sunnyvale (408) 749-0510
COLORADO, Colorado Springs (719) 599-7497
COLORADO, Denver (303) 337-3434
CONNECTICUT, Wallingford (203) 949-4100
FLORIDA, Maitland (407) 628-2636
FLORIDA, Pompano Beach/Fort.
Lauderdale (305) 486-9776
FLORIDA, Clearwater (813) 538-7750
GEORGlA, Atlanta (404) 729-7100
IDAHO, Boise (208) 323-9413
ILLINOIS, Chicago/Hoffman Estates (708) 490-9500
INDlANA, Fort Wayne (219) 436-5818
INDIANA, Indianapolis (317) 571-0400
INDIANA, Kokomo (317) 457-6634
IOWA, Cedar Rapids (319) 373-1328
KANSAS, Kansas City/Mission (913) 451-8555
MARYLAND, Columbia (410) 381-1570
MASSACHUSETTS, Marborough (508) 481-8100
MASSACHUSETTS, Woburn (617) 932-9700
MICHIGAN, Detroit (313) 347-6800
MINNESOTA, Minnetonka (612) 932-1500
MISSOURI, St. Louis (314) 275-7380
NEW JERSEY, Fairfield (201) 808-2400
NEW YORK, Fairport (716) 425-4000
NEW YORK, Hauppauge (516) 361-7000
NEW YORK, Poughkeepsie/Fishkill (914) 473-8102
NORTH CAROLINA, Raleigh (919) 870-4355
OHIO, Cleveland (216) 349-3100
OHIO, Columbus Worthington (614) 431-8492
OHIO, Dayton (513) 495-6800
OKLAHOMA, Tulsa (800) 544-9496
OREGON, Portland (503) 641-3681
PENNSYLVANIA, Colmar (215) 997-1020
Philadelphia/Horsham (215) 957-4100
TENNESSEE, Knoxville (615) 690-5593
TEXAS, Austin (512) 873-2000
TEXAS, Houston (800) 343-2692
TEXAS, Plano (214) 516-5100
VIRGINIA, Richmond (804) 285-2100
WASHINGTON, Bellevue (206) 454-4160
Seattle Access (206) 622-9960
WISCONSIN, Milwaukee/Brookfield (414) 792-0122
Field Applications Engineering Available
Through All Sales Offices
CANADA
BRITISH COLUMBIA, Vancouver (604) 293-7605
ONTARIO, Toronto (416) 497-8181
ONTARIO, Ottawa (613) 226-3491
QUEBEC, Montreal (514) 731-6881
INTERNATIONAL
AUSTRALIA, Melbourne (61-3)887-0711
AUSTRALIA, Sydney (61(2)906-3855
BRAZIL, Sao Paulo 55(11)815-4200
CHINA, Beijing 86 505-2180
FINLAND, Helsinki 358-0-35161191
Car Phone 358(49)211501
FRANCE, Paris/Vanves 33(1)40 955 900
GERMANY, Langenhagen/ Hanover 49(511)789911
GERMANY, Munich 49 89 92103-0
GERMANY, Nuremberg 49 911 64-3044
GERMANY, Sindelfingen 49 7031 69 910
GERMANY,Wiesbaden 49 611 761921
HONG KONG, Kwai Fong 852-4808333
Tai Po 852-6668333
INDIA, Bangalore (91-812)627094
ISRAEL, Tel Aviv 972(3)753-8222
ITALY, Milan 39(2)82201
JAPAN, Aizu 81(241)272231
JAPAN, Atsugi 81(0462)23-0761
JAPAN, Kumagaya 81(0485)26-2600
JAPAN, Kyushu 81(092)771-4212
JAPAN, Mito 81(0292)26-2340
JAPAN, Nagoya 81(052)232-1621
JAPAN, Osaka 81(06)305-1801
JAPAN, Sendai 81(22)268-4333
JAPAN, Tachikawa 81(0425)23-6700
JAPAN, Tokyo 81(03)3440-3311
JAPAN, Yokohama 81(045)472-2751
KOREA, Pusan 82(51)4635-035
KOREA, Seoul 82(2)554-5188
MALAYSIA, Penang 60(4)374514
MEXICO, Mexico City 52(5)282-2864
MEXICO, Guadalajara 52(36)21-8977
Marketing 52(36)21-9023
Customer Service 52(36)669-9160
NETHERLANDS, Best (31)49988 612 11
PUERTO RICO, San Juan (809)793-2170
SINGAPORE (65)2945438
SPAIN, Madrid 34(1)457-8204
or 34(1)457-8254
SWEDEN, Solna 46(8)734-8800
SWITZERLAND, Geneva 41(22)7991111
SWITZERLAND, Zurich 41(1)730 4074
TAlWAN, Taipei 886(2)717-7089
THAILAND, Bangkok (66-2)254-4910
UNITED KINGDOM, Aylesbury 44(296)395-252
FULL LINE REPRESENTATIVES
COLORADO, Grand Junction
Cheryl Lee Whitely (303) 243-9658
KANSAS, Wichita
Melinda Shores/Kelly Greiving (316) 838 0190
NEVADA, Reno
Galena Technology Group (702) 746 0642
NEW MEXICO, Albuquerque
S&S Technologies, lnc. (505) 298-7177
UTAH, Salt Lake City
Utah Component Sales, Inc. (801) 561-5099
WASHINGTON, Spokane
Doug Kenley (509) 924-2322
ARGENTINA, Buenos Aires
Argonics, S.A. (541) 343-1787
HYBRID COMPONENTS RESELLERS
Elmo Semiconductor (818) 768-7400
Minco Technology Labs Inc. (512) 834-2022
Semi Dice Inc. (310) 594-4631
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL iii
TABLE OF CONTENTS
Paragraph Page
Number Title Number
Section 1
Device Overview
1.1 Features .............................................................................................. 1-2
Section 2
Signal Descriptions
2.1 Signal Index ........................................................................................ 2-3
2.2 Bus Signals ......................................................................................... 2-5
2.2.1 Address Bus .................................................................................... 2-6
2.2.1.1 Address Bus (A23–A0) ................................................................ 2-6
2.2.1.2 Address Bus (A31–A24) .............................................................. 2-6
2.2.2 Address Strobe (AS)........................................................................ 2-6
2.2.3 M68000 Address Strobe (68KAS) .................................................... 2-6
2.2.4 Data Bus (D15–D0) ......................................................................... 2-6
2.2.5 Data Strobe (DS)............................................................................. 2-7
2.2.6 Upper And Lower Data Strobes (UDS , LDS) ................................... 2-7
2.2.7 Byte Write Enable (UWE , LWE)....................................................... 2-7
2.2.8 Read/Write (R/W) ............................................................................ 2-7
2.2.9 Transfer Size (SIZ1, SIZ0)............................................................... 2-8
2.2.10 Function Codes (FC3–FC0)............................................................. 2-8
2.2.11 Chip Selects (CS7 –CS1 , CS0 /AVEC).............................................. 2-8
2.2.12 Interrupt Request Level (IRQ7 – IRQ1) ........................................... 2-9
2.3 Bus Control Signals............................................................................. 2-9
2.3.1 Data and Size Acknowledge (DSACK1 , DSACK0) .......................... 2-9
2.4 Bus Arbitration Signals........................................................................ 2-9
2.4.1 Bus Request (BR) ............................................................................ 2-9
2.4.2 Bus Grant (BG )................................................................................ 2-10
2.4.3 Bus Grant Acknowledge (BGACK) .................................................. 2-10
2.4.4 Read-Modify-Write Cycle (RMC/RTCOUT) ..................................... 2-10
2.5 Exception Control Signals ................................................................... 2-10
2.5.1 Reset (RESET) ................................................................................ 2-10
2.5.2 Halt (HALT)...................................................................................... 2-10
2.5.3 Bus Error (BERR ) ............................................................................ 2-10
2.6 Clock Signals ...................................................................................... 2-11
2.6.1 System Clock (CLKOUT)................................................................. 2-11
2.6.2 Crystal Oscillator (EXTAL, XTAL).................................................... 2-11
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
iv MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
2.6.3 External Clock (EXTCLK)................................................................ 2-11
2.6.4 External Filter Capacitor (XFC) ....................................................... 2-11
2.6.5 Clock Mode Select (MODCK, Port B0)............................................ 2-11
2.7 Instrumentation and Emulation Signals............................................... 2-11
2.7.1 Instruction Fetch (IFETCH ).............................................................. 2-11
2.7.2 Instruction Pipe (IPIPE) ................................................................... 2-12
2.7.3 Breakpoint (BKPT ) .......................................................................... 2-12
2.7.4 Freeze (FREEZE)............................................................................ 2-12
2.8 DMA Module Signals .......................................................................... 2-12
2.8.1 DMA Request (DREQ2 , DREQ1 ) .................................................... 2-12
2.8.2 DMA Acknowledge (DACK2, DACK1/DDACK2 , DDACK1 ) ............. 2-13
2.8.3 DMA Done (DONE2 , DONE1 )......................................................... 2-13
2.8.4 Data Transfer Complete (DTC) ....................................................... 2-13
2.8.5 DMA Ready (RDY2, RDY1) ............................................................ 2-13
2.9 Serial Module Signals ......................................................................... 2-13
2.9.1 Serial Crystal Oscillator (X2, X1) ..................................................... 2-13
2.9.2 Serial External Clock Input (SCLK) ................................................. 2-13
2.9.3 Receive Data (RxDA, RxDB)........................................................... 2-14
2.9.4 Transmit Data (TxDA, TxDB)........................................................... 2-14
2.9.5 Clear to Send (CTSA, CTSB) .......................................................... 2-14
2.9.6 Request to Send (RTSA, RTSB) ..................................................... 2-14
2.9.7 Transmitter Ready (T≈RDYA ).......................................................... 2-14
2.9.8 Receiver Ready (R≈RDYA) ............................................................. 2-14
2.10 Queued Serial Module Signals ........................................................... 2-15
2.10.1 Master In Slave Out (MISO)............................................................ 2-15
2.10.2 Master Out Slave In (MOSI)............................................................ 2-15
2.10.3 QSPI Serial Clock (QSCLK)............................................................ 2-15
2.10.4 QSPI Peripheral Chip Select (PCS1, PCS0)................................... 2-15
2.11 Timer Signals ...................................................................................... 2-15
2.11.1 Timer Gate (TGATE2 ) ..................................................................... 2-15
2.11.2 Timer Input (TIN) ............................................................................. 2-16
2.11.3 Timer Output (TOUT) ...................................................................... 2-16
2.12 Test Signals ........................................................................................ 2-16
2.12.1 Test Clock (TCK) ............................................................................. 2-16
2.12.2 Test Mode Select (TMS) ................................................................. 2-16
2.12.3 Test Data In (TDI)............................................................................ 2-16
2.12.4 Test Data Out (TDO) ....................................................................... 2-16
2.13 Real Time Clock Mode Signals........................................................... 2-16
2.13.1 Battery Switch (BSW )...................................................................... 2-16
2.13.2 Battery Voltage (V
BATT
)................................................................. 2-16
2.13.3 Real Time Clock Output (RMC/RTCOUT) ....................................... 2-17
2.14 System Power and Ground (V
CC
AND GND) .................................... 2-17
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL v
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
Section 3
Bus Operation
3.1 68000 Bus Mode ..................................................................................... 3-1
3.2 Bus Transfer Signals............................................................................... 3-2
3.2.1 Bus Control Signals ............................................................................. 3-3
3.2.2 Function Code Signals ............................................................................ 3-4
3.2.3 Address Bus (A31–A0)............................................................................ 3-5
3.2.4 Address Strobe (AS) ............................................................................... 3-5
3.2.5 68000 Address Strobe (AS68K) .............................................................. 3-5
3.2.6 Data Bus (D15–D0)................................................................................. 3-5
3.2.7 Data Strobe (DS)..................................................................................... 3-5
3.2.8 Upper and Lower Data Strobes (UDS and LDS )..................................... 3-6
3.2.9 Upper and Lower Write Enables (UWE and LWE) .................................. 3-6
3.2.10 Data Transfer Complete (DTC)............................................................... 3-6
3.2.11 Bus Cycle Termination Signals ............................................................... 3-6
3.2.11.1 Data Transfer and Size Acknowledge Signals
(DSACK1 and DSACK0). ................................................................. 3-6
3.1.11.2 Bus Error (BERR) ............................................................................. 3-7
3.2.11.3 Autovector (AVEC)........................................................................... 3-7
3.3 Data Transfer Mechanism....................................................................... 3-7
3.3.1 Dynamic Bus Sizing ................................................................................ 3-7
3.3.2 Misaligned Operands .............................................................................. 3-9
3.3.3 Operand Transfer Cases......................................................................... 3-10
3.3.3.1 Byte Operand to 8-Bit Port, Odd or Even (A0 = X) .......................... 3-10
3.3.3.2 Byte Operand to 16-Bit Port, Even (A0 = 0)..................................... 3-10
3.3.3.3 Byte Operand to 16-Bit Port, Odd (A0 = 1) ...................................... 3-11
3.3.3.4 Word Operand to 8-Bit Port, Aligned ............................................... 3-11
3.3.3.5 Word Operand to 16-Bit Port, Aligned ............................................. 3-12
3.3.3.6 Long-word Operand to 8-Bit Port, Aligned. ...................................... 3-12
3.3.3.7 Long-Word Operand to 16-Bit Port, Aligned .................................... 3-14
3.3.4 Bus Operation...................................................................................... 3-16
3.3.5 Synchronous Operation with DSACK≈ ................................................ 3-16
3.3.6 Fast Termination Cycles...................................................................... 3-17
3.4 Data Transfer Cycles........................................................................... 3-18
3.4.1 M68300 Read Cycle................................................................................ 3-18
3.4.2 68000 Read Cycle................................................................................... 3-21
3.4.3 M68300 Write Cycle................................................................................ 3-23
3.4.4 68000 Write Cycle................................................................................... 3-26
3.4.5 Read-Modify-Write Cycle ........................................................................ 3-29
3.5 CPU Space Cycles.................................................................................. 3-31
3.5.1 Breakpoint Acknowledge Cycle............................................................... 3-31
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
vi MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
3.5.2 LPSTOP Broadcast Cycle....................................................................... 3-32
3.5.3 Module Base Address Register Access.................................................. 3-36
3.5.4 Interrupt Acknowledge Bus Cycles ......................................................... 3-36
3.5.4.1 Interrupt Acknowledge Cycle—Terminated Normally.......................... 3-36
3.5.4.2 Autovector Interrupt Acknowledge Cycle............................................. 3-38
3.5.4.3 Spurious Interrupt Cycle...................................................................... 3-39
3.6 Bus Exception Control Cycles................................................................. 3-41
3.6.1 Bus Errors ............................................................................................... 3-43
3.6.2 Retry Operation....................................................................................... 3-45
3.6.3 Halt Operation......................................................................................... 3-47
3.6.4 Double Bus Fault .................................................................................... 3-48
3.7 Bus Arbitration ........................................................................................ 3-49
3.7.1 Bus Request ........................................................................................... 3-52
3.7.2 Bus Grant................................................................................................ 3-52
3.7.3 Bus Grant Acknowledge ......................................................................... 3-52
3.7.4 Bus Arbitration Control............................................................................ 3-53
3.7.5 Show Cycles ........................................................................................... 3-53
3.8 Reset Operation...................................................................................... 3-55
Section 4
System Integration Module
4.1 Module Overview .................................................................................... 4-1
4.2 Module Operation.................................................................................... 4-2
4.2.1 Module Base Address Register Operation .......................................... 4-2
4.2.2 System Configuration and Protection Operation ................................. 4-3
4.2.2.1 System Configuration ...................................................................... 4-5
4.2.2.2 Internal Bus Monitor......................................................................... 4-6
4.2.2.3 Double Bus Fault Monitor ................................................................ 4-6
4.2.2.4 Spurious Interrupt Monitor ............................................................... 4-6
4.2.2.5 Software Watchdog ......................................................................... 4-6
4.2.2.6 Periodic Interrupt Timer ................................................................... 4-7
4.2.2.6.1 Periodic Timer Period Calculation................................................ 4-8
4.2.2.6.2 Using the Periodic Timer as a Real-Time Clock........................... 4-9
4.2.2.7 Simultaneous Interrupts by Sources in the SIM41........................... 4-9
4.2.3 Clock Synthesizer Operation............................................................... 4-9
4.2.3.1 Phase Comparator and Filter........................................................... 4-12
4.2.3.2 Frequency Divider............................................................................ 4-12
4.2.3.3 Clock Control ................................................................................... 4-15
4.2.4 Chip Select Operation ......................................................................... 4-15
4.2.4.1 Programmable Features .................................................................. 4-15
4.2.4.2 Global Chip Select Operation .......................................................... 4-16
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL vii
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
4.2.5 External Bus Interface Operation ........................................................ 4-17
4.2.5.1 Port A. .............................................................................................. 4-17
4.2.5.2 Port B ............................................................................................... 4-17
4.2.6 Low-Power Stop .................................................................................. 4-18
4.2.7 Freeze.................................................................................................. 4-19
4.3 Programming Model ................................................................................ 4-19
4.3.1 Module Base Address Register (MBAR) ............................................. 4-22
4.3.2 System Configuration and Protection Registers.................................. 4-23
4.3.2.1 Module Configuration Register (MCR)............................................. 4-23
4.3.2.2 Autovector Register (AVR)............................................................... 4-25
4.3.2.3 Reset Status Register (RSR) ........................................................... 4-25
4.3.2.4 Software Interrupt Vector Register (SWIV) ...................................... 4-26
4.3.2.5 System Protection Control Register (SYPCR)................................. 4-26
4.3.2.6 Periodic Interrupt Control Register (PICR)....................................... 4-28
4.3.2.7 Periodic Interrupt Timer Register (PITR) ......................................... 4-28
4.3.2.8 Software Service Register (SWSR) ................................................. 4-29
4.3.3 Clock Synthesizer Control Register (SYNCR)..................................... 4-29
4.3.4 Chip Select Registers .......................................................................... 4-31
4.3.4.1 Base Select Registers ......................................................................... 4-31
4.3.4.2 Address Mask Registers.................................................................. 4-33
4.3.4.3 Bus Select Register.......................................................................... 4-35
4.3.4.4 Map Select Register......................................................................... 4-35
4.3.4.5 Chip Select Registers Programming Example................................. 4-35
4.3.5 External Bus Interface Control............................................................. 4-36
4.3.5.1 Port A Pin Assignment Register 1 (PPARA1) .................................. 4-36
4.3.5.2 Port A Pin Assignment Register 2 (PPARA2) .................................. 4-36
4.3.5.3 Port A Data Direction Register (DDRA). .......................................... 4-37
4.3.5.4 Port A Data Register (PORTA) ........................................................ 4-37
4.3.5.5 Port B Pin Assignment Register (PPARB)....................................... 4-37
4.3.5.6 Port B Data Direction Register (DDRB) ........................................... 4-38
4.3.5.7 Port B Data Register (PORTB, PORTB1)........................................ 4-38
4.3.5.8 Port C Pin Assignment Register (PPARC)....................................... 4-38
4.4 Real Time Clock ...................................................................................... 4-39
4.4.1 Reset ................................................................................................... 4-39
4.4.2 RTC Interrupt Control Register (RICR)................................................ 4-39
4.4.3 RTC Control/Status Register (RCR).................................................... 4-40
4.4.3 RTC Calibration Control Register (RCCR) .......................................... 4-41
4.4.4 RTC Time of Day Registers................................................................. 4-43
4.4.5 RTC Alarm Registers........................................................................... 4-45
4.4.6 RTC Power Up Operation.................................................................... 4-46
4.4.7 RTC Power Down Operation............................................................... 4-46
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
viii MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
4.5 MC68340 Initialization Sequence............................................................ 4-46
4.5.1 Startup................................................................................................. 4-47
4.5.2 SIM41 Module Configuration............................................................... 4-47
4.5.3 SIM41 Example Configuration Code ................................................... 4-48
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
5.1.4 Vector Base Register....................................................................... 5-4
5.1.5 Exception Handling.......................................................................... 5-4
5.1.6 Addressing Modes........................................................................... 5-5
5.2 Architecture Summary ........................................................................ 5-5
5.2.1 Programming Model ........................................................................ 5-6
5.2.2 Registers ......................................................................................... 5-7
5.3 Instruction Set ..................................................................................... 5-8
5.3.1 M68000 Family Compatibility .......................................................... 5-10
5.3.1.1 New Instructions .......................................................................... 5-10
5.3.1.1.1 Low-Power Stop (LPSTOP) ..................................................... 5-10
5.3.1.1.2 Table Lookup and Interpolate (TBL)......................................... 5-10
5.3.1.2 Unimplemented Instructions ........................................................ 5-10
5.3.2 Instruction Format and Notation...................................................... 5-10
5.3.3 Instruction Summary ....................................................................... 5-13
5.3.3.1 Condition Code Register.............................................................. 5-18
5.3.3.2 Data Movement Instructions ........................................................ 5-19
5.3.3.3 Integer Arithmetic Operations...................................................... 5-20
5.3.3.4 Logic Instructions......................................................................... 5-22
5.3.3.5 Shift and Rotate Instructions........................................................ 5-22
5.3.3.6 Bit Manipulation Instructions........................................................ 5-23
5.3.3.7 Binary-Coded Decimal (BCD) Instructions................................... 5-24
5.3.3.8 Program Control Instructions ....................................................... 5-24
5.3.3.9 System Control Instructions......................................................... 5-25
5.3.3.10 Condition Tests............................................................................ 5-27
5.3.4 Using the TBL Instructions .............................................................. 5-27
5.3.4.1 Table Example 1 Standard Usage ........................................... 5-28
5.3.4.2 Table Example 2 Compressed Table....................................... 5-29
5.3.4.3 Table Example 3 8-Bit Independent Variable........................... 5-30
5.3.4.4 Table Example 4 Maintaining Precision ................................... 5-32
5.3.4.5 Table Example 5 Surface Interpolations .................................. 5-34
5.3.5 Nested Subroutine Calls.................................................................. 5-34
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL ix
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
5.3.6 Pipeline Synchronization with the NOP Instruction ......................... 5-34
5.4 Processing States ............................................................................... 5-34
5.4.1 State Transitions.............................................................................. 5-35
5.4.2 Privilege Levels ............................................................................... 5-35
5.4.2.1 Supervisor Privilege Level ........................................................... 5-35
5.4.2.2 User Privilege Level ..................................................................... 5-36
5.4.2.3 Changing Privilege Level ............................................................. 5-36
5.5 Exception Processing.......................................................................... 5-36
5.5.1 Exception Vectors............................................................................ 5-37
5.5.1.1 Types of Exceptions..................................................................... 5-38
5.5.1.2 Exception Processing Sequence ................................................. 5-38
5.5.1.3 Exception Stack Frame................................................................ 5-39
5.5.1.4 Multiple Exceptions ...................................................................... 5-39
5.5.2 Processing of Specific Exceptions................................................... 5-41
5.5.2.1 Reset............................................................................................ 5-41
5.5.2.2 Bus Error...................................................................................... 5-43
5.5.2.3 Address Error ............................................................................... 5-43
5.5.2.4 Instruction Traps .......................................................................... 5-44
5.5.2.5 Software Breakpoints................................................................... 5-44
5.5.2.6 Hardware Breakpoints ................................................................. 5-45
5.5.2.7 Format Error................................................................................. 5-45
5.5.2.8 Illegal or Unimplemented Instructions.......................................... 5-45
5.5.2.9 Privilege Violations....................................................................... 5-46
5.5.2.10 Tracing ......................................................................................... 5-47
5.5.2.11 Interrupts...................................................................................... 5-48
5.5.2.12 Return from Exception ................................................................. 5-49
5.5.3 Fault Recovery ................................................................................ 5-50
5.5.3.1 Types of Faults ............................................................................ 5-52
5.5.3.1.1 Type I—Released Write Faults................................................. 5-52
5.5.3.1.2 Type II—Prefetch, Operand, RMW, and MOVEP Faults.......... 5-53
5.5.3.1.3 Type III—Faults During MOVEM Operand Transfer ................ 5-54
5.5.3.1.4 Type IV—Faults During Exception Processing......................... 5-54
5.5.3.2 Correcting a Fault......................................................................... 5-55
5.5.3.2.1 Type I—Completing Released Writes via Software ................. 5-55
5.5.3.2.2 Type I—Completing Released Writes via RTE......................... 5-55
5.5.3.2.3 Type II—Correcting Faults via RTE.......................................... 5-56
5.5.3.2.4 Type III—Correcting Faults via Software.................................. 5-56
5.5.3.2.5 Type III—Correcting Faults by Conversion and Restart........... 5-56
5.5.3.2.6 Type III—Correcting Faults via RTE......................................... 5-57
5.5.3.2.7 Type IV—Correcting Faults via Software ................................. 5-57
5.5.4 CPU32 Stack Frames...................................................................... 5-58
5.5.4.1 Four-Word Stack Frame .............................................................. 5-58
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
x MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
5.5.4.2 Six-Word Stack Frame................................................................. 5-58
5.5.4.3 Bus Error Stack Frame ................................................................ 5-58
5.6 Development Support ......................................................................... 5-61
5.6.1 CPU32 Integrated Development Support........................................ 5-61
5.6.1.1 Background Debug Mode (BDM) Overview................................. 5-62
5.6.1.2 Deterministic Opcode Tracking Overview.................................... 5-62
5.6.1.3 On-Chip Hardware Breakpoint Overview..................................... 5-63
5.6.2 Background Debug Mode................................................................ 5-63
5.6.2.1 Enabling BDM.............................................................................. 5-63
5.6.2.2 BDM Sources............................................................................... 5-64
5.6.2.2.1 External BKPT Signal............................................................... 5-64
5.6.2.2.2 BGND Instruction ..................................................................... 5-64
5.6.2.2.3 Double Bus Fault...................................................................... 5-64
5.6.2.3 Entering BDM .............................................................................. 5-64
5.6.2.4 Command Execution.................................................................... 5-65
5.6.2.5 BDM Registers............................................................................. 5-65
5.6.2.5.1 Fault Address Register (FAR) .................................................. 5-65
5.6.2.5.2 Return Program Counter (RPC) ............................................... 5-65
5.6.2.5.3 Current Instruction Program Counter (PCC). ........................... 5-65
5.6.2.6 Returning from BDM .................................................................... 5-66
5.6.2.7 Serial Interface............................................................................. 5-66
5.6.2.7.1 CPU Serial Logic...................................................................... 5-67
5.6.2.7.2 Development System Serial Logic ........................................... 5-69
5.6.2.8 Command Set.............................................................................. 5-71
5.6.2.8.1 Command Format .................................................................... 5-71
5.6.2.8.2 Command Sequence Diagram................................................. 5-72
5.6.2.8.3 Command Set Summary.......................................................... 5-73
5.6.2.8.4 Read A/D Register (RAREG/RDREG) ..................................... 5-74
5.6.2.8.5 Write A/D Register (WAREG/WDREG).................................... 5-75
5.6.2.8.6 Read System Register (RSREG)............................................. 5-75
5.6.2.8.7 Write System Register (WSREG) ............................................ 5-76
5.6.2.8.8 Read Memory Location (READ)............................................... 5-77
5.6.2.8.9 Write Memory Location (WRITE) ............................................. 5-78
5.6.2.8.10 Dump Memory Block (DUMP).................................................. 5-79
5.6.2.8.11 Fill Memory Block (FILL) .......................................................... 5-80
5.6.2.8.12 Resume Execution (GO) .......................................................... 5-81
5.6.2.8.13 Call User Code (CALL) ............................................................ 5-82
5.6.2.8.14 Reset Peripherals (RST) .......................................................... 5-84
5.6.2.8.15 No Operation (NOP)................................................................. 5-84
5.6.2.8.16 Future Commands.................................................................... 5-85
5.6.3 Deterministic Opcode Tracking ....................................................... 5-85
5.6.3.1 Instruction Fetch (IFETCH).......................................................... 5-85
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL xi
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
5.6.3.2 Instruction Pipe (IPIPE)................................................................ 5-85
5.6.3.3 Opcode Tracking During Loop Mode ........................................... 5-87
5.7 Instruction Execution Timing ............................................................... 5-87
5.7.1 Resource Scheduling ...................................................................... 5-87
5.7.1.1 Microsequencer............................................................................ 5-87
5.7.1.2 Instruction Pipeline....................................................................... 5-87
5.7.1.3 Bus Controller Resources ............................................................ 5-88
5.7.1.3.1 Prefetch Controller ................................................................... 5-89
5.7.1.3.2 Write-Pending Buffer. ............................................................... 5-89
5.7.1.3.3 Microbus Controller .................................................................. 5-89
5.7.1.4 Instruction Execution Overlap ...................................................... 5-89
5.7.1.5 Effects of Wait States................................................................... 5-90
5.7.1.6 Instruction Execution Time Calculation........................................ 5-91
5.7.1.7 Effects of Negative Tails .............................................................. 5-92
5.7.2 Instruction Stream Timing Examples............................................... 5-92
5.7.2.1 Timing Example 1—Execution Overlap ....................................... 5-93
5.7.2.2 Timing Example 2—Branch Instructions...................................... 5-93
5.7.2.3 Timing Example 3—Negative Tails.............................................. 5-94
5.7.3 Instruction Timing Tables ................................................................ 5-95
5.7.3.1 Fetch Effective Address ............................................................... 5-97
5.7.3.2 Calculate Effective Address ......................................................... 5-98
5.7.3.3 MOVE Instruction......................................................................... 5-99
5.7.3.5 Arithmetic/Logic Instructions........................................................ 5-101
5.7.3.6 Immediate Arithmetic/Logic Instructions ...................................... 5-102
5.7.3.7 Binary-Coded Decimal and Extended Instructions ...................... 5-103
5.7.3.8 Single Operand Instructions......................................................... 5-103
5.7.3.9 Shift/Rotate Instructions............................................................... 5-104
5.7.3.10 Bit Manipulation Instructions........................................................ 5-105
5.7.3.11 Conditional Branch Instructions ................................................... 5-105
5.7.3.12 Control Instructions ...................................................................... 5-106
5.7.3.13 Exception-Related Instructions and Operations........................... 5-107
5.7.3.14 Save and Restore Operations...................................................... 5-108
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
xii MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
Section 6
DMA Controller Module
6.1 DMA Module Overview ........................................................................... 6-2
6.2 DMA Module Signal Definitions............................................................... 6-4
6.2.1 DMA Request (DREQ1, DREQ2)........................................................ 6-4
6.2.2 DMA Acknowledge (DACK1,DACK2).................................................. 6-4
6.2.3 Ready (RDY1, RDY2) ......................................................................... 6-4
6.2.4 DMA Done (DONE1, DONE2)............................................................. 6-4
6.2.5 Data Transfer Complete (DTC) ........................................................... 6-4
6.3 Transfer Request Generation.................................................................. 6-4
6.3.1 Internal Request Generation ............................................................... 6-5
6.3.1.1 Internal Request, Maximum Rate .................................................... 6-6
6.3.1.2 Internal Request, Limited Rate ........................................................ 6-6
6.3.2 External Request Generation .............................................................. 6-6
6.3.2.1 External Burst Mode ........................................................................ 6-6
6.3.2.2 External Cycle Steal Mode............................................................... 6-6
6.3.2.3 External Request With Other Modules............................................. 6-7
6.4 Data Transfer modes .............................................................................. 6-8
6.4.1 Single-Address Mode .......................................................................... 6-8
6.4.1.1 Single-Address Read....................................................................... 6-8
6.4.1.2 Single-Address Write ....................................................................... 6-11
6.4.2 Dual-Address Mode............................................................................. 6-13
6.4.2.1 Dual-Address Read ......................................................................... 6-13
6.4.2.2 Dual-Address Write.......................................................................... 6-16
6.5 Bus Arbitration ........................................................................................ 6-19
6.6 DMA Channel Operation......................................................................... 6-19
6.6.1 Channel Initialization and Startup........................................................ 6-19
6.6.2 Data Transfers..................................................................................... 6-20
6.6.2.1 Internal Request Transfers .............................................................. 6-20
6.6.2.2 External Request Transfers............................................................. 6-20
6.6.3 Channel Termination ........................................................................... 6-21
6.6.3.1 Channel Termination........................................................................ 6-21
6.6.3.2 Interrupt Operation........................................................................... 6-21
6.6.3.3 Fast Termination Option .................................................................. 6-22
6.7 Register Description................................................................................ 6-23
6.7.1 Byte Transfer Counter Register (BTC) ................................................ 6-25
6.7.2 Channel Control Register (CCR) ......................................................... 6-25
6.7.3 Channel Status Register (CSR) .......................................................... 6-29
6.7.4 Destination Address Register (DAR)................................................... 6-30
6.7.5 Function Code Register (FCR) ............................................................ 6-31
6.7.6 Interrupt Register (INTR) ..................................................................... 6-32
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL xiii
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
6.7.7 Module Configuration Register (MCR) ................................................ 6-33
6.7.8 Source Address Register (SAR).......................................................... 6-35
6.8 Data Packing........................................................................................... 6-36
6.9 DMA Channel Initialization Sequence..................................................... 6-36
6.9.1 DMA Channel Configuration................................................................ 6-37
6.9.1.1 DMA Channel Operation In Single-Address Mode .......................... 6-38
6.9.1.2 DMA Channel Operation In Dual-Address Mode ............................. 6-39
6.9.2 DMA Channel Example Configuration Code ....................................... 6-40
6.10 MC68341 DMA Enhancements............................................................... 6-47
6.10.1 RDY≈ ................................................................................................... 6-47
6.10.2 Delayed DACK≈ ................................................................................... 6-47
6.10.3 DTC ..................................................................................................... 6-47
6.10.4 Timing Examples ................................................................................. 6-48
Section 7
Serial Module
7.1 Module Overview ................................................................................ 7-2
7.1.1 Serial Communication Channels A and B........................................ 7-3
7.1.2 Baud Rate Generator Logic............................................................. 7-3
7.1.3 Internal Channel Control Logic........................................................ 7-3
7.1.4 Interrupt Control Logic ..................................................................... 7-3
7.1.5 Comparison of the Serial Module to the MC68681.......................... 7-4
7.2 Serial Module Signal Definitions.......................................................... 7-4
7.2.1 Crystal Input or External Clock (X1) ................................................ 7-5
7.2.2 Crystal Output (X2).......................................................................... 7-5
7.2.3 External Input (SCLK) ..................................................................... 7-6
7.2.4 Channel A Transmitter Serial Data Output (TxDA) ......................... 7-6
7.2.5 Channel A Receiver Serial Data Input (RxDA) ............................... 7-6
7.2.6 Channel B Transmitter Serial Data Output (TxDB) ......................... 7-6
7.2.7 Channel B Receiver Serial Data Input (RxDB) ............................... 7-6
7.2.8 Channel A Request-To-Send (RTSA ).............................................. 7-6
7.2.9 Channel B Request-To-Send (RTSB ).............................................. 7-7
7.2.10 Channel A Clear-To-Send (CTSA ) ................................................. 7-7
7.2.11 Channel B Clear-To-Send (CTSB ) ................................................. 7-7
7.2.12 Channel A Transmitter Ready (T≈RDYA ) ........................................ 7-7
7.2.13 Channel A Receiver Ready (R≈RDYA) ............................................ 7-7
7.3 Operation ............................................................................................ 7-8
7.3.1 Baud Rate Generator ...................................................................... 7-8
7.3.2 Transmitter and Receiver Operating Modes.................................... 7-8
7.3.2.1 Transmitter................................................................................... 7-10
7.3.2.2 Receiver....................................................................................... 7-11
7.3.2.3 FIFO Stack................................................................................... 7-13
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
xiv MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
7.3.3 Looping Modes................................................................................ 7-14
7.3.3.1 Automatic Echo Mode.................................................................. 7-14
7.3.3.2 Local Loopback Mode.................................................................. 7-14
7.3.3.3 Remote Loopback Mode.............................................................. 7-14
7.3.4 Multidrop Mode................................................................................ 7-15
7.3.5 Bus Operation ................................................................................. 7-17
7.3.5.1 Read Cycles ................................................................................ 7-17
7.3.5.2 Write Cycles................................................................................. 7-17
7.3.5.3 Interrupt Acknowledge Cycles ..................................................... 7-17
7.4 Register Description and Programming .............................................. 7-18
7.4.1 Register Description........................................................................ 7-18
7.4.1.1 Auxiliary Control Register (ACR) ................................................. 7-20
7.4.1.2 Clock-Select Register (CSR) ....................................................... 7-20
7.4.1.3 Command Register (CR) ............................................................. 7-22
7.4.1.4 Input Port Change Register (IPCR) ............................................. 7-25
7.4.1.5 Input Port Register (IP) ................................................................ 7-26
7.4.1.6 Interrupt Enable Register (IER) ................................................... 7-27
7.4.1.7 Interrupt Level Register (ILR) ...................................................... 7-28
7.4.1.8 Interrupt Status Register (ISR)..................................................... 7-28
7.4.1.9 Interrupt Vector Register (IVR) .................................................... 7-30
7.4.1.10 Module Configuration Register (MCR)......................................... 7-31
7.4.1.11 Mode Register 1 (MR1) ............................................................... 7-33
7.4.1.12 Mode Register 2 (MR2) ............................................................... 7-35
7.4.1.13 Output Port Data Register (OP)................................................... 7-37
7.4.1.14 Outport Port Control Register (OPCR)......................................... 7-38
7.4.1.15 Receiver Buffer (RB).................................................................... 7-39
7.4.1.16 Status Register (SR).................................................................... 7-39
7.4.1.17 Transmitter Buffer (TB) ................................................................ 7-41
7.4.2 Programming ................................................................................... 7-42
7.4.2.1 Serial Module Initialization. .......................................................... 7-42
7.4.2.2 I/O Driver Example....................................................................... 7-42
7.4.2.3 Interrupt Handling ........................................................................ 7-42
7.5 Serial Module Initialization Sequence ................................................ 7-48
7.5.1 Serial Module Configuration............................................................ 7-48
7.5.2 Serial Module Example Configuration Code ................................... 7-50
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL xv
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
Section 8
Timer Module
8.1 Module Overview ................................................................................. 8-1
8.1.1 Timer and Counter Functions ........................................................... 8-2
8.1.1.1 Prescaler and Counter.................................................................. 8-2
8.1.1.2 Time-Out Detection....................................................................... 8-2
8.1.1.3 Comparator ................................................................................... 8-2
8.1.1.4 Clock Selection Logic.................................................................... 8-3
8.1.2 Internal Control Logic ....................................................................... 8-3
8.1.3 Interrupt Control Logic ...................................................................... 8-4
8.2 Timer Modules Signal Definitions......................................................... 8-4
8.2.1 Timer Input (TIN) .............................................................................. 8-5
8.2.2 Timer Gate (TGATE) ........................................................................ 8-5
8.2.3 Timer Output (TOUT) ....................................................................... 8-5
8.3 Operating Modes.................................................................................. 8-5
8.3.1 Input Capture/Output Compare ........................................................ 8-5
8.3.2 Square-Wave Generator .................................................................. 8-7
8.3.3 Variable Duty-Cycle Square-Wave Generator.................................. 8-8
8.3.4 Variable-Width Single-Shot Pulse Generator ................................... 8-10
8.3.5 Pulse-Width Measurement ............................................................... 8-11
8.3.6 Period Measurement ........................................................................ 8-12
8.3.7 Event Count...................................................................................... 8-13
8.3.8 Timer Bypass.................................................................................... 8-15
8.3.9 Bus Operation................................................................................... 8-16
8.3.9.1 Read Cycles.................................................................................. 8-16
8.3.9.2 Write Cycles.................................................................................. 8-16
8.3.9.3 Interrupt Acknowledge Cycles ...................................................... 8-16
8.4 Register Description............................................................................. 8-16
8.4.1 Module Configuration Register (MCR) ............................................. 8-17
8.4.2 Interrupt Register (IR) ....................................................................... 8-18
8.4.3 Control Register (CR) ....................................................................... 8-19
8.4.4 Status Register (SR)......................................................................... 8-22
8.4.5 Counter Register (CNTR) ................................................................. 8-24
8.4.6 Preload 1 Register (PREL1) ............................................................. 8-24
8.4.7 Preload 2 Register (PREL2) ............................................................. 8-25
8.4.8 Compare Register (COM)................................................................. 8-25
8.5 Timer Module Initialization Sequence .................................................. 8-26
8.5.1 Timer Module Configuration ............................................................. 8-26
8.5.2 Timer Module Example Configuration Code..................................... 8-27
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
xvi MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
Section 9
Queued Serial Peripheral Module
9.1 Block Diagram..................................................................................... 9-1
9.2 Memory Map ....................................................................................... 9-2
9.3 QSPM Pins ......................................................................................... 9-3
9.4 Registers............................................................................................. 9-4
9.4.1 Overall QSPM Configuration Summary........................................... 9-7
9.4.2 QSPM Global Registers .................................................................. 9-8
9.4.2.1 QSPM Configuration Register (QMCR) ....................................... 9-8
9.4.2.2 QSPM Test Register (QTEST)..................................................... 9-10
9.4.2.3 QSPM Interrupt Level Register (QILR) ........................................ 9-10
9.4.2.4 QSPM Interrupt Vector Register (QIVR)...................................... 9-11
9.4.3 QSPM Pin Control Registers........................................................... 9-11
9.4.3.1 QSPM Port Data Register (QPDR).............................................. 9-12
9.4.3.2 QSPM Pin Assignment Register (QPAR) .................................... 9-12
9.4.3.3 QSPM Data Direction Register (QDDR) ...................................... 9-13
9.5 QSPI Submodule ................................................................................ 9-13
9.5.1 Features .......................................................................................... 9-14
9.5.1.1 Programmable Queue ................................................................. 9-14
9.5.1.2 Programmable Peripheral Chip Selects....................................... 9-14
9.5.1.3 Wraparound Transfer Mode......................................................... 9-14
9.5.1.4 Programmable Transfer Length................................................... 9-15
9.5.1.5 Programmable Transfer Delay..................................................... 9-15
9.5.1.6 Programmable Queue Pointer ..................................................... 9-15
9.5.1.7 Continuous Transfer Mode .......................................................... 9-15
9.5.2 Block Diagram ................................................................................. 9-16
9.5.3 QSPI Pins........................................................................................ 9-16
9.5.4 Programmer's Model and Registers................................................ 9-17
9.5.4.1 QSPI Control Register 0 (SPCR0)............................................... 9-18
9.5.4.2 QSPI Control Register 1 (SPCR1)............................................... 9-20
9.5.4.3 QSPI Control Register 2 (SPCR2)............................................... 9-22
9.5.4.4 QSPI Control Register 3 (SPCR3)............................................... 9-24
9.5.4.5 QSPI Status Register (SPSR) ..................................................... 9-25
9.5.4.6 QSPI RAM ................................................................................... 9-26
9.5.4.6.1 Receive Data RAM (REC.RAM)............................................... 9-27
9.5.4.6.2 Transmit Data RAM (TRAN.RAM)............................................ 9-27
9.5.4.6.3 Command RAM (COMD.RAM) ................................................ 9-27
9.5.5 Operating Modes and Flowcharts ................................................... 9-30
9.5.5.1 Master Mode................................................................................ 9-37
9.5.5.1.1 Master Mode Operation ........................................................... 9-37
9.5.5.1.2 Master Wraparound Mode........................................................ 9-38
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68341 USER'S MANUAL xvii
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
9.5.5.2 Slave Mode .................................................................................. 9-39
9.5.5.2.1 Description of Slave Operation................................................. 9-39
9.5.5.2.2 Slave Wraparound Mode.......................................................... 9-41
Section 10
IEEE 1149.1 Test Access Port
10.1 Overview ............................................................................................. 10-1
10.2 Tap Controller ..................................................................................... 10-2
10.3 Boundary Scan Register ..................................................................... 10-3
10.4 Instruction Register ............................................................................. 10-10
10.4.1 EXTEST (000) ................................................................................. 10-11
10.4.2 Sample/Preload (001)...................................................................... 10-11
10.4.3 BYPASS (X1X, 101) ........................................................................ 10-11
10.4.4 HI-Z (100) ........................................................................................ 10-12
10.5 MC68341 Restrictions......................................................................... 10-12
10.6 Non-IEEE 1149.1 Operation................................................................ 10-13
Section 11
Applications
11.1 Minimum System Configuration .......................................................... 11-1
11.1.1 Processor Clock Circuitry ................................................................ 11-1
11.1.2 Reset Circuitry ................................................................................. 11-3
11.1.3 SRAM Interface ............................................................................... 11-3
11.1.4 ROM Interface ................................................................................. 11-4
11.1.5 Serial Interface ................................................................................ 11-4
11.2 Memory Interface Information ............................................................. 11-5
11.2.1 Using an 8-Bit Boot ROM ................................................................ 11-5
11.2.2 Access Time Calculations................................................................ 11-6
11.2.3 Calculating Frequency-Adjusted Output.......................................... 11-7
11.2.4 Interfacing an 8-Bit Device to 16-Bit Memory Using
Single-Address DMA Mode.......................................................... 11-10
11.3 Power Consumption Considerations................................................... 11-10
11.4 MC68341V (3.3 V)............................................................................... 11-11
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
10/31/95 SECTION 1: OVERVIEW UM Rev.1.0
xviii MC68341 USER’S MANUAL MOTOROLA
TABLE OF CONTENTS (Concluded)
Paragraph Page
Number Title Number
Section 12
Electrical Characteristics
12.1 Maximum Ratings ............................................................................... 12-1
12.2 Thermal Characteristics ...................................................................... 12-1
12.3 Power Considerations......................................................................... 12-2
12.4 AC Electrical Specification Definitions ................................................ 12-2
12.5 DC Electrical Specifications ................................................................ 12-5
12.6 AC Electrical Specifications Control Timing........................................ 12-6
12.7 AC Timing Specifications .................................................................... 12-7
12.8 DMA Module AC Electrical Specifications .......................................... 12-22
12.9 Timer Module Electrical Specifications ............................................... 12-24
12.10 Serial Module Electrical Specifications ............................................... 12-26
12.11 QSPM Electrical Specifications........................................................... 12-29
12.12 IEEE 1149.1 Electrical Specifications ................................................. 12-32
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514

NXP MC68341_ Reference guide

Category
Processors
Type
Reference guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI