Motorola M68CPU32BUG Manuel d'utilisateur Page 1

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Téléviseurs et moniteurs Motorola M68CPU32BUG. Motorola M68CPU32BUG User`s manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 56
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
MOTOROLA
SEMICONDUCTOR
DEVICE TUTORIAL
Order this document by
MC68332TUT/D
MOTOROLA INC, 1995
An Introduction to the MC68332
By Sharon Darley, Mark Maiolani, and Charles Melear
1 INTRODUCTION
Use of microcontrollers (MCUs) presents new challenges as clock speeds increase and bus structures be-
come more complex. In particular, designing a system with Motorola’s 32-bit MC68332 can be challenging
for those used to the 8-bit world.
The MC68332 is a member of the Motorola modular microcontroller family, a series of 16-bit and 32-bit de-
vices constructed from standard on-chip peripheral modules that communicate by means of a standard in-
termodule bus. The MC68332 is a sophisticated single-chip control system that incorporates a 32-bit CPU
module (CPU32), a system integration module (SIM), a time processor unit (TPU), a queued serial module
(QSM), and a 2 Kbyte standby RAM (SRAM) with TPU emulation capability. The MCU thus provides a de-
signer with many options, ranging from reset configuration to interrupt generation, that must be considered
during the design phase.
This tutorial is intended to assist development and reduce debug time for first-time designers of MC68332
systems. It covers four major topics: designing the hardware, establishing communication, initializing the
MCU, and troubleshooting. Each topic is discussed in a separate section that includes practical examples.
The tutorial provides a “hands-on” supplement to the
MC68332 User’s Manual
, which presents a compre-
hensive overview of the MCU. For more information on device operation, electrical characteristics, registers,
and control bit definition, refer to the appropriate sections of the manual. For more detailed information, refer
to the reference manual for each of the on-chip peripheral modules. See
6 SOURCES OF INFORMATION
for a complete list of MC68332 technical literature.
The software examples included in the tutorial, and a sample system schematic, are available through Free-
ware Data Systems. The files are in the mcu332 directory in an archived file called 332init.arc. The PKXARC
utility is used to de-archive these files. PKXARC itself is contained in a self-expanding file entitled
PKX35A35.exe, located in the Freeware IBM directory. See
6.2 Freeware Data Systems
for a phone num-
ber for modem access and addresses for internet access.
Vue de la page 0
1 2 3 4 5 6 ... 55 56

Résumé du contenu

Page 1 - SEMICONDUCTOR

MOTOROLA SEMICONDUCTOR DEVICE TUTORIAL Order this document byMC68332TUT/D  MOTOROLA INC, 1995 An Introduction to the MC68332 By Sharon Darley, Mar

Page 2 - TABLE OF CONTENTS

MOTOROLA MC68332TUT/D10 Figure 5 DC Model of Oscillator Circuit2.5.2.3 Layout and Strange Behavior Oscillator layout is just as important as a good

Page 3 - 2 DESIGNING THE HARDWARE

MC68332TUT/D MOTOROLA112.5.2.4 XFC and VDDSYNNoise on the XFC, VDDSYN, and VSSI pins causes frequency shifts in CLKOUT. The XFC filter capacitor andt

Page 4 - 332TUT DAT RESET HOLD

MOTOROLA MC68332TUT/D12or, on the other hand, a working oscillator could be moved into a region of no oscillation at all. Therefore, itis important t

Page 5

MC68332TUT/D MOTOROLA13Figure 8 Typical MC68332 Reset CircuitWhen the internal PLL is used to generate the internal system clock, the RESET pin works

Page 6

MOTOROLA MC68332TUT/D142.7 Power SupplyAlways connect all power and ground pins to power sources. Since internal power buses only serve about8 - 10 p

Page 7

MC68332TUT/D MOTOROLA15Figure 10 Using LVI Devices with Multiple Power Supplies2.8 Designing for Electromagnetic CompatibilityBecause of the fast clo

Page 8 - 332TUT XTAL CONN 2

MOTOROLA MC68332TUT/D16Figure 11 Pinout of MC68332 132 Pin PackageTo control power supply/ground noise, use dedicated ground and supply planes. When

Page 9

MC68332TUT/D MOTOROLA17Another way to control power supply noise created by the MCU is to put a small inductor in series with thepower supply lines f

Page 10 - EXTAL GND XTAL

MOTOROLA MC68332TUT/D18• Use ferrite chokes when troubleshooting. Placing a choke around a signal line and the return conduc-tor carrying a different

Page 11 - MC68332 User’s Manual

MC68332TUT/D MOTOROLA19Chip-select access time (MCU read cycle) = (2 + WS) X tCYC(min) - tCLSA(max) - tDICL(min)Chip-select access time (MCU write cy

Page 12

MOTOROLA MC68332TUT/D2 1 INTRODUCTION ...12

Page 13 - 332TUT RESET LEVEL TIM

MOTOROLA MC68332TUT/D202.9.2 Using Chip-Select Signals to Enable Boot MemoryThe MCU CSBOOT chip-select circuit is always enabled from reset. Because

Page 14

MC68332TUT/D MOTOROLA212.9.3.1 How to Construct Word Memory from Two Byte MemoriesFor chip-select signals other than CSBOOT, forming word memory that

Page 15 - 332TUT DUAL RESET CONN

MOTOROLA MC68332TUT/D22Figure 15 Configuring 16-Bit Memory with 8-Bit RAMs — Separate Read and Write Enables2.10 Using External InterruptsThe MCU has

Page 16

MC68332TUT/D MOTOROLA232.10.3 Interrupt VectorsVectors are 32-bit addresses that point to the interrupt service routines (and other exception handler

Page 17 - 332TUT VDD LAYOUT

MOTOROLA MC68332TUT/D242.10.4.2 AutovectorsAutovectors can only be used with external interrupt service requests. When an external device cannot sup-

Page 18

MC68332TUT/D MOTOROLA25It is very important to make certain that the IRQ7 signal be de-asserted before the level seven interrupt ser-vice routine end

Page 19

MOTOROLA MC68332TUT/D263 ESTABLISHING COMMUNICATION3.1 Communicating with the Target BoardAfter a target board has been built, it is generally necess

Page 20 - 332TUT EXT MEM CONN 1

MC68332TUT/D MOTOROLA27Only ten pins on the board, a special cable, and software are needed to debug. The M68ICD32 cable hasa 10-pin female connector

Page 21

MOTOROLA MC68332TUT/D28The debugger should now work reliably. That is, programs can be downloaded into the RAM and executed.Alternatively, write the

Page 22 - SIM Reference Manual

MC68332TUT/D MOTOROLA29Press the page up key on the PC keyboard. A small window will open and ask for the character protocol.Select ASCII. Then, when

Page 23 - 332TUT PERI CONN

MC68332TUT/D MOTOROLA3 2 DESIGNING THE HARDWARE 2.1 Using Data Bus Pins to Configure the MCU The logic level of the data bus pins during reset deter

Page 24

MOTOROLA MC68332TUT/D30Figure 19 8-Pin BDM Connector3.2.2 The M68EVS332The M68332 EVS is exactly the same as the M68EVK332, but has an additional dau

Page 25

MC68332TUT/D MOTOROLA314 SYSTEM INITIALIZATION4.1 Configuring the Central Processing UnitInitial stack pointer and program counter values are fetched

Page 26 - 3 ESTABLISHING COMMUNICATION

MOTOROLA MC68332TUT/D324.1.3.1 Initializing the Reset VectorImmediately after the release of RESET, an internal state machine fetches the word values

Page 27

MC68332TUT/D MOTOROLA33org $0008 ;put the following code in memory after the reset vector.DW $0000 ;The address of label INT is stored at location $0

Page 28

MOTOROLA MC68332TUT/D342. If using the software watchdog, periodic interrupt timer, or the bus monitor, select action taken whenFREEZE is asserted. T

Page 29 - M68332BCC Us

MC68332TUT/D MOTOROLA354.2.5 Periodic Interrupt Control Register (PICR)1. Determine the appropriate PIT vector number and interrupt priority.2. Write

Page 30 - Application Snapshot

MOTOROLA MC68332TUT/D36states. If a chip-select circuit is used to provide an autovector, fast termination is automaticallyselected, and the DSACK fi

Page 31 - 4 SYSTEM INITIALIZATION

MC68332TUT/D MOTOROLA37 MOVE.B #$7F,(SYNCR).L ;set system clock to 16.78 MHz CLR.B (SYPCR).L ;disable sof

Page 32

MOTOROLA MC68332TUT/D384.4 Configuring the Queued Serial ModuleThe queued serial module (QSM) is divided into two submodules: the serial communicatio

Page 33 - CPU32 Reference Man

MC68332TUT/D MOTOROLA394.4.2 Configuring the QSPIThe QSPI uses a synchronous serial bus to communicate with external peripherals and other MCUs. TheQ

Page 34

MOTOROLA MC68332TUT/D474HC244s are enabled. Otherwise, if an external RESET signal was applied during a write to external mem-ory and was not condit

Page 35

MOTOROLA MC68332TUT/D40 ;state of SCK as low, capture data on the ;leading edge o

Page 36

MC68332TUT/D MOTOROLA414.5 Configuring the Time Processor UnitThe time processor unit (TPU) is an intelligent, semi-autonomous timer that has16 indep

Page 37 - MC68332 User’s Manual

MOTOROLA MC68332TUT/D424.5.1.2 Channel Function Select RegistersChannel function select registers (CFSR[1:3]) contain the function numbers assigned t

Page 38 - QSM Reference Manual

MC68332TUT/D MOTOROLA434.5.2 Parameter RAM RegistersEach channel has a dedicated set of word-long registers (called parameters) in the parameter RAM.

Page 39

MOTOROLA MC68332TUT/D444 ∗ $84 + $00 = $210 Thus, the starting address of the interrupt routine must be stored in location $210.2. Store an interrupt

Page 40

MC68332TUT/D MOTOROLA45*** Interrupt Initialization on Channel 4 *** MOVE.W #$0680,(TICR).l ;Interrupt level = 6, base vector =

Page 41 - TPU Reference Manual

MOTOROLA MC68332TUT/D465 TROUBLESHOOTINGBecause of the complexity of the MCU, there are a considerable number of potential ‘fatal flaws’ that cancaus

Page 42

MC68332TUT/D MOTOROLA472. If the code does disable the watchdog, but the device is still resetting every 16 ms, then the code isprobably not being ex

Page 43

MOTOROLA MC68332TUT/D48rupt lines (by writing to the PFPAR register). This problem is likely to be intermittent, as it would onlyoccur if an IRQ7 int

Page 44

MC68332TUT/D MOTOROLA49A. The CPU recognizes the occurrence of a valid interrupt request and begins the IACK cycle. If noneof the modules enter arbit

Page 45 - MC68332TUT/D MOTOROLA

MC68332TUT/D MOTOROLA5Using 8-bit memory simplifies the design and reduces cost, but with a significant performance penalty. Thispenalty is not fixe

Page 46 - 5 TROUBLESHOOTING

MOTOROLA MC68332TUT/D50B. Compare the base address register values to see if any overlap. In addition to checking the actualvalues in the registers,

Page 47

MC68332TUT/D MOTOROLA516 SOURCES OF INFORMATION6.1 Technical LiteratureAll Motorola literature can be ordered by mail from Motorola Literature Distri

Page 48

MOTOROLA MC68332TUT/D52TPUPN13/DStepper Motor TPU Function (SM)TPUPN14/DPosition Synchronized Pulse Generator TPU Function (PSP)TPUPN15A/DPeriod Meas

Page 49

MC68332TUT/D MOTOROLA53

Page 50

MOTOROLA MC68332TUT/D54

Page 51 - 6 SOURCES OF INFORMATION

MC68332TUT/D MOTOROLA55

Page 52

Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee re

Page 53

MOTOROLA MC68332TUT/D6Remember that the level 7 interrupt is non-maskable — when configured as an interrupt line, IRQ7 isalways enabled. The only wa

Page 54 - MOTOROLA MC68332TUT/D

MC68332TUT/D MOTOROLA7 2.5 Clock Circuitry The designer must decide whether to use the internal frequency synthesizer circuit or an external clock t

Page 55

MOTOROLA MC68332TUT/D8 NOTE Some older versions of the MC68332 require different components. These masksets are 1C17P, 1C32J, OC53T, and 1C53T. See

Page 56 - How to reach us:

MC68332TUT/D MOTOROLA9greater attenuation at the first harmonic. When figuring the reactance of the entire circuit, it is most importantto use the t

Commentaires sur ces manuels

Pas de commentaire