MCF5282 ColdFire Microcontroller User’s Manual
HOW to Reach US USA/EUROPE/LOCATIONS not Listed
IND
IND
Contents
Timing Assumptions Move Instruction Execution Times
Chapter Enhanced Multiply-Accumulate Unit Emac
ColdFire Flash Module CFM
Chapter Cache
Chapter Static RAM Sram
Chapter System Control Module SCM
Chapter Power Management
Interrupt Controller Modules
Clock Module
Chapter External Interface Module EIM
Signal Descriptions
Chapter Edge Port Module Eport
Chapter Chip Select Module
Chapter DMA Controller Module
Chapter Synchronous Dram Controller Module
Chapter Fast Ethernet Controller FEC
Chapter General Purpose Timer Modules Gpta and Gptb
Chapter Watchdog Timer Module
Chapter Programmable Interrupt Timer Modules PIT0-PIT3
20.3
Chapter Queued Serial Peripheral Interface Qspi Module
Chapter DMA Timers DTIM0-DTIM3
Chapter I2C Interface
Chapter Uart Modules
Chapter FlexCAN
Chapter Queued Analog-to-Digital Converter Qadc
Chapter General Purpose I/O Module
27.4.7
Chapter Debug Support
Reset Controller Module
Chapter Ieee 1149.1 Test Access Port Jtag
Chapter Chip Configuration Module CCM
Paragraph Title Number 31.6.2 Nonscan Chain Operation 31-12
Electrical Characteristics
Chapter Mechanical Data
Appendix a Register Memory Map
Title Number
Illustrations
10-7
13-4
17-13
20-20
23-10
25-31
Qadc Status Register 0 QASR0 27-22 27-12
27-53
29-39WDMREG BDM Command Format 29-36 29-40
Tables
Charge Pump Current and MFD in Normal Mode Operation
10-13
15-18
17-30
20-23
25-21
27-13
29-43
33-21 Timer Module AC Timing Specifications 33-24 33-22
Organization
Audience
Organization
Xlv
ColdFire Documentation
Suggested Reading
General Information
Conventions
Meaning
Acronyms and Abbreviations
Table i. Acronyms and Abbreviated Terms
Opcode Wildcard
Terminology Conventions
Table ii. Notational Conventions
Operand Syntax
PST
ACC
CCR
Port Name
MSW
LSW
SST
Revision History
Table iii provides a revision history for this document
Table iii. Revision History
Frsr
Revision Date Substantive Changes
Number Release
Liv
RAMBAR.’
10.3.6/10-11
Substantive Changes Section/Page
Revision Number
Chapter Overview
MCF5282 Key Features
MCF5282 Key Features
MCF5282 Key Features
MCF5282 Key Features
MCF5282 Key Features
MCF5282 Key Features
MCF5282 Block Diagram
Cache
Cache Configuration
Configuration Tag Address Data Array Address
Version 2 ColdFire Core
Debug Module
Sram
Flash
External Interface Module EIM
System Control Module
Interrupt Controllers INTC0/INTC1
Power Management
Chip Select
General Input/Output Ports
Uart Modules
Test Access Port
Periodic Interrupt Timers PIT0-PIT3
DMA Timers DTIM0-DTIM3
General-Purpose Timers GPTA/GPTB
DMA Controller
Software Watchdog Timer
Phase Locked Loop PLL
Reset
MCF5282-Specific Features
MCF5282-Specific Features
Dsoc
Processor Pipelines
IAG
Fifo
User Programming Model
Processor Register Description
Program Counter PC
Data Registers D0-D7
Address Registers A0-A6
Stack Pointer A7
Bits Name Description
Condition Code Register CCR
Supervisor Programming Model
Emac Programming Model
Bits
Status Register SR
System Byte Condition Code Register CCR
Supervisor/User Stack Pointers A7 and OTHERA7
Cache Control Register Cacr
Access Control Registers ACR0, ACR1
Programming Model
Vector Base Register VBR
Local Memory Registers
Additions to the Instruction Set Architecture
Name CPU Space Rc Written with Register Name
Instruction Description
Exception Processing Overview
ISA Revision A+ New Instructions
Vector Stacked Program Assignment NumberS Offset Hex Counter
Exception Vector Assignments
0x100-0x3FC Next
Exception Stack Frame Definition
Format Field Encodings
FS30 Definition
Access Error Exception
Fault Status Encodings
Processor Exceptions
Privilege Violation
Address Error Exception
Illegal Instruction Exception
Divide-By-Zero
Debug Interrupt
Unimplemented Line-A Opcode
Unimplemented Line-F Opcode
Trap Instruction Exception
RTE and Format Error Exception
Fault-on-Fault Halt
Reset Exception
MAC DIV Emac FPU MMU ISA Debug
VER REV
MAC
D0 Hardware Configuration Info Field Description
VER
ICA
ICA Icsiz RAM0SIZ ROM0SIZ
Busw DCA Dcsiz RAM1SIZ ROM1SIZ
32KB RAM
4KB RAM
8KB RAM
16KB RAM
Timing Assumptions
Instruction Execution Timing
Address10 Size Kbus Additional Operations CR/W
Move Instruction Execution Times
10. Misaligned Operand References
Source Destination Ax+ D16,Ax D8,Ax,Xi Xxx.wl
11. Move Byte and Word Execution Times
12. Move Long Execution Times
14. Two Operand Instruction Execution Times
Standard One Operand Instruction Execution Times
Standard Two Operand Instruction Execution Times
13. One Operand Instruction Execution Times
Standard Two Operand Instruction Execution Times
D16,PC D8,PC,Xn*SF
Miscellaneous Instruction Execution Times
15. Miscellaneous Instruction Execution Times
Effective Address Opcode An+ D16,An D8,An,Xn*SF Xxx.wl
Effective Address Opcode An+ D16,An D8,An,X Xxx.wl #xxx
Emac Instruction Execution Times
16. Emac Instruction Execution Times
18. BRA, Bcc Instruction Execution Times
Branch Instruction Execution Times
ColdFire Instruction Set Architecture Enhancements
17. General Branch Instruction Execution Times
Instruction Format
Operation
Assembler Syntax
Attributes
Condition Codes
Byte Reverse Register Byterev
Assembler Syntax BYTEREV.L Dx Attributes
Old Dx310 New Dx310
Find First One in Register
Assembler SyntaxSTRLDSR #data
Store/Load Status Register Strldsr
Supported Starting with ISA A+
Multiply-Accumulate Unit
Chapter Enhanced Multiply-Accumulate Unit Emac
Introduction to the MAC
Multiply-Accumulate Functionality Diagram
Infinite Impulse Response IIR Filter
General Operation
Fractional Alignment
Motorola
1describes Macsr fields
Memory Map/Register Set
MAC Status Register Macsr
Macsr Field Descriptions
Operational Modes
Fractional Operation Mode
Rounding
Summary of S/U, F/I, and R/T Control Bits
Saving and Restoring the Emac Programming Model
MULS/MULU
Following code performs the Emac state restore
Mask Register Mask
MAC.sz Ry,RxSF,eay&,Rw
3summarizes Emac unit instructions
Command Mnemonic Description
Emac Instruction Set Summary
Emac Instruction Execution Times
Accumulator Mac Old Mov New
Data Representation
Mac Mov
Two’s Complement, Signed Fractional Equation
MAC Opcodes
MACSR.V =
Emac Instruction Set Summary
MACSR.Z =
Emac Instruction Set Summary
Motorola
Emac Instruction Set Summary MCF5282 User’s Manual
This chapter describes the MCF5282 cache operation
Cache Features
Cache Physical Organization
Cache Physical Organization
Interaction with Other Modules
Cache Operation
Cache Coherency and Invalidation
Memory Reference Attributes
CLNF10 Longword Address Bits
Cache Miss Fetch Algorithm/Line Fills
Initial Fetch Offset vs. Clnf Bits
CACR31 CACR10 Type of Instruction Fetch Description
Instruction Cache Operation as Defined by CACR31
Cache Control Register Cacr
Cache Programming Model
Cache Registers Memory Map
Cache Registers
Cenb
Cenb CPD
Cinv Didi Disd Invi Invd
Ceib DCM Dbwe DWP Eusp Clnf
Ceib
Cache Invalidate All as Defined by CACR23, 22, 21
Cache Configuration as Defined by CACR31, 23
CACR31 CACR23 CACR22 Configuration Description
CACR23 CACR22 CACR21 CACR20 Configuration Operation
Bufw
Access Control Registers ACR0, ACR1
External Fetch Size Based on Miss Address and Clnf
Between the processors local bus and the external bus
BWE
Sram Programming Model
Sram Features
Sram Operation
PRI12 Upper Bank Lower Bank Priority
Sram Base Address Register Rambar
PRI1 PRI2 SPV
PRI1, PRI2
Sram Base Address Register
Sram Initialization
Following loop initializes the entire Sram to zero
Power Management
Typical Rambar Setting Examples
Sram Initialization Code
Sram Programming Model
Sram Programming Model MCF5282 User’s Manual
Chapter ColdFire Flash Module CFM
Features
Block Diagram
CFM Block Diagram
CFM Array Memory Map
Memory Map
Address Offset from array base Size Description
CFM Configuration Field
CFM Configuration Field
Flash Base Address Register Flashbar
Memory Map
BA30 BA29
Flash registers are described in this subsection
CFM Configuration Register Cfmcr
CFM Registers
Register Descriptions
Divld PRDIV8
CFM Clock Divider Register Cfmclkd
Cfmcr Field Descriptions
Bits Name Description
Cfmclkd Field Descriptions
CFM Security Register Cfmsec
SEC150 Description
Cfmsec Field Descriptions
Prot
CFM Protection Register Cfmprot
Cfmprot Field Descriptions
Sector
CFM Supervisor Access Register Cfmsacc
PROTECT31
PROTECT2
Data
CFM Data Access Register Cfmdacc
Cfmsacc Field Descriptions
Cbeif Ccif Pviol Accerr Blank
CFM User Status Register Cfmustat
Only one Cfmustat bit should be cleared at a time
10. Cfmustat Field Descriptions
Command Name Description
CFM Command Register Cfmcmd
12. Cfmcmd User Mode Commands
Program and Erase Operations
CFM Operation
Read Operations
Write Operations
Consider the following example for fSYS = 66 MHz
Setting the Cfmclkd Register
Thus the Flash state machine clock will be
Program, Erase, and Verify Sequences
Meaning Description
Flash Valid Commands
13summarizes the valid Flash user commands
13. Flash User Commands
13. Example Program Algorithm
Flash User Mode Illegal Operations
Stop Mode
Flash Security Operation
Master Mode
Erase Verify Check
Reset
Back Door Access
Cbeif Cbeie
Interrupt Source Interrupt Flag Local Enable
Interrupts
14. CFM Interrupt Sources
Interrupts MCF5282 User’s Manual
Programming Model
Memory Map and Registers
Following subsection describes the PMM registers
Low-Power Interrupt Control Register Lpicr
Chip Configuration Module Memory Map
Memory Map
Enbstop
Lpicr Field Description
Lpmd Stpmd Lvdse
Low-Power Control Register Lpcr
Xlpmipl Settings
Xlpmipl Interrupts Level Needed to Exit Low-Power Mode
Functional Description
Low-Power Modes
Low-Power Modes
PLL/CLKOUT Stop Mode Operation
Stop Mode
Run Mode
Wait Mode
Doze Mode
ColdFire Core
Peripheral Behavior in Low-Power Modes
Static Random-Access Memory Sram
Peripheral Shut Down
Uart Modules UART0, UART1, and UART2
Sdram Controller Sdramc
Chip Select Module
DMA Controller DMAC0-DMA3
Queued Serial Peripheral Interface Qspi
DMA Timers DMAT0-DMAT3
2.9 I2C Module
2.14 I/O Ports
Reset Controller
Interrupt Controllers INTC0, INTC1
Fast Ethernet Controller FEC
Clock Module
Chip Configuration Module
Queued Analog-to-Digital Converter Qadc
Watchdog Timer
Programmable Interrupt Timers PIT0, PIT1, PIT2 and PIT3
Edge Port
FlexCAN
General Purpose Timers Gpta and Gptb
Functional Description
ColdFire Flash Module
Jtag
Summary of Peripheral State During Low-Power Modes
CPU and Peripherals in Low-Power Modes
2.25 BDM
Jtag
Qadc
BDM
Functional Description MCF5282 User’s Manual
Overview
Features
3124 2316 158
Memory Map and Register Definition
SCM Register Map
Cache
Register Descriptions
Internal Peripheral System Base Address Register Ipsbar
Ipsbar Field Description
Memory Base Address Register Rambar
BDE
Memory Base Address Register Rambar Rambar Field Description
Crsr Field Descriptions
Core Reset Status Register Crsr
Core Watchdog Control Register Cwcr
Register Descriptions
CWT CWT Time-Out Period
Core Watchdog Timer Delay
Internal Bus Arbitration
Core Watchdog Service Register Cwsr
FEC Sdramc
SRAM1 Mpark Rambar CPU DMA EIM
Marb
Arbitration Algorithms
Round-Robin Mode
Overview
M2PEN BCR24BIT M3PRTY M2PRTY M0PRTY M1PRTY
Fixed Mode
Fixed Timeout Prklast Lckouttime
Bus Master Park Register Mpark
Mpark Field Description
Features
System Access Control Unit Sacu
PACR1 PACR2 PACR3
Memory Map/Register Definition
Sacu Register Memory Map
3128 2724 2320 1916 1512 118
PACR6
Peripheral Access Control Registers Pacr 0-PACR8
Master Privilege Register MPR
Ipsbar Offset Name Modules Controlled
12. Peripheral Access Control Registers PACRs
Bits Supervisor Mode User Mode
DTIM2 DTIM3
UART2
Qspi
DTIM0 DTIM1
Gpacr Field Descriptions
13. Grouped PeripheralAccess Control Register
14. Gpacr Accessctrl Bit Encodings
EPORT, WDOG, PIT0-PIT3, QADC, GPTA, Gptb
15. Gpacr Address Space
Register Space Protected Modules Protected Ipsbar Offset
GPACR0
Modes of Operation
Normal PLL Mode
Clock Module Operation in Low-power Modes
Low-power Mode Operation
2 11 PLL Mode
External Clock Mode
Clock Module Block Diagram
Block Diagram
Name Function
Signal Descriptions
Signal Properties
Extal
Memory Map and Registers
Locen Disclk Fwkup STPMD1 STPMD0
Register Descriptions
Synthesizer Control Register Syncr
Lolre MFD2 MFD1 MFD0 Locre
RFD
MFD
MFD20
Pllmode
Synthesizer Status Register Synsr
Stpmd
OSC
Locks
Synsr Field Descriptions
System Clock Modes
Clock Mode
Functional Description
System Clock Modes
Clock Out and Clock In Relationships
Clock Operation During Reset
System Clock Mode PLL Options
System Clock Generation
PLL Operation
Phase and Frequency Detector PFD
Multiplication Factor Divider MFD
Charge Pump Current and MFD in Normal Mode Operation
Charge Pump/Loop Filter
Voltage Control Output VCO
PLL Lock Detection
PLL Loss of Lock Conditions
PLL Loss of Lock Reset
Loss of Clock Summary
Loss of Clock Reset
Loss of Clock Detection
Alternate Clock Selection
10. Stop Mode Operation Sheet 1
Loss of Clock in Stop Mode
Stop
10. Stop Mode Operation Sheet 2
Expected PLL Action
‘LC NRM ‘LK
10. Stop Mode Operation Sheet 3
NRM ‘LC ‘LK
PLL
10. Stop Mode Operation Sheet 4
Modes
10. Stop Mode Operation Sheet 5
Lose reference
Clock
Functional Description MCF5282 User’s Manual
10.1 68K/ColdFire Interrupt Architecture Overview
Chapter Interrupt Controller Modules
68K/ColdFire Interrupt Architecture Overview
Interrupt Priority Within a Level
Interrupt Controller Theory of Operation
Interrupt Recognition
Interrupt Prioritization
Interrupt Vector Determination
Interrupt Controller Number Base Address
Memory Map
Interrupt Controller Base Addresses
Interrupt Controller Memory Map
Interrupt Pending Registers IPRHn, IPRLn
INT
Maskall
Interrupt Mask Register IMRHn, IMRLn
Intmask
Intfrc
Interrupt Force Registers INTFRCHn, INTFRCLn
IMRLn Field Descriptions
IRQ
Interrupt Request Level Register IRLRn
Level PRI
Interrupt Acknowledge Level and Priority Register IACKLPRn
Interrupt Control Register ICRnx, x = 1, 2
11. IACKLPRn Field Descriptions
13. Interrupt Source Assignment for INTC0
Interrupt Sources
12. ICRnx Field Descriptions
DTIM2 CAP/REF
IIF
DTIM0 CAP/REF
DTIM1 CAP/REF
PIT2 PIF
Gptb TOF
PIT0 PIF
PIT1 PIF
14. Interrupt Source Assignment for INTC1
Software and Level n Iack Registers SWIACKR, L1IACK-L7IACK
Vector
Prioritization Between Interrupt Controllers
Low-Power Wakeup Operation
10-18
Ipbus
Low-Power Mode Operation
Introduction
Interrupt/General-Purpose I/O Pin Descriptions
Edge Port Module Operation in Low-power Modes
Low-power Mode Eport Operation Mode Exit
Edge Port Module Memory Map
Bits Access
Registers
EPPA5 EPPA4 EPPA3 EPPA2 EPPA1
Eport Pin Assignment Register Eppar
Eport Data Direction Register Epddr
EPPA7
Epdd Field Descriptions
Edge Port Interrupt Enable Register Epier
Edge Port Data Register Epdr
Epdr Field Descriptions
Edge Port Pin Data Register Eppdr
Edge Port Flag Register Epfr
EPF7-EPF1
Epfr Field Descriptions
11-8
Signal Description
Chip Select Module Signals
1lists signals used by the chip select module
Chip Select Module Signals
D3124 D2316 D158 D70
Byte Enables/Byte Write Enable Signal Settings
Transfer Size Port Size
General Chip Select Operation
Chip Select Operation
BS2 BS1 BS0
External Boot Chip Select Operation
Accesses by Matches in CSARs and DACRs
12.3.1.1 8-, 16-, and 32-Bit Port Sizing
Chip Select Registers
D1918 External Boot Chip Select Configuration
D1918 Boot Device/Data Port Size
Chip Select Registers
6describes Csarba
Chip Select Module Registers
Chip Select Address Registers CSAR0-CSAR6
CSARs, -2,specify the chip select base addresses
Csmr n Field Descriptions
Chip Select Mask Registers CSMR0-CSMR6
7describes Csmr fields
CSARn Field Description
PS1 PS0 BEM Bstr Bstw
Chip Select Control Registers CSCR0-CSCR6
8describes CSCRn fields
SD,UC
No internal TA is asserted. Cycle is terminated externally
CSCRn Field Descriptions
12-10
Signal Name Description Clkout Edge
Bus and Control Signals
ColdFire Bus Signal Summary
TIP
Bus Characteristics
Data Transfer Operation
Bus Cycle Execution
Chip-Select Module Output Timing Diagram
Accesses by Matches in CSCRs and DACRs
State Cycle
Data Transfer Cycle States
Bus Cycle States
Read Cycle
System
MCF5282
3describes the six states of a basic write cycle
Write cycle timing diagram is shown in Figure
Write Cycle
Read Cycle with Fast Termination
Fast Termination Cycles
Burst Cycles
Back-to-Back Bus Cycles
Line Read Bus Cycles
Allowable Line Access Patterns
A32 Longword Accesses
Line Transfers
13shows timing when internal termination is used
16. Line Write Burst 2-1-1-1, Internal/External Termination
Line Write Bus Cycles
17shows a line burst write with one wait-state insertion
Misaligned Operands
19. Example of a Misaligned Longword Transfer 32-Bit Port
13-16
Chapter Signal Descriptions
MCF5282 Block Diagram with Signal Interfaces
Sdram Controller Signals
MCF5282 Signal Description
Signal Name Abbreviation Function External Memory Interface
External Interrupt Signals
Signal Name Abbreviation Function
Clock and Reset Signals
Chip Configuration Module
Uart Signals
Queued Serial Peripheral Interface Qspi Signals
FlexCAN Signals
2C Signals
Debug Support Signals
General Purpose Timer Signals
DMA Timer Signals
Analog-to-Digital Converter Qadc Signals
Power and Reference Signals
2lists signals in alphabetical order by abbreviated name
Test Signals
Abbreviation Function
MCF5282 Alphabetical Signal Index
Vddpll
TCK
External Memory Interface and Ports
MCF5282 Signals and Pin Numbers Sorted by Function
Chip Configuration/Mode Selection
Secondary
Ethernet
Chip Selects
Sdram Controller
External Interrupts Port
FlexCAN
UARTs
General Purpose Timers
Debug and Jtag Test Port Control
DMA Timers
Queued Analog-to-Digital Converter Qadc
Test
Single-Chip Mode
Power Supplies
Signal Reset Clock and Reset Signals
External Boot Mode
Listing of signals that do not default to a Gpio function
Pin Reset States at Reset Single-Chip Mode
Data Bus D310
14.2 MCF5282 External Signals
External Interface Module EIM Signals
Address Bus A230
Read/Write R/W
Output Enable OE
Transfer Error Acknowledge TEA
Transfer Acknowledge TA
Transfer Size Encoding
Transfer Start TS
Transfer In Progress TIP
Chip Selects CS60
Sdram Controller Signals
Chip Configuration Signals
Clock and Reset Signals
Ethernet Module Signals
External Interrupt Signals
Receive Data Valid Erxdv
Transmit Error Etxer
Collision Ecol
Receive Clock Erxclk
Queued Serial Peripheral Interface Qspi Signals
Uart Module Signals
FlexCAN Signals
14.2.9 I2C Signals
General Purpose Timer Signals
DMA Timer Signals
Analog-to-Digital Converter Signals
Debug Support Signals
Test Clock Tclk
Breakpoint/Test Mode Select BKPT/TMS
Development Serial Input/Test Data DSI/TDI
Development Serial Output/Test Data DSO/TDO
Test Test
Test Signals
Debug Data DDATA30
Processor Status Outputs PST30
Power and Reference Signals
14-34
Definitions
Overview
Scas Sras Scke SDRAMCS10 Dramw
Block Diagram and Major Components
DACR0
DACR1
Sdram Controller Operation
Sdram Commands
Command Definition
Dram controller registers memory map is shown in Table
Dram Controller Signals
2describes the behavior of Dram signals in synchronous mode
Memory Map for Sdramc Registers
DCR Field Descriptions
Dram Control Register DCR
DCR, shown in -2,controls refresh logic
4describes DCR fields
Bit
Dram Address and Control Registers DACR0/DACR1
5describes DACRn fields
DACRn Field Descriptions
15-7
DMRn Field Descriptions
Bit Associated Access Type Access Definition
Dram Controller Mask Registers DMR0/DMR1
6describes DMRn fields
Address Pin Row Address Column Address
General Synchronous Operation Guidelines
Address Multiplexing
Generic Address Multiplexing Scheme
MCF5282
Pins Row Column
Pins
Row Column
15-12
Interfacing Example
Burst Page Mode
Pins MCF5282
Sdram Byte Strobe Connections
Burst Read Sdram Access
Auto-Refresh Operation
Burst Write Sdram Access
Auto-Refresh Operation
Self-Refresh Operation
Self-Refresh Operation
Initialization Sequence
Mode Register Settings
Clkout
25. Sdram Example Specifications
Parameter Specification
Sdram Example
26. Sdram Hardware Connections
Sdram Interface Configuration
DCR Initialization
Dacr Initialization
Casl CBM Imrs
Bits Name Setting Description
DACRs should be programmed as shown in Figure
28. Dacr Initialization Values
29. DMR0 Initialization Values
DMR Initialization
MCF5282 Pins Sdram Pins Mode Register Initialization
Mode Register Initialization
30. Mode Register Initialization
31. Mode Register Mapping to MCF5282 A310
Refresh Sequence
Mode Register Initialization Sequence
Initialization Code
Precharge Sequence
15-25
15-26
Chapter DMA Controller Module
Channel 0 Channel 1 Channel 2 Channel
DMA Module Features
DMA Request Control Dmareqc
DMA
DMA Transfer Overview
Memory Map for DMA Controller Module Registers
DMA Controller Module Programming Model
DAR
Source Address Registers SAR0-SAR3
Destination Address Registers DAR0-DAR3
SAR
BCR
Byte Count Registers BCR0-BCR3
BWC Sinc Ssize Dinc Dsize Start
DMA Control Registers DCR0-DCR3
3describes DCRn fields
DCRn Field Descriptions
Encoding BCR24BIT =
BWC
DSR n Field Descriptions
DMA Status Registers DSR0-DSR3
4describes DSRn fields
Done
DMA Controller Module Functional Description
Transfer Requests Cycle-Steal and Continuous Modes
BSY
Dual-Address Transfers
Data Transfer Modes
Programming the DMA Controller Module
Channel Initialization and Startup
Channel Prioritization
Auto-Alignment
Data Transfer
Bandwidth Control
Termination
16-16
Chapter Fast Ethernet Controller FEC
Primary operational modes are described in this section
Full and Half Duplex Operation
Interface Options
17.2.2.1 10 Mbps and 100 Mbps MII Interface
Internal Loopback
17.2.2.2 10 Mpbs 7-Wire Interface Operation
Address Recognition Options
PAD
FEC Top-Level Functional Diagram
17-5
Ecretheren De-Assertion Effect on FEC
Initialization Sequence
User Initialization Prior to Asserting Ecretheren
Hardware Controlled Initialization
Microcontroller Initialization
Microcontroller Initialization
User Initialization After Asserting Ecretheren
FEC User Initialization Before Ecretheren
Network Interface Options
MII Mode
Wire Mode Configuration
Signal Description Emac pin
FEC Frame Transmission
FEC Frame Reception
Ethernet Address Recognition
Ethernet Address Recognition-Receive Block Decisions
Ethernet Address Recognitionq-Microcode Decisions
Hash Algorithm
Bit DA Bit Hash Hash Decimal Hex Value
Destination Address to 6-Bit Hash
17-15
Full Duplex Flow Control
Pause Frame Field Specification
Internal and External Loopback
Inter-Packet Gap IPG Time
Collision Handling
Transmission Errors
Ethernet Error-Handling Procedure
Heartbeat
Reception Errors
10. FEC Register Memory Map
Top Level Module Memory Map
Detailed Memory Map Control/Status Registers
Module Memory Map
MIB Block Counters Memory Map
Mnemonic Description Offset
11. MIB Counters Memory Map
Following sections describe each register in detail
Registers
Ethernet Interrupt Event Register EIR
Babr Babt GRA TXF TXB RXF RXB MII Eberr
Hberr Ieeetsqe
17-25
Babr Babt GRA TXF TXB RXF RXB MII
Interrupt Mask Register Eimr
Receive Descriptor Active Register Rdar
Rdesactive
Transmit Descriptor Active Register Tdar
Xdesactive
Etheren Reset
Ethernet Control Register ECR
Data
MII Management Frame Register Mmfr
16. ECR Field Descriptions
Bit Name Description
17. Mmfr Field Descriptions
Dispreamble
MII Speed Control Register Mscr
Dispreamble Miispeed
19. Programming Examples for Mscr
Mibdisable Mibidle
Mibdisable
MIB Control Register Mibc
FCE
Receive Control Register RCR
Maxfl
FCE Bcrej Prom Miimode DRT Loop
GTS
Transmit Control Register TCR
Tfcpause Fden
Tfcpause
Physical Address Low Register Palr
22. TCR Field Descriptions
Type
Physical Address High Register Paur
PADDR1
PADDR2
Opcode
Opcode/Pause Duration Register OPD
Descriptor Individual Upper Address Register Iaur
24. Paur Field Descriptions
IADDR2
Descriptor Individual Lower Address Ialr
IADDR1
Bits Name Descriptions
GADDR1
Descriptor Group Upper Address Gaur
Descriptor Group Lower Address Galr
27. Ialr Field Descriptions
Xwmrk
Fifo Transmit Fifo Watermark Register Tfwr
GADDR2
Rbound
Fifo Receive Bound Register Frbr
30. Tfwr Field Descriptions
Rfstart
Fifo Receive Start Register Frsr
Receive Descriptor Ring Start Erdsr
Xdesstart
Transmit Buffer Descriptor Ring Start Etsdr
Rdesstart
Rbufsize
Receive Buffer Size Register Emrbr
34. Etdsr Field Descriptions
Driver/DMA Operation with Transmit BDs
Buffer Descriptors
Driver/DMA Operation with Buffer Descriptors
Driver/DMA Operation with Receive BDs
RO1 RO2
Ethernet Receive Buffer Descriptor RxBD
Erdsr
36. Receive Buffer Descriptor Field Definitions
Word Location Field Name Description
RO1
Ethernet Transmit Buffer Descriptor TxBD
TO1
TO1 TO2 ABC
17-51
17-52
Low-power Mode Watchdog Operation Mode Exit
Watchdog Module Operation in Low-power Modes
Refer to -2for an overview of the watchdog memory map
Signals
Watchdog timer module has no off-chip signals
Watchdog Control Register WCR
16-bit WCR configures watchdog timer operation
Watchdog Timer Module Memory Map
WCR Field Descriptions
Watchdog Modulus Register WMR
WC9 WC8
Watchdog Service Register WSR
Watchdog Count Register Wcntr
WMR Field Descriptions
WS7 WS6 WS5 WS4 WS3 WS2 WS1 WS0
WS9 WS8
Chapter Programmable Interrupt Timer Modules PIT0-PIT3
Low-power Mode PIT Operation Mode Exit
PIT module has no off-chip signals
PIT Module Operation in Low-power Modes
Ipsbar Offset Access For PITx Bits Address
Programmable Interrupt Timer Modules Memory Map
PRE
PIT Control and Status Register Pcsr
PRE3 PRE2 PRE1 PRE0
Doze Halted OVW PIE PIF RLD
PIF
PIT Modulus Register PMR
This subsection describes the PIT functional operation
Set-and-Forget Timer Operation
PIT Count Register Pcntr
PIT Clock Counter
Free-Running Timer Operation
Timeout Specifications
System clock
PIT Interrupt Requests
Interrupt Request Flag Enable Bit Timeout
Interrupt Operation
4shows the interrupt request generated by the PIT
Chapter General Purpose Timer Modules Gpta and Gptb
GPT Block Diagram
Pin
Signal Description
Function Reset State Pull-up Name Register Bit
GPTn20
GPT Modules Memory Map
Ipsbar Offset Bits Access
GPTn3
SYNCn
IOS
GPT Input Capture/Output Compare Select Register Gptios
FOC
GPT Compare Force Register Gpcforc
GPT Output Compare 3 Mask Register GPTOC3M
Gptios Field Descriptions
OC3D
GPT Output Compare 3 Data Register GPTOC3D
GPT Counter Register Gptcnt
GPTOC3M Field Descriptions
Gpten
GPT System Control Register 1 GPTSCR1
Gptcnt Field Descriptions
Gpten Tffca
OM3 OL3 OM2
GPT Toggle-On-Overflow Register Gpttov
GPT Control Register 1 GPTCTL1
TOV
EDG3B EDG3A EDG2B EDG2A
GPT Interrupt Enable Register Gptie
GPT Control Register 2 GPTCTL2
11. GPTCL1 Field Descriptions
13. Gptie Field Descriptions
GPT System Control Register 2 GPTSCR2
GPT Flag Register 2 GPTFLG2
GPT Flag Register 1 GPTFLG1
PAE Pamod Pedge CLK Paovi PAI
GPT Channel Registers GPTCn
Pulse Accumulator Control Register Gptpactl
Ccnt
Paovf Paif
Pulse Accumulator Flag Register Gptpaflg
Paclk
Pacnt
Pulse Accumulator Counter Register Gptpacnt
19. Gptpaflg Field Descriptions
Portt
GPT Port Data Register Gptport
GPT Port Data Direction Register Gptddr
22. Gptddr Field Descriptions
Output Compare
Prescaler
Input Capture
Pulse Accumulator
Event Counter Mode
OM3 OL3
Gated Time Accumulation Mode
General-Purpose I/O Ports
Pulse Accumulator
Dir Function
23. GPT Settings and Pin Functions
EDGx OMx OC3Mx Pin Data Driven Comments
Interrupts
Reset
24lists the interrupt requests generated by the timer
Interrupt Request Flag Enable Bit
Pulse Accumulator Input Paif
Timer Overflow TOF
GPT Channel Interrupts CnF
Pulse Accumulator Overflow Paovf
20-23
20-24
Chapter DMA Timers DTIM0-DTIM3
Prescaler
DMA Timer Programming Model
Key Features
Reference Compare
Capture Mode
Output Mode
DMA Timer Module Memory Map
Orri FRR CLK RST
DMA Timer Mode Registers DTMRn
DTXMR3
DMA Timer Extended Mode Registers DTXMRn
2describes the DTMRn fields
DTMRn Field Descriptions
DTXMRn Field Descriptions
DMA Timer Event Registers DTERn
3describes the DTXMRn fields
DTERn Field Descriptions
DMA Timer Reference Registers DTRRn
DMA Timer Capture Registers DTCRn
4describes the DTERn fields
DMA Timer Counters DTCNn
Using the DMA Timer Modules
Code Example
T0LOOP
Calculating Time-Out Values
Module Description
Chapter Queued Serial Peripheral Interface Qspi Module
Qspiclk
Interface and Signals
Qspi RAM
Internal Bus Interface
Qspi Input and Output Signals and Functions
Signal Name Hi-Z or Actively Driven Function
Operation
Qspi RAM
0x0F
Receive RAM
Relative Address Register 0x00
0x01
Transmit RAM
Command RAM
Baud Rate Selection
66.67 MHz
Transfer Delays
Qspiclk Frequency as Function of System Clock and Baud Rate
System Clock
Transfer Length
Qspi Registers
Programming Model
Value Bits per transfer
Qspi Mode Register QMR
4gives QMR field descriptions
QMR Field Descriptions
QCD
Qspi Delay Register Qdlyr
Qspics Qmrcpol =
Qmrcpha = = Qdlyrqcd Qcrcont = = Qdlyrdtl
Qdlyr Field Descriptions
Qspi Wrap Register QWR
5gives Qdlyr field descriptions
6gives QWR field descriptions
QIR Field Descriptions
Qspi Interrupt Register QIR
7describes QIR fields
Addr
Qspi Address Register QAR
Qspi Data Register QDR
QCR0-QCR15 Field Descriptions
Command RAM Registers QCR0-QCR15
8gives QCR field descriptions
QS4 QS5
Programming Example
QSPICS30
Qspiclk QS2 Qspidout QS3 Qspidin
22-17
22-18
Ucts Urts Urxd Utxd
Uart
Serial Module Overview
Ipsbar Offset 3124 2316 158
Register Descriptions
Uart Module Memory Map
ERR
Uart Mode Registers 1 UMR1n
CTS
Parity Mode Parity Type PT=
2describes UMR1n fields
UMR1n Field Descriptions
UMR2 n Field Descriptions
Uart Mode Register 2 UMR2n
3describes UMR2n fields
USRn Field Descriptions
Uart Status Registers USRn
4describes USRn fields
UMR2n Field Descriptions
RCS TCS
Uart Clock Select Registers UCSRn
5describes UCSRn fields
Dtin
Uart Command Registers UCRn
UCSRn Field Descriptions
RCS
UCR n Field Descriptions
Bits Value Command Description
UCRn Field Descriptions
Uart Receive Buffers URBn
Uart Transmit Buffers UTBn
COS CTS
Uart Input Port Change Registers UIPCRn
7describes UIPCRn fields
Uipcr n Field Descriptions
8describes UACRn fields
UACRs, shown in -7,control the input enable
Uart Auxiliary Control Register UACRn
Uart Interrupt Status/Mask Registers UISRn/UIMRn
Uisr n/UIMR n Field Descriptions
Uart Baud Rate Generator Registers UBG1n/UBG2n
9describes UISRn and UIMRn fields
11describes UOP1 and UOP0 fields
Uart Output Port Command Registers UOP1n/UOP0n
Uart Input Port Register UIPn
10describes UIPn fields
11. UOP1/UOP0 Field Descriptions
Ucts
Uart Module Signal Definitions
IRQ
Programmable Divider
12. Uart Module Signals
Transmitter/Receiver Clock Source
Sysclk
Following sections describe how to calculate baud rates
Calculating Baud Rates
System Clock Baud Rates
External Clock
Transmitter and Receiver Operating Modes
Transmitter
Therefore UBG1n = 0x00 and UBG2n = 0xD6
23-21
Receiver
20. Transmitter Timing Diagram
21shows receiver functional timing
Fifo Stack
23-24
Looping Modes
Automatic Echo Mode
Local Loop-Back Mode
Remote Loop-Back Mode
Multidrop Mode
25. Multidrop Mode Timing Diagram
Write Cycles
Bus Operation
Programming
Read Cycles
13. Uart Interrupts
Setting up the Uart to Generate Core Interrupts
Setting up the Uart to Request DMA Service
Interrupt and DMA Request Initialization
14. Uart DMA Requests
Register Setting
Uart Module Initialization Sequence
15shows the Uart module initialization sequence
26. Uart Mode Programming Flowchart Sheet 1
26. Uart Mode Programming Flowchart Sheet 2
26. Uart Mode Programming Flowchart Sheet 3
26. Uart Mode Programming Flowchart Sheet 4
26. Uart Mode Programming Flowchart Sheet 5
23-36
Chapter I2C Interface
Interface Features
SCL SDA
Acknowledge bit generation/detection Bus-busy detection
Ifdr
Iadr
24.4 I2C Protocol
24.3 I2C System Configuration
Repeated Start
Arbitration Procedure
SCL1 SCL2
Clock Synchronization
Handshaking
Clock Stretching
I2ADR Field Descriptions
24.5.1 I2C Address Register I2ADR
2describes I2ADR fields
I2C Interface Memory Map
Divider
24.5.2 I2C Frequency Divider Register I2FDR
3describes I2FDRIC
I2FDR Field Descriptions
IEN Iien
24.5.3 I2C Control Register I2CR
4describes I2CR fields
I2CR Field Descriptions
ICF Iaas IBB IAL SRW IIF
24.5.4 I2C Status Register I2SR
5describes I2SR fields
I2SR Field Descriptions
24.5.5 I2C Data I/O Register I2DR
24.6 I2C Programming Examples
Post-Transfer Software Response
Generation of Start
I2SR
24.6.4 Generation of Stop
Generation of Repeated Start
Slave Mode
Arbitration Lost
Write
RXAK=
IAAS=1
SRW=1
24-16
Chapter FlexCAN
Cantx Canrx
RAM MB3 MB2 MB1 MB0
FlexCAN Memory Map
25.1.2 External Signals
FlexCAN Memory Map
Typical can system is shown below in Figure
Can System
Message Buffers
Message Buffer Structure
Common Fields for Extended and Standard Format Frames
Message Buffer Codes for Transmit Buffers
Common Extended/Standard Format Frames
Message Buffer Codes for Receive Buffers
Extended Format Frames
Message Buffer Memory Map
Fields for Extended Format Frames
Fields for Standard Format Frames
Idhigh Idlow
Functional Overview
Message Buffers
Receive Process
Transmit Process
Self-Received Frames
Message Buffer Handling
Receive Message Buffer Deactivation
Serial Message Buffers SMBs
Transmit Message Buffer Deactivation
Locking and Releasing Message Buffers
Remote Frames
Time Stamp
Listen-Only Mode
Overload Frames
Freq Mhz Time-quanta/bit Value +
Configuring the FlexCAN Bit Timing
Bit Timing
Examples of System Clock/CAN Bit-Rate/S-Clock
FlexCAN Error Counters
FlexCAN Initialization Sequence
Special Operating Modes
Debug Mode
Low-Power Stop Mode for Power Saving
Canmcr
Interrupts
Auto-Power Save Mode
Stop FRZ Halt Notrdy Wakemsk Softrst Frzack
Can Module Configuration Register Canmcr
Programmer’s Model
8describes the Canmcr fields
Stop
Canmcr Field Descriptions
9describes the CANCTRL0 fields
FlexCAN Control Register 0 CANCTRL0
11describes the CANCTRL1 fields
10. Transmit Pin Configuration
Transmit Pin Configuration
FlexCAN Control Register 1 CANCTRL1
Samp
Prescaler Divide Register Presdiv
12describes the Presdiv fields
11. CANCTRL1 Field Descriptions
13. CANCTRL2 Field Descriptions
FlexCAN Control Register 2 CANCTRL2
13describes the CANCTRL2 fields
12. Presdiv Field Descriptions
Rx Mask Registers
Free Running Timer Timer
14describes the Timer fields
14. Timer Field Descriptions
12. Rx Mask Registers RXGMASK, RX14MASK, and RX15MASK
Receive Mask Registers RXGMASK, RX14MASK, RX15MASK
16. RXGMASK, RX14MASK, and RX15MASK Field Descriptions
FlexCAN Error and Status Register Estat
17describes the Estat fields
Biterr
17. Estat Field Descriptions
BUF10M BUF9M BUF8M
Interrupt Mask Register Imask
18describes the Imask fields
BUF15M BUF14M BUF13M
19. Iflag Field Descriptions
Interrupt Flag Register Iflag
19describes the Iflag fields
18. Imask Field Descriptions
21describes the Txectr fields
FlexCAN Receive Error Counter Rxectr
FlexCAN Transmit Error Counter Txectr
20describes the Rxectr fields
Chapter General Purpose I/O Module
MCF5282 Ports Module Block Diagram
Modes of Operation
Features
Sdram control Bit DMA timers Uart transmit/receive
Overview
MCF5282 Ports External Signals
External Signal Description
UCTS0
Erxer
SDA
SCL
MCF5282 Ports Module Memory Map
31-24 23-16 15-8 Access
Memory Map/Register Definition
Register Overview
Clre Clrf Clrg Clrh
Ddrb Ddrc
Ddreh Ddrel
Clra Clrb Clrc Clrd
Port Output Data Registers 8-bit
Port Output Data Registers PORTn
Register Bits Name Description
Port Data Direction Registers DDRn
PORTn bits are described in Table
PORTn 8-bit, 7-bit, 6-bit, and 4-bit Field Descriptions
Port Data Direction Register 7-bit
10. Port Pin Data/Set Data Registers 8-bit
Port Pin Data/Set Data Registers PORTnP/SETn
PORTUAP/SETUA
Port Clear Output Data Registers CLRn
PORTnP/SETn bits are described in Table
PORTnP/SETn 8-bit, 6-bit, and 4-bit Field Descriptions
CLRn 8-bit,7-bit, 6-bit, and 4-bit Field Descriptions
CLRn register bits are described in Table
Port B/C/D Pin Assignment Register Pbcdpar
Reset Values for Pbcdpar Bits
Port Size Pbpa Reset Pcdpa Reset
External Boot
PEPA3
Port E Pin Assignment Register Pepar
Pepar Field Descriptions
Single chip mode
10. Reset Values for Pepar Bits and Fields
11. Pfpar Field Descriptions
Port F Pin Assignment Register Pfpar
Pfpar controls the pin function of port F75
12. Pjpar Field Descriptions
Port J Pin Assignment Register Pjpar
Pjpar controls the pin function of port J
Paspar controls the pin function of port AS
Port SD Pin Assignment Register Psdpar
Port AS Pin Assignment Register Paspar
Psdpar controls the pin function of port SD
14. Paspar Field Descriptions
Port EH/EL Pin Assignment Register Pehlpar
ECOL, ERXCLK, ERXDV, ERXD0, Ecrs
Port QS Pin Assignment Register Pqspar
Pqspar controls the pin function of port QS
15. Pehlpar Field Descriptions
PTCPA3 PTCPA2 PTCPA1 PTCPA0
Port TC Pin Assignment Register Ptcpar
Ptcpar controls the pin function of port TC
PTDPA3 PTDPA2 PTDPA1 PTDPA0
Port TD Pin Assignment Register Ptdpar
Ptdpar controls the pin function of port TD
Puapar controls the pin function of port UA
Port UA Pin Assignment Register Puapar
Clkout Input PIN Register PIN Data
Port Digital I/O Timing
Clkout Output Data Register Output PIN
Initialization/Application Information
Chapter Queued Analog-to-Digital Converter Qadc
Qadc Block Diagram
Modes of Operation
Debug Mode
Port QA Analog Input Signals
Port QA Signal Functions
Port QB Analog Input Signals
Port QB Signal Functions
Port QA Digital Input/Output Signals
Port QB Digital I/O Signals
External Trigger Input Signals
Multiplexed Address Output Signals
Multiplexed Analog Input Signals
Multiplexed Analog Input Channels
Voltage Reference Signals
Dedicated Analog Supply Signals
Dedicated Digital I/O Port Supply Signal
Qadc Memory Map
Qadc Module Configuration Register Qadcmcr
This subsection describes the Qadc registers
Port Data Registers Portqa and Portqb
Qadc Test Register Qadctest
ANZ ANY ANX ANW
Port QA and QB Data Direction Register Ddrqa and Ddrqb
This subsection describes the Qadc control registers
Control Registers
Qadc Control Register 0 QACR0
QPR6
Qadc Control Register 0 QACR0 QACR0 Field Descriptions
Divisor
Prescaler fSYS Divide-by Values
QPR60
CIE1
Qadc Control Register 1 QACR1
CIE1 PIE1 SSE1
Queue 1 Operating Modes
Operating Mode
Qadc Control Register 2 QACR2
Resume
CIE2 PIE2 SSE2
BQ2
QACR2 Field Descriptions
Queue 2 Operating Modes
CIE2
MQ2128 Operating Modes
Status Registers
Qadc Status Register 0 QASR0
This subsection describes the Qadc status registers
27-20
Queued Analog-to-Digital Converter Qadc 27-21
QS7 QS6 CWP5 CWP4 CWP3 CWP2 CWP1 CWP0
CF1 PF1 CF2
QS9 QS8
CWP
Scan Mode Queue Operation PF Asserts?
10. QASR0 Field Descriptions
11. CCW Pause Bit Response
Queue 1/Queue 2 States
12. Queue Status
12. Queue Status Transition
Qadc Status Register 1 QASR1
Conversion Command Word Table CCW
IST1 IST0
BYP
IST10 Input Sample Times
Non-Multiplexed Input Signals Channel Number
Port Signal Name
15. Input Sample Times
Right-Justified Unsigned Result Register Rjurr
17. Multiplexed Channel Assignments and Signal Designations
Multiplexed Input Signals Channel Number
Result Registers
Result
Left-Justified Signed Result Register Ljsrr
Left-Justified Unsigned Result Register Ljurr
18. Rjurr Field Descriptions
External Multiplexing
27.7 Functional Description
Result Coherency
External Multiplexing Operation
18. External Multiplexing Configuration
21. Analog Input Channels
Analog Subsystem
Module Version Options
Analog-to-Digital Converter Operation
Conversion Cycle Times
19. Qadc Analog Subsystem Block Diagram
Sample Buffer
Channel Decode and Multiplexer
Successive Approximation Register SAR
Digital Control Subsystem
Comparator
Bias
Queue Priority
Queue Priority Timing Examples
22. Qadc Queue Operation with Pause
Events
Queue Priority Schemes
22. Trigger Events
23. Status Bits
23. CCW Priority Situation
24. CCW Priority Situation
26. CCW Priority Situation
28. CCW Priority Situation
30. CCW Priority Situation
32. CCW Priority Situation
34. CCW Freeze Situation
38. CCW Freeze Situation
Boundary Conditions
Single-Scan Modes
Disabled Mode
Reserved Mode
Scan Modes
Software-Initiated Single-Scan Mode
Externally Gated Single-Scan Mode
Externally Triggered Single-Scan Mode
Interval Timer Single-Scan Mode
Continuous-Scan Modes
Software-Initiated Continuous-Scan Mode
Externally Gated Continuous-Scan Mode
Externally Triggered Continuous-Scan Mode
Qadc Clock Qclk Generation
Periodic Timer Continuous-Scan Mode
42. Qadc Clock Subsystem Functions
Periodic/Interval Timer
43illustrates the operation of the queue structure
Conversion Command Word Table
43. Qadc Conversion Queue Operation
Queued Analog-to-Digital Converter Qadc 27-61
Result Word Table
Signal Connection Considerations
Analog Power Signals
Analog Reference Signals
Conversion Timing Schemes
45. Errors Resulting from Clipping
46. External Positive Edge Trigger Mode Timing with Pause
47. Gated Mode, Single Scan Timing
48. Gated Mode, Continuous Scan Timing
Analog Supply Filtering and Grounding
49. Star-Ground at the Point of Power Supply Origin
Accommodating Positive/Negative Stress Conditions
50. Input Signal Subjected to Negative Stress
Iinjp
Iinjn
Analog Input Considerations
52. External Multiplexing of Analog Signal Sources
53. Electrical Model of an A/D Input Signal
Analog Input Pins
Source Resistance RF + Rsrc 100 Ω 10 kΩ 100 kΩ
Settling Time for the External Circuit
24. External Circuit Settling Time to 1/2 LSB
Interrupt Operation
Error Resulting from Leakage
25. Error Resulting from Input Leakage IOff
PF1 PIE1
Interrupt Sources
26. Qadc Status Flags and Interrupt Sources
Queue Queue Activity Status Interrupt Flag
Chapter Reset Controller Module
Name Direction Input
Reset Controller Signal Properties
Rsti
Rsto
Reset Controller Memory Map
Reset Control Register RCR
Soft WDR POR
Reset Status Register RSR
Lvdf
Lvdie
WDR
RSR Field Descriptions
Source Type
Reset Sources
Power-On Reset
Reset Source Summary
Loss-of-Lock Reset
External Reset
Watchdog Timer Reset
Loss-of-Clock Reset
Reset Control Flow
Reset Control Flow
Power-On Reset/Low-Voltage Detect Reset
Concurrent Resets
Synchronous Reset Requests
Internal Reset Request
Reset Status Flags
28-12
Processor/Debug Module Interface
Debug module is shown in Figure
Debug Module Signals
Signal Description
PST30 Definition Hex
Real-Time Trace Support
Processor Status Encoding
PST30 Definition Hex Binary
Begin Execution of Taken Branch PST =
Ddata
Clkout PST
CSR
Aatr
Ablr
Abhr
DRc4-0 Register Name Abbreviation Initial State
Revision a Shared Debug Resources
BDM/Breakpoint Registers
Rev. a Shared BDM/Breakpoint Hardware
TMM
Address Attribute Trigger Register Aatr
5describes Aatr fields
Aatr Field Descriptions
Address Breakpoint Registers ABLR, Abhr
Address Breakpoint Registers ABLR, Abhr
Ablr Field Description
Configuration/Status Register CSR
6describes Ablr fields
7describes Abhr fields
CSR Field Descriptions
8describes CSR fields
IPI
Data Breakpoint/Mask Registers DBR, Dbmr
10describes Dbmr fields
Program Counter Breakpoint/Mask Registers PBR, Pbmr
9describes DBR fields
12. PBR Field Descriptions
Trigger Definition Register TDR
12describes PBR fields
13describes Pbmr fields
14. TDR Field Descriptions
14describes TDR fields
Eduu
Background Debug Mode BDM
CPU Halt
Edum
29-17
DSO
BDM Serial Interface
Clkout Dsclk DSI
16describes transmit BDM packet fields
Receive Packet Format
Transmit Packet Format
15describes receive BDM packet fields
Section Command
BDM Command Set
17. BDM Command Summary
18. BDM Field Descriptions
ColdFire BDM Command Format
18describes BDM fields
Extension Words as Required
16. Command Sequence Diagram
Command Sequence Diagrams
Read A/D Register RAREG/RDREG
Command Set Descriptions
Command Sequence
Read Memory Location Read
Write A/D Register WAREG/WDREG
22. Read Command Sequence
21. Read Command/Result Formats
Write Memory Location Write
23. Write Command Format
Dump Memory Block Dump
Set is returned if a bus error occurs
Operands are sent as 16 and 32 bits, respectively
25. Dump Command/Result Formats
Fill Memory Block Fill
26. Dump Command Sequence
28. Fill Command Sequence
27. Fill Command Format
No Operation NOP
Resume Execution GO
19. Control Register Map
Read Control Register Rcreg
Rc encoding
BDM Accesses of the Emac Registers
BDM Accesses of the Stack Pointer Registers A7 SSP, USP
Write Control Register Wcreg
35. Wcreg Command/Result Formats
20shows the definition of DRc encoding
Read Debug Module Register Rdmreg
DRc40 Debug Register Definition Mnemonic Initial State
Write Debug Module Register Wdmreg
20. Definition of DRc Encoding-Read
Breakpoint Status
Real-Time Debug Support
Theory of Operation
21. DDATA30/CSRBSTAT Breakpoint Response
Emulator Mode
Concurrent BDM and Processor Operation
Instruction Operand Syntax
22. PST/DDATA Specification for User-Mode Instructions
Processor Status, Ddata Definition
User Instruction Set
29-41
29-42
23. PST/DDATA Specification for MAC Instructions
Supervisor Instruction Set
24. PST/DDATA Specification for Supervisor-Mode Instructions
GND PST3 PST2 PST1 PST0 DDATA3 DDATA2 DDATA1 DDATA0
Reset DSI
Motorola-Recommended BDM Pinout
GND Dsclk
29-46
Chapter Chip Configuration Module CCM
Chip Configuration Module Block Diagram
Single-Chip Mode
Rcon
Signal Descriptions
30.4.3 D2624, 21, 1916 Reset Configuration Override
1provides an overview of the CCM signals
Configuration Read/Write Access
Write-Once Bits Read/Write Accessibility
BMT
Chip Configuration Register CCR
Following subsection describes the CCM registers
Szen
Rcsc
Reset Configuration Register Rcon
Bootps
Rcsc Rpllsel Rpllref
Boot Port Size
Rcsc Chip Select Configuration
Bootps Port Size Configuration
Chip Select Configuration
PIN PRN
Reset Configuration
Chip Identification Register CIR
10. Configuration During Reset
Reset Configuration Pin States During Reset
D2524
Chip Mode Selection
Clock Mode
11. Chip Configuration Mode Selection
Boot Device Selection
Output Pad Strength Configuration
Clock Mode Selection
CCM does not generate interrupt requests
Chip Select Configuration
13. Clock Mode Selection
Chapter Ieee 1149.1 Test Access Port Jtag
Jtag Block Diagram
Pin Function Selected
External Signal Description
31.3.1 Detailed Signal Description
Jtagen Jtag Enable
Tclk Test Clock Input
31.3.1.3 TMS/BKPT Test Mode Select / Breakpoint
TRST/DSCLK Test Reset / Development Serial Clock
Signal State to the Disable Module
Idcode Register
Memory Map/Register Definition
Memory Map
Instruction Shift Register IR
Boundary Scan Register
Bypass Register
Jtagcfmclkdiv Register
Testctrl Register
TAP Controller
Jtag Module
Instruction IR30 Instruction Summary
Jtag Instructions
5describes public and private instructions
Jtag Instructions
SAMPLE/PRELOAD Instruction
External Test Instruction Extest
Idcode Instruction
Highz Instruction
Enabletestctrl Instruction
Lockoutrecovery Instruction
Testleakage Instruction
Bypass Instruction
Initialization/Application Information
Restrictions
Clamp Instruction
Nonscan Chain Operation
Chapter Mechanical Data
MCF5282 Pinout 256 Mapbga
Pinout
Secondary Tertiary
MCF5282 Signal Description by Pin Number
Mapbga Pin Pin Functions
PF4
PG4
PG3
PG2
PQA3 ETRIG1 VRH VDD Vssa VSS
PUA1 VDD
GPTB0
GPTA0
PQS5
PQA0 MA0 VDD Vdda
PUA3 VSS Xtal Jtagen
GPTB2
Orderable Part Numbers
Motorola Part Description Speed Temperature
Ordering Information
32-8
Absolute Maximum Ratings1
Rating Symbol Value Unit
Maximum Ratings
HBM
Rating Symbol
2lists thermal resistance values
Thermal Characteristics
Thermal Characteristics
Characteristic Symbol Value Unit
Solving equations 1 and 2 for K gives
DC Electrical Specifications
DC Electrical Specifications1
Characteristic Symbol Min Max Unit
Wait Doze Stop
PLL Electrical Specifications
Phase Lock Loop Electrical Specifications
Qadc Absolute Maximum Ratings
Qadc Electrical Characteristics
Qadc Electrical Specifications Operating
Parameter Symbol Min Max Unit
IOH = TBD
Parameter Symbol Min
Num Parameter Symbol Min Max Unit
Flash Memory Characteristics
Qadc Conversion Specifications Operating
Sgfm Flash Program and Erase Characteristics
10. Processor Bus Input Timing Specifications
External Interface Timing Characteristics
Sgfm Flash Module Life Characteristics
Timings listed in -10are shown in Figure
Processor Bus Output Timing Specifications
11. External Bus Output Timing Specifications
Name Characteristic Symbol Min Max Unit Control Outputs
Data Outputs
Read/Write Internally Terminated Timing
Read Bus Cycle Terminated by TA
Read Bus Cycle Terminated by TEA
Sras Scas Dramw
Symbol Min Max Unit
Sras SCAS1 Dramw
33.9 General Purpose I/O Timing
13. Gpio Timing1
14. Reset and Configuration Override Timing
Reset and Configuration Override Timing
Clkout Rsti Rsto
33.11 I2C Input/Output Timing Specifications
15. I2C Input Timing Specifications between SCL and SDA
Num Characteristic Min Max Units
16. I2C Output Timing Specifications between SCL and SDA
Fast Ethernet AC Timing Specifications
Num Characteristic Min Max Unit
MII Receive Signal Timing ERXD30, ERXDV, ERXER, and Erxclk
MII Transmit Signal Timing ETXD30, ETXEN, ETXER, Etxclk
17. MII Receive Signal Timing
19. MII Async Inputs Signal Timing
MII Async Inputs Signal Timing Ecrs and Ecol
19lists MII asynchronous inputs signal timing
18. MII Transmit Signal Timing
20. MII Serial Management Channel Timing
MII Serial Management Channel Timing Emdio and Emdc
22lists Qspi timings
DMA Timer Module AC Timing Specifications
Qspi Electrical Specifications
21lists timer module AC timings
23. Jtag and Boundary Scan Timing
Jtag and Boundary Scan Timing
16. Boundary Scan Jtag Timing
17. Test Access Port Timing
Clkout VIL
Debug AC Timing Specifications
24. Debug AC Timing Specification
20. Real-Time Trace AC Timing
20shows real-time trace timing for the values in Table
ACR1
Table A-1. CPU Space Register Memory Map
Address Name Mnemonic Size
ACR0
Qadc
Table A-2. Module Memory Map Overview
Address Module Size
I2C
Chip Select Registers
Table A-3. Register Memory Map
Address Name Mnemonic Size SCM Registers
Sdramc Registers
DMA Registers
Uart Registers
UIP01
UISR1
UIMR1
UBG21
Qspi Registers
DMA Timer Registers
I2C Registers
Interrupt Controller
Ipsbar + 0xC56
IMRH1
SWACKR0
IPRH1
IPRL1
FEC Registers
Global Interrupt Acknowledge Cycle Registers
Gpio Registers
Porttc
Portas
Portqs
Portsd
Setb Ipsbar +
Portap
Seta Ipsbar +
Portbp
Clras
Clra
Clrf
Clrg
Edge Port Registers
Clock Module Registers
Watchdog Timer Registers
Qadc Registers
General Purpose Timer a Registers
General Purpose Timer B Registers
FlexCAN Registers
Flash Registers
MCF5282 User’s Manual
Index
Index-2
Index-3
Index-4
Index-5
Index-6
Index-7
Index-8
Index-9
Index-10
Index-11
Index-12
Index-13
Index-14
Index-15
Index-16