This manual is one of a set of three documents. You need the following manuals to have complete
product information: Family Manual, User’s Manual, and Technical Data Sheet.
Order this document by DSP56F826-827UM - Rev. 5.0
March, 2005
Summary of Changes and Updates:
Clarified SPI Chapter Section 12.9.1.7
Clarified statement in GPIO Chapter immediately aboveTable 8-2
Converted to Freescale look and feel
Features of the 56F826 and 56F82716-bit devices are described in this manual. Details of
Memory, Operating modes, and Peripheral modules are documented here. This manual is
intended to be used with the DSP56800 Family Manual (DSP56800FM), describing the Central
Processing Unit (CPU), programming models, and instruction set details. The Technical Data Sheet for each part provides electrical specifications as well as timing, pinout, and packaging
descriptions.
Audience
Information in this manual is intended to assist design and software engineers to integrate the
56F826 and/or 56F827 digital signal processors into a design and/or while developing application
software.
Manual Organization
Manual information is organized into chapters by topic.
Chapter 56F826/827 Overview provides a brief overview of the 56F826/827 devices.
Chapter Pin Descriptions describes pins on the 56F826/827 chips and how those pins are
grouped into various interfaces.
Chapter Memory and Operating Modes recounts the On-Chip Memory, structures, registers,
(PLL) and timers distribution chain for the 56F826/827.
Chapter Interrupt Controller (ITCN) details the 56F826/827 External Memory Interface also
referenced as Port A.
Chapter Flash Memory Interface (FLASH) describes the Program Flash, Data Flash, and Boot
Flash features and registers.
Chapter External Memory Interface (EMI) provides the External Memory Interface available
on the 56F826/827.
Preface, Rev. 3
Freescale Semiconductorxxiii
Chapter General Purpose Input/Output (GPIO) describes how GPIO pins share package pins
with other peripherals on the chip.
Chapter Analog-to-Digital Converter (ADC) provides data regarding the package feature in
the 56F827 only.
Chapter Serial Communications Interface (SCI) delineates the peripheral’s ability to
communicate with other devices such as codecs, microprocessors, and peripherals to provide the
primary data input path.
Chapter Serial Peripheral Interface (SPI)outlines the ability of the peripheral to communicate
with external devices such as Liquid Crystal Displays (LCDs) and Micro Controller Units
(MCUs).
Chapter Synchronous Serial Interface (SSI) elaborates on the capabilities of SSI as a part of
Port C and how it communicates with devices such as codecs, microprocessors, other devices,
and peripherals providing the primary data input path.
Chapter Quad Timer Module (TMR) expands on the available internal Quad Timer devices,
including features and registers.
Chapter Time-of-Day (TOD) develops instruction about the sequence of counters to track
elapsed time and its ability to track time up to 179.5 years, or 65,535 days, including keeping
track of leap year adjustments.
Chapter Reset, Low Voltage, Stop and Wait Operations is devoted to the on-chip Watchdog
Timer and the real-time interrupt generator and the modes of operation.
Chapter OnCE Module contains the specifics of the 56F826/827 On-Chip Emulation (OnCE™)
module, accessed through the Joint Test Action Group (JTAG) port.
Chapter JTAG Portprovides specifics of the 56F826/827 JTAG port.
Chapter Glossary lists an index of abbreviations and acronyms along with their definitions used
in this manual.
Appendix B Programmer’s Sheets offers programming references and master programming
sheets used to program the 56F826/827 registers.
Additional information
•See http//:www.freescale.com/ for the most current BSDL listings.
•See device Techical Data Sheet for package and pin-out information.
56F826/827 User Manual, Rev. 3
xxiv Freescale Semiconductor
Suggested Reading
A list of books is provided here as an aid:
Advanced Topics in Signal Processing, Jae S. Lim and Alan V. Oppenheim (Prentice-Hall:
1988).
Applications of Digital Signal Processing, A. V. Oppenheim (Prentice-Hall: 1978).
Digital Processing of Signals: Theory and Practice, Maurice Bellanger (John Wiley and Sons:
1984).
Digital Signal Processing, Alan V. Oppenheim and Ronald W. Schafer (Prentice-Hall: 1975).
Digital Signal Processing: A System Design Approach, David J. DeFatta, Joseph G. Lucas, and
William S. Hodgkiss (John Wiley and Sons: 1988).
Discrete-Time Signal Processing, A. V. Oppenheim and R.W. Schafer (Prentice-Hall: 1989).
Foundations of Digital Signal Processing and Data Analysis, J. A. Cadzow (Macmillan: 1987).
Handbook of Digital Signal Processing, D. F. Elliott (Academic Press: 1987).
Introduction to Digital Signal Processing, John G. Proakis and Dimitris G. Manolakis
(Macmillan: 1988).
Multirate Digital Signal Processing, R. E. Crochiere and L. R. Rabiner (Prentice-Hall: 1983).
Signal Processing Algorithms, S. Stearns and R. Davis (Prentice-Hall: 1988).
Signal Processing Handbook, C. H. Chen (Marcel Dekker: 1988).
Signal Processing: The Modern Approach, James V. Candy (McGraw-Hill: 1988).
Theory and Application of Digital Signal Processing, Lawrence R. Rabiner and Bernard Gold
(Prentice-Hall: 1975).
Manual Conventions
Conventions used in this manual:
•Bits within registers are always listed from Most Significant Bit (MSB) to Least Significant
Bit (LSB).
•Bits within a register are formatted AA[n:0] when more than one bit is involved in a
description. For purposes of description, the bits are presented as if they are contiguous
within a register. However, this is not always the case. Refer to the programming model
diagrams or to the programmer’s sheets to see the exact location of bits within a register.
•When a bit is described as set, its value is set to one. When a bit is described as cleared, its
value is set to zero.
•Pins, or signals asserted low, made active when pulled to ground, have an overbar above
their name. For example, the SS0
pin is asserted low.
Preface, Rev. 3
Freescale Semiconductorxxv
•Hex values are indicated with a dollar sign ($) preceding the hex value, as follows: $FFFB
is the X memory address for the Interrupt Priority Register (IPR).
•Code examples are displayed in a monospaced font, illustrated below:
BFSET #$0007,X:PCC ; Configure:line 1
; MISO0, MOSI0, SCK0 for SPI masterline 2
; ~SS0 as PC3 for GPIOline 3
•Pins, or signals listed in code examples asserted as low have a tilde in front of their names.
In the previous example, line three refers to the SS0
pin, shown as ~SS0.
•The word reset is used in three different contexts in this manual. The word pin is a generic
term for any pin on the chip. They are described as:
— 1) There is a reset pin always written as RESET
— 2) The processor state occurs when the RESET
, in uppercase, using the over bar.
pin is asserted is always written as
Reset.
— 3) The word reset refers to the reset function is written in lowercase with a leading
capital letter as grammar dictates.
•The word pin is a generic term for any pin on the chip.
•The word assert means a high true (active high) signal is pulled high to V
, or a low true
DD
(active low) signal is pulled low to ground.
•The word deassert means a high true signal is pulled low to ground, or a low true signal is
pulled high to V
, illustrated in Table 0-1.
DD
•Shaded areas in registers represents reserved bits. They are written as zero, ensuring future
compatibility.
•Throughout this manual, Data Memory locations are noted as X:$0000 while Program
Memory locations are noted as P:$0000 where $ represents a memory location in hex.
•The PWM value registers are buffered. The value written does not take effect until the
LDOK bit is set and the next PWM load cycle begins. Reading PWMVALx reads value in
a buffer and not necessarily the value the PWM generator is currently using.
Table 0-1. Pin Conventions
V
IL/VOL
IH/VOH
1
OH
OL
Signal/SymbolLogic StateSignal State
PIN
PINFalseDeasserted
PINTrueAssertedVIH/V
PINFalseDeassertedVIL/V
1.Values for VIL, VOL, VIH, and VOH are defined by individual product specifications.
xxvi Freescale Semiconductor
TrueAsserted
56F826/827 User Manual, Rev. 3
Voltage
V
Chapter 1
56F826/827 Overview
56F826/827 Overview, Rev. 3
Freescale Semiconductor1
56F826/827 User Manual, Rev. 3
2 Freescale Semiconductor
Introduction
1.1 Introduction
Differing in size of memories and choice of peripherals, 56F826/827 multi-functional chips offer
solutions for a wide variety of applications. The core provides more processing power than any
other available control chip while saving design space and money. The 56F826 and 56F827 are
members of the Freescale 56800 core-based family of digital signal controllers.
The processing power of these controllers and the functionality of a microcontroller with a
flexible set of peripherals are combined on a single chip. This chip design provides an extremely
cost-effective and compact solution for a number of uses. The family of chips is designed to
provide control for such applications as:
•AC induction motors—for industrial and appliances such as washing machines, HVAC,
fans, vacuums, and motor drives
•Brush DC motors—for car window lifters, electric antennas, toys, cordless tools
•Brushless DC motors—used in automotive and appliances including PC fans, ceiling fans,
blowers, washing machines, electric power steering systems
•Switched and variable reluctance motors—such as washing machines, electric power
steering, dynamic body control, refrigerator compressors, HVAC, fans, vacuums and for
the power control for:
— General converter/inverter applications
— Uninterruptable power systems (in-line, line interactive, and standby)
— Inverter output stages (push-pull, half-bridge, and full bridge)
Either the 56F826/827 may be designed into the following applications:
•Automotive control
•Power line modem
•Uninterruptable power supplies
•Telephony system implementation
•Noise cancellation applications
•Home security
•Steppers and encoders
•Temperature regulation
•HVAC applications
•Remote monitoring and control
•Digital telephone answering machine
56F826/827 Overview, Rev. 3
Freescale Semiconductor3
56800 Family Description
•Fuel management systems
•Voice enabled appliances
•Cable test equipment
•Electric energy meter with embedded power line modem
•Underwater acoustics
•Glass breakage detection and security systems
•Traffic light control
•Identification tag readers
•Servo drives
1.2 56800 Family Description
The 56800 core is based on a Harvard-style architecture consisting of three execution units
operating in parallel. The Microcontroller Unit (MCU) style programming model and optimized
instruction set provide straightforward generation of efficient, compact, and control code. The
instruction set is highly efficient for C-compilers, facilitating rapid development of optimized
control applications.
The 56800 chips support program execution from either internal or external memories, providing
two external dedicated interrupt lines and up to 32-General-Purpose Input/Output (GPIO) lines.
The controller includes Program Flash and Data Flash, each programmable through the Joint Test
Action Group (JTAG) port, with Program RAM and Data RAM. The controller also supports
program execution for external memory. The 56800 core is capable of accessing two data
operands from the on-chip Data RAM per instruction cycle.
The controller also provides a full set of standard programmable peripherals: Serial
Communications Interface (SCI), Serial Peripheral Interface (SPI), and an additional Quad Timer
(TMR). Any of these interfaces can be used as a General-Purpose In/Out (GPIO) if those
functions are not required. An internal Interrupt Controller and dedicated GPIO, are also included
on some of the parts.
56F826/827 User Manual, Rev. 3
4 Freescale Semiconductor
56800 Core Description
1.3 56800 Core Description
The 56800 core consists of functional units operating in parallel, increasing the throughput of the
machine. The Harvard-style architecture consists of three execution units operating in parallel.
These three execution units allow as many as six operations during each instruction cycle. The
instruction set is also highly efficient for C-compilers. Major features of the 56800 core are:
•Efficient 16-bit 56800 family engine with dual Harvard architecture
•As many as 40 Million Instructions Per Second (MIPS) at 80MHz core frequency
•Two 36-bit accumulators, including extension bits
•16-bit bidirectional barrel shifter
•Parallel instruction set with unique addressing modes
•Hardware DO and REP loops
•Three internal address buses and one External Address Bus (EAB) available
•Four internal data buses and one EAB available
•Instruction set supports both and controller functions
•Controller style addressing modes and instructions for compact code
•Software subroutine and interrupt stack with depth limited only by memory
•JTAG/OnCE™ debug programming interface
1.3.1 56800 Core Block Diagram
An overall block diagram of the 56800 core architecture is illustrated in Figure 1-1. The 56800
core is fed by an internal program and Data Memory, an External Memory Interface (EMI), and
various peripherals suitable for embedded applications. The blocks include:
•Data Arithmetic Logic Unit (Data ALU)
•Address Generation Unit (AGU)
•Program controller and hardware looping unit
•Bit Manipulation Unit
•On-Chip Emulation (OnCE) port
•Interrupt Controller
•External Bus Bridge
•Address buses
•Data buses
56F826/827 Overview, Rev. 3
Freescale Semiconductor5
56800 Core Description
Program
Controller
OMR
SR
LALC
PC
HWS
Bus and Bit
Manipulation
Unit
OnCE
Instr. Decoder
and
Interrupt Unit
Data
ALU
Y1 Y0
AGU
M01N
MOD.
+/-
ALU
Limiter
X0A2 A1 A0B2 B1 B0
SP
R0
R1
R2
R3
XAB1
XAB2
PAB
PDB
CGDB
XDB2
PGDB
MAC
and
ALU
Program
Memory
Data
Memory
External
Bus
Interface
IPBus
Interface
Figure 1-1. 56800 Core Block Diagram
The Program Controller, AGU and Data ALU each contain a discrete register set and control
logic so each can operate independently and in parallel with the others. Likewise, each functional
unit interfaces with other units, with memory, and with memory-mapped peripherals over the
core’s internal address and data buses, illustrated in Figure 1-2.
56F826/827 User Manual, Rev. 3
6 Freescale Semiconductor
56800 Core Description
Generator
Internal
Data Bus
Switch
PLL
Clock
Address
Generation
Unit
PDB
CGDB
Controller
Program
Program
RAM/FLASH
Expansion
XAB1
XAB2
PAB
RAM/FLASH
Expansion
16-Bit
Core
Data ALU
→
16 x 16 + 36
Three 16-Bit Input Regs
Two 36-Bit Accumulators
36-Bit Mac
Data
On-Chip
Expansion
Area
XDB2
Peripheral
Modules
IPBus
Bridge
TM
OnCE
IRQB
16 Bit Data Bus
IRQA
RESET
Figure 1-2. 56800 Bus Block Diagram
It is possible in a single instruction cycle for the program controller to be fetching a first
instruction, the AGU to generate two addresses for a second instruction, and the Data ALU to
perform a multiply in a third instruction. In a similar manner, the Bit Manipulation Unit (BMU)
can perform an operation of the third instruction previously described instead of the
multiplication in the Data ALU. The architecture is pipelined to take advantage of the parallel
units and significantly decrease the execution time of each instruction.
56F826/827 Overview, Rev. 3
Freescale Semiconductor7
Architectural Overview
1.4 Architectural Overview
The 56F826/827 consists of the 56800 core, Program and Data Memory, and peripherals useful
for embedded control applications. Block diagrams for each chip describing the differences in
available peripheral sets and memory are illustrated in Figure 1-3 and Figure 1-4.
1.5 56F826 Description
The 56F826 is a member of the 56800 core-based family of devices. On a single chip, it
combines the processing power of a controller and the functionality of a microcontroller with a
flexible set of peripherals creating an extremely cost-effective solution for general-purpose
applications. Because of its low cost, configuration flexibility and compact program code, the
56F826 is well-suited for many applications such as:
•Noise suppression
•Identification tag readers
•Sonic/subsonic detectors
•Security access devices
•Remote metering
•Sonic alarms
•Point of Sale (POS) terminals
•Feature phones
The 56F826 supports program execution from either internal or external memories. Two data
operands can be accessed from the on-chip Data RAM per instruction cycle. Both chips also
provide two external dedicated interrupt lines and up to 46-GPIO lines, depending on peripheral
configuration.
The 56F826 controller includes 31.5K words of Program Flash and 2K words of Data Flash, each
programmable through the JTAG port, with 512 words of Program RAM, and 4K words of Data
RAM. The controller also supports program execution from external memory.
The 56F826 incorporates a total of 2K words of Boot Flash for easy inclusion of
field-programmable software routines, used to program the main Program and Data Flash
memory areas. Both Program and Data Flash memories can be independently bulk-erased or
erased in page sizes of 256 words. The Boot Flash memory can also be either bulk- or
page-erased.
56F826/827 User Manual, Rev. 3
8 Freescale Semiconductor
1.5.1 56F826 Features
•Up to 40MIPS at 80MHz core frequency
•MCU functionality in a unified, C-efficient architecture
•Hardware DO and REP loops
•31.5K × 16-bit words Program Flash
•512 × 16-bit words Program RAM
•2K × 16-bit words Data Flash Memory
•4K × 16-bit words Data RAM
•2K × 16-bit words Boot Flash Memory
•Up to 64K × 16-bit words each of external memory
expansion for Program and Data memory
•One Serial Port Interface (SPI)
•One additional SPI, or two optional Serial Communication Interfaces (SCIs)
•Easy to program with flexible application development tools
•Optimized for C-Compiler efficiency
•Simple updating of Flash Memory through SPI, SCI, or OnCE using on-chip boot-loader
•Supports 9-bit communication protocol
•Simple port interface with other asynchronous serial communication devices
•Simple port interface with other asynchronous serial peripheral communication devices
and off-chip EE memory
•Sophisticated debugging using OnCE to view core, peripheral, and memory contents
56F826/827 Overview, Rev. 3
Freescale Semiconductor9
56F827 Description
Quad Timer
4
6
SCI0 & SCI1
4
4
Dedicated
16
GPIO
SSI
or
GPIO
or
SPI0
SPI1
or
GPIO
GPIO
EXTBOOT
RESET
TOD
Time r
Interrupt
Controller
Program Memory
or
32252 x 16 Flash
512 x 16 SRAM
Boot Flash
2048 x 16 Flash
Data Memory
2048 x 16 Flash
4096 x 16 SRAM
COP/
Watchdog
Applica-
tion-Specific
Memory &
Program Controller
Hardware Looping Unit
MODULE CONTROLS
ADDRESS BUS [8:0]
Peripherals
IRQB
IRQA
and
COP
RESET
DATA BUS [15:0]
PAB
PDB
XDB2
CGDB
XAB1
XAB2
6
JTAG/
OnCE
Port
Address
Generation
Unit
INTERRUPT
CONTROLS
IPBus Bridge
VDDV
SS
3
Low Voltage Supervisor
CONTROLS
1616
44
3
16 x 16 + 36 → 36-Bit MAC
Three 16-bit Input Registers
Two 36-bit Accumulators
IPBB
(IPBB)
V
DDIOVSSIO
Data ALU
16-Bit
56800
Core
External
Bus
Interface
Unit
V
DDAVSSA
Analog Reg
Manipulation
Clock Gen
Address Bus
Bit
Unit
PLL
.
External
Switch
External
Data Bus
Switch
Bus
Control
16
16
CLKO
XTAL
EXTAL
A[00:15]
or
GPIO
D[00:15]
PS Select
DS Select
WR Enable
RD Enable
Figure 1-3. 56F826 Block Diagram
1.6 56F827 Description
The 56F827 is a member of the Harvard-style architecture 56800 core-based family of devices. It
combines the processing power of a controller and the functionality of a microcontroller with a
flexible set of peripherals, creating an extremely cost-effective solution for general-purpose
applications. Because of its low cost, configuration flexibility, and compact program code, the
56F827 is well-suited for many applications. Two data operands per instruction cycle can be
accessed from the on-chip Data RAM per instruction cycle. The 56F827 incorporates easy
customer field-programmable software routines used to develop the main program. The 56F827
is well-suited for many applications such as:
•Noise suppression
•Identification tag readers
•Sonic/subsonic detectors
•Security access devices
•Remote metering
56F826/827 User Manual, Rev. 3
10 Freescale Semiconductor
56F827 Description
•Sonic alarms
•Point of Sale (POS) terminals
•Feature phones
The 56800 core consists of three execution units operating in parallel, allowing as many as six
operations per instruction cycle. The microprocessor-style programming model and optimized
instruction set allow forthright generation of efficient, compact code for MCU applications. The
instruction set is also highly efficient for C-Compilers to enable rapid development of optimized
control applications.
The 56F827 supports program execution from either internal or external memories. Two data
operands can be accessed from the on-chip Data RAM per instruction cycle. The 56F827 also
provides two external dedicated interrupt lines, and up to 64-GPIO lines, depending on peripheral
configuration.
The 56F827 controller includes 63K words of Program Flash and 4K words of Data Flash, each
programmable through the JTAG port, with 1K words of Program RAM, and 4K words of Data
RAM. It also supports program execution from external memory.
This controller also provides a full set of standard programmable peripherals including one each
SSI, SCI, SPI, the option to select a second SPI or two SCIs, and one Quad Timer (TMR). The
SSI, SPI, and TMR can be used as GPIOs if those function are not required.
1.6.1 56F827 Features
•Up to 40MIPS at 80MHz core frequency
•MCU functionality in a unified, C-efficient architecture
•Hardware DO and REP loops
•63K × 16-bit words Program Flash Memory
•1K × 16-bit words Program RAM
•4K × 16-bit words Data Flash Memory
•4K × 16-bit words Data RAM
•Up to 64K × 16-bit words external memory expansion for program and Data Memory
•JTAG/OnCE for debugging
•MCU-friendly instruction set supports controller functions: MAC, Bit Manipulation Unit
(BMU), 14 addressing modes
1.Two SCIs can be configured as an additional SPI.
2.Can be used as GPIO
1.7.1 Data Arithmetic Logic Unit (Data ALU)
The Data ALU performs all of the arithmetic and logical operations on data operands. It contains:
•Three 16-bit input registers
•Two 32-bit accumulator registers
•Two 4-bit accumulator extension registers
•One parallel, single cycle, non-pipelined MAC unit
•An accumulator shifter
•One data limiter
•One MAC output limiter
•One 16-bit barrel shifter
56F826/827 User Manual, Rev. 3
14 Freescale Semiconductor
56F826/827 Features
The Data ALU is capable of performing the following in one instruction cycle:
•Multiplication
•Multiply-accumulate with positive or negative accumulation
•Addition
•Subtraction
•Shifting
•Logical operations
Arithmetic operations are completed using two’s-complement fractional or integer arithmetic.
Support is also provided for unsigned and multi-precision arithmetic.
Data ALU source operands can be 16, 32, or 36 bits and can originate from input registers and/or
accumulators. ALU results are stored in one of the accumulators. Additionally, some arithmetic
instructions store their 16-bit results in any of the three Data ALU input registers, or write
directly to memory. Arithmetic operations and shifts have a 16-bit or 36-bit result, and logical
operations are performed on 16-bit operands yielding 16-bit results. Data ALU registers can be
read or written by the Core Global Data Bus (CGDB) as 16-bit operands, and the X0 register can
also be written by the X Data Bus two (XDB2) with a 16-bit operand.
1.7.2 Address Generation Unit (AGU)
The Address Generation Unit (AGU) performs all of the effective address calculations and
address storage necessary to address data operands in memory. This unit operates in parallel with
other chip resources to minimize address generation overhead. It contains two ALUs, allowing
the generation of up to two 16-bit addresses every instruction cycle—one for either the XAB1 or
Program Address Bus (PAB) and one for the XAB2 bus. The ALU can directly address 65,536
locations on the XAB1 or XAB2 bus. The ALU can also directly address 65,536 locations on the
PAB, for a total capability of 131,072 16-bit data words. Hooks are provided on the 56800 core
allowing expansion of address space. Its arithmetic unit can perform linear and modulo
arithmetic.
1.7.3 Program Controller and Hardware Looping Unit
The Program Controller performs:
•Instruction prefetch
•Instruction decoding
•Hardware loop control
•Interrupt (exception) processing
56F826/827 Overview, Rev. 3
Freescale Semiconductor15
56F826/827 Features
Instruction execution is carried out in other core units, such as the Data ALU or AGU. The
program controller consists of a Program Counter (PC) unit, Hardware Looping Control Logic,
Interrupt Control Logic, and Status and Control registers.
Two interrupt control pins provide input to the program interrupt controller. The External
Interrupt Request A (IRQA
) pin and the External Interrupt Request B (IRQB) pin receive
interrupt requests from external sources.
The RESET
Reset state. When the RESET
pin resets the 56F826/827. When asserted, it initializes the chip and places it in the
pin is deasserted, the initial chip operating mode is latched into the
Operating Mode Register (OMR) based upon the value present on the EXTBOOT pin. The
56F826/827 is internally pulled low. Please refer to Section 3.3.2 for additional details.
1.7.4 Bit Manipulation Unit (BMU)
The Bit Manipulation Unit (BMU) performs bit field manipulations on X memory words,
peripheral registers, and registers on the DSP56800 core. It is capable of testing, setting, clearing,
or inverting any bits specified in a 16-bit mask. This unit tests bits on the upper or lower byte of a
16-bit word for branch on-bit field instructions, meaning the mask tests a maximum of eight bits
at a time.
Transfers between buses are accomplished in the bus unit. The bus unit is similar to a switch
matrix, and can connect any two of the three data buses together without adding any pipeline
delays. This procedure is required for transferring a core register to a peripheral register because
the core register is connected to the CGDB bus.
As a general rule, when reading any register less than 16 bits wide, unused bits are read as zero.
Reserved and unused bits should always be written with a zero, ensuring future compatibility.
1.7.5 Address and Data Buses
Addresses are provided to the internal X Data Memory on two unidirectional, 16-bit
buses—(XAB1, and XAB2). Program memory addresses are provided on the unidirectional
16-bit PAB.
Note:The XAB1 can provide addresses for accessing both internal and external memory,
whereas the XAB2 can only provide addresses for accessing internal read-only
memory. The External Address Bus (EAB) provides addresses for external memory.
Data movement on both the 56F80x occurs over three bidirectional, 16-bit buses and at least one
unidirectional 16-bit bus:
•CGDB bidirectional
•PDB bidirectional
56F826/827 User Manual, Rev. 3
16 Freescale Semiconductor
56F826/827 Features
•PGDB bidirectional
•XDB2 unidirectional
When one memory access is performed, data transfer between the Data ALU and the X Data
Memory occurs over the CGDB. When two simultaneous memory reads are performed, transfers
occur over the CGDB and the XDB2. All other data transfers to core blocks occur over the
CGDB, transferring all memory to and from peripherals over the PGDB. Instruction word fetches
occur simultaneously over the PDB. The External Data Bus (EDB) provides bidirectional access
to external Data Memory.
The bus structure supports:
•General register-to-register
•Register-to-memory
•Memory-to-register transfers
Each can transfer up to three 16-bit words in the same instruction cycle. Transfers between buses
are accomplished in the Bit Manipulation Unit (BMU). Table 1-2 lists the address and data buses
for the 56800 core.
Table 1-2. 56800 Address and Data Buses
Bus Bus NameBus WidthDirectionUse
XAB1X Address Bus 116-bit UnidirectionalInternal and External Memory Address
XAB2X Address Bus 216-bitUnidirectionalInternal Memory Address
CGDBCore Global Data Bus16-bitUnidirectionalInternal Data Movement
PDBProgram Data Bus16-bitUnidirectionalInstruction Word Fetches
PGDBPeripheral Global Data Bus16-bitUnidirectionalInternal Data Movement
XDB2X Data Bus 216-bitUnidirectionalInternal Data Movement
EDBExternal Data Bus16-bitBidirectionalExternal Data Movement
56F826/827 Overview, Rev. 3
Freescale Semiconductor17
56F826/827 Features
1.7.6 On-Chip Emulation (OnCE) Module
The OnCE module allows interaction in a debug environment with the 56800 core and its
peripherals. Its capabilities include:
•Examining registers
•Setting breakpoints in memory
•Stepping or tracing instructions
It provides simple, inexpensive, and speed independent access to the 56800 core for sophisticated
debugging and economical system development. The JTAG port allows access to the OnCE
module, through the 56F826/827, to its target system where it retains debug control without
sacrificing other user accessible on-chip resources. This technique eliminates costly cabling and
the access to processor pins required by traditional emulator systems. The OnCE interface is
described in Chapter 16.
1.7.7 On-Chip Clock Synthesis (OCCS) Block
The Clock Synthesis module generates the clocking for the 56F826/827. It generates clocks used
by the 56800 core and 56F826/827 peripherals. The module contains a PLL capable of
multiplying up the frequency or being bypassed. A prescaler/divider distributes clocks to
peripherals and to lower power consumption on the 56F826/827. Further, the prescaler divider
selects which clock, if any, is routed to the CLKO pin of both chips.
1.7.8 Oscillators
The 56F826/827 are clocked either from an external crystal or external clock generator input. The
crystal oscillator uses a 4MHz crystal:
•Optionally, can use ceramic resonator in place of crystal
•Optionally, can be divided down by a programmable prescaler
1.7.9 Phase Locked Loop (PLL)
•The PLL will generate an interrupt to instruct the device to gracefully shutdown the
system in the event reference clock is stopped.
•The PLL is designed to run for at least 100 instruction cycles if the oscillator source is
removed.
•The PLL generates output frequencies up to 80MHz.
•The PLL can be bypassed to use an oscillator or prescalar outputs directly.
56F826/827 User Manual, Rev. 3
18 Freescale Semiconductor
56F826/827 Features
A clock gear shifter guarantees smooth transition from one clock source to the next during
normal operation. Clock sources available for Normal operation include:
•Prescaler output
•Postscaler output
•Programmable prescalar output, a divided down version of the oscillator clock— legal
divisors are one, two, four, or eight
1.7.10 Resets
•Integrated POR release occurs when VDD exceeds 1.8V.
•Integrated low voltage detector generates an interrupt when V
drops below 2.2V in the
DD
core or 2.7V in the I/O.
Note:Voltage level is designed to allow the host processor to continue running at speed.
There is nominally about 50mV of hysteresis present on each of the low voltage
interrupt inputs.
1.7.11 Energy Supply Voltages
Dual power supply:
•Chip I/O supply voltage = 3.3V
•Core voltage = 2.5V plus or minus 10 percent
1.7.12 IPBus Bridge
The IPBus Bridge converts Data Memory and interrupt interfaces to IPBus-compliant interfaces
for peripherals.
This IPBus Bridge permits communication between the core and peripherals, utilizing the CGDB
for data and XAB for addresses. All peripherals, except the COP/Watchdog Timer, and TOD
Timer run off the IPBus Clock. (The COP/Watchdog Timer runs at half of the system, or
processor frequency.) The IPBus is 40MHz while the oscillator frequency is 80MHz.
The IPBus Bridge translates the four-phase clock bus protocol of the 56800 core to the single
clock environment of the IPBus protocol used to communicate with the peripherals. All IPBus
transfers are completed in one core clock cycle.
Unaligned word,16-bit and byte, or long word 32-bit accesses are not supported on this IPBus.
The 56800 supports only 16-bit word transfers on word boundaries.
The IPBus Bridge also provides upper level address decoding and peripheral module enable
generation.
56F826/827 Overview, Rev. 3
Freescale Semiconductor19
Memory Modules
1.8 Memory Modules
Harvard architecture permits as many as three simultaneous accesses to program and Data
Memory.
•On-chip memory, depending on specific chip selected
— 56F826
— 31.5K words of Program Flash
— 512 words of Program RAM
— 2K words of Data Flash
— 4K words of Data RAM
— 2K words of Boot Flash
— 56F827
— 63K words of Program Flash
—1K words of Program RAM
— 4K words of Data Flash
— 4K words of Data RAM
1.8.1 Program Flash
•Single port memory is compatible with the pipelined program bus structure
•Split-gate cell, NOR type structure
•Single-cycle reads at 40MHz
•Intelligent word programming feature
•Memory is organized into a two row information block (equals 64 bytes) and main
memory block
•Pages are 256 words long
•Intelligent page erase and mass erase modes
•Can be programmed and erased under software control
•Optional interrupt on completion of intelligent program and erase functions
1.8.2 Program RAM
•Single port RAM is compatible with the pipelined program bus structure
•Single cycle reads at 40MHz
56F826/827 User Manual, Rev. 3
20 Freescale Semiconductor
56F826/827 Peripheral Blocks
1.8.3 Data Flash
•Single port memory is compatible with the pipelined Data Bus structure
•Muxing allows this memory to be read from PAB, XAB1 or XAB2 databases
•Split-gate cell, NOR type structure
•Single-cycle reads at 40MHz across the automotive temperature range
•Intelligent word programming feature
•Intelligent page erase and mass erase modes
•Can be programmed under software control in the user’s system
1.8.4 Data RAM
•Single read, dual read, or single-write memory compatible with the pipelined data bus
structure
•Single cycle reads/writes at 40MHz
1.9 56F826/827 Peripheral Blocks
The 56F826/827 provides the following peripheral blocks:
•One 10-channel, 12-bit, ADC (56F827 only)
•Up to eight programmable chip select signals available (56F827 only)
•One general-purpose Quad Timer totaling four pins
•One dedicated SPI, plus a second multiplexed with two Serial Communications Interfaces
(SCI0 and SCI1) totaling four GPIO pins
•Up to three SCIs with two pins, or six additional GPIO pins (56F827 only)
•Two SPIs, SPI0 and SPI1, with configurable four-pin port
•The 56F827 also has a third SPI (SPI2) available as four additional GPIO pins
•One SSI with configurable six-pin port, or six additional GPIO lines
•Sixteen dedicated and 48 (56F826), or 64 (56F827) multiplexed GPIO pins
•JTAG/OnCE for unobtrusive, processor speed-independent debugging
•Software-programmable, PLL-based frequency synthesizer for the core clock
56F826/827 Overview, Rev. 3
Freescale Semiconductor21
Peripheral Descriptions
•Fabricated in high-density CMOS with 5V tolerant, TTL-compatible digital inputs
•One TOD timer
1.10 Peripheral Descriptions
The IPBus Bridge converts Data Memory and interrupt interfaces to the IPBus-compliant
interface for peripherals. The IPBus Bridge permits communication between the core and
peripherals utilizing the CGDB for data and XAB for addresses.
Peripherals run off the IPBus clock at 40MHz. The IPBus clock frequency is half of the oscillator
frequency. Interrupt Priority Register (IPR) and BCR run at 80MHz while the COP/Watchdog
Timer runs at 40MHz.
1.10.1 External Memory Interface (EMI)
The 56F826/827 provide an External Memory Interface (EMI). This port provides a total of 36
pins—16 pins for an External Address Bus (EAB), 16 pins for an External Data Bus (EDB), and
four pins for bus control.
1.10.2 Programmable Chip Select
The primary function of the chip select is to provide the chip enable for external memory and
peripheral devices. All chip select pins are software programmable.
•56F826
— No chip select
•56F827
— Up to eight programmable chip select signal available
The programmable chip select provide the following features:
•Reduced system complexity
•Eight programmable active-low chip select
•Control for external boot device
•Programmable base addresses with programmable block sizes
•Maximum block size = 64K (16-bit) words
•Minimum block size = 0.5K (16-bit) words
•Wait states programmable through BCR register of DSP56800 core. Changing number of
wait states affects all chip select together.
•Each chip select can be assigned either program memory or Data Memory or both.
56F826/827 User Manual, Rev. 3
22 Freescale Semiconductor
Peripheral Descriptions
•All chip selects are assigned for both read/write.
•Each chip select can be individually enabled or disabled.
1.10.3 General-Purpose Input/Output Port (GPIO)
This port is configured to make it possible to generate interrupts when a transition is detected on
any of its lower eight pins.
•56F826
— 32 shared GPIO pins, 48 when multiplexed with other peripherals
— 16 dedicated GPIO pins
•56F827
— 48 shared GPIO pins, 64 when multiplexed with other peripherals
— 16 dedicated GPIO pins
— Each bit can be individually configured as an input or output
— Each bit can be configured as an interrupt input
1.10.4 Serial Peripheral Interface (SPI)
The SPI is an independent serial communications subsystem allowing 56F826/827
microcontrollers to communicate synchronously with peripheral devices such as LCD display
drivers, A/D subsystems, and MCU microprocessors. The SPI is also capable of interprocessor
communication in a multiple master system. The SPI system can be configured as either a master
or a slave device with high data rates. The SPI works in a demand-driven mode. In Master mode,
a transfer is initiated when data is written to the SPI Data register. In Slave mode, a transfer is
initiated by the reception of a clock signal.
•The 56F826 chip can be configured to have one or two SPIs; the 56F827 chip can be
configured to have up to three SPIs
•Full-duplex synchronous operation via four-wire interface
•Configurable for either master or slave operation
•Multiple slaves may be enabled using GPIO pins
•Double-buffered operation with separate Transmit and Receive registers
1.10.5 COP/Watchdog Timer and Modes of Operation Module
The COP module provides two separate functions:
56F826/827 Overview, Rev. 3
Freescale Semiconductor23
Peripheral Descriptions
1. A Watchdog Timer
2. An interrupt generator
These two functions monitor processor activity and provide an automatic reset signal if a failure
occurs. Both functions are contained in the same block because the input clock for both comes
from a common clock divider:
•12-bit counter to provide 4096 different timeout periods
•COP timebase is the CPU clock divided by 16384
•At 80MHz, minimum timeout period is 204.8
204.8
µs
µs, maximum is 839ms, with a resolution of
1.10.6 JTAG/OnCE Port
The JTAG/OnCE port introduces the 56F826/827 into a target system while retaining debug
control. The JTAG port provides board-level testing capability for scan-based emulation
compatible with the IEEE 1149.1a-1993 IEEE Standard Test Access Port and Boundary Scan
Architecture
Port (TAP) containing a 16-state controller.
The OnCE module interacts in a debug environment with the 56800 core and its peripherals
nonintrusively. Its capabilities include:
•Examining registers, memory, or on-chip peripherals
•Setting breakpoints in memory
•Stepping or tracing instructions
The OnCE module provides simple, inexpensive, and speed-independent access to the DSP56800
core for sophisticated debugging and economical system development. The JTAG/OnCE port
provides access to the OnCE module. Through the 56F80x to its target system, it retains debug
control without sacrificing other accessible on-chip resources.
specification defined by the JTAG. Five dedicated pins interface to a Test Access
1.10.7 Quad Timer Module (TMR)
•56F826
— Timer A with four pins
•56F827
— Timer A with four pins
Quad timer features:
•Four channels, independently programmable as input capture or output compare
56F826/827 User Manual, Rev. 3
24 Freescale Semiconductor
•Each channel has its own timebase
•Each of four channels can use any of four timer inputs
•Rising-edge, falling-edge, or any edge input capture trigger
•Set, clear, or toggle output capture action
•Programmable clock sources and frequencies, including external clock
•External synchronization input
1.10.8 Analog-to-Digital Converter (ADC)
•56F826
— No ADC
•56F827
— One 10 channel, 12-bit, ADC
1.10.9 Serial Communications Interface (SCI)
Peripheral Descriptions
•56F826 (Two SCI maximum)
— Two optional SCIs, each with two pins, or one SPI
•56F827 (Three SCI maximum)
— Two optional SCIs, each with two pins, or one SPI and
— One SCI with two pins (or two additional GPIO pins)
SCI features:
— Asynchronous operation
— Baud rate generation
— IR interface support
1.10.10 Synchronous Serial Interface (SSI)
The SSI is a full-duplex, serial port designed to allow the device to communicate with a variety of
serial devices, including industry-standard codecs, other hybrid controllers, microprocessors, and
peripherals to implement the Serial Peripheral Interface (SPI).
SSI features:
•SSI with configurable six-pin port (or six additional GPIO lines)
•Normal mode operation using frame sync
•Gated Clock mode operation requiring no frame sync
56F826/827 Overview, Rev. 3
Freescale Semiconductor25
Peripheral Descriptions
•Program options for frame sync and clock generation
•Programmable word length from eight to 16 bits
1.10.11 Time-of-Day (TOD)
•56F826/56F827
— Sequence counters to track seconds, minutes, hours, and days
— Works with crystal frequency of two to 4MHz
— Generates interrupt capability of pulling the part out of Sleep
— Capability to track time up to 179.5 years
— Configurable to generate an alarm at a designated time
1.10.12 Peripheral Interrupts
The peripherals on the 56F826/827 use the interrupt channels found on the 56800 core. Each
peripheral has its own interrupt vector, often more than one interrupt vector for each peripheral,
and can be selectively enabled or disabled via the IPR found on the 56800 core and the Priority
Level Registers (PLRs) found in the Interrupt Controller (ITCN). Chapter 5
details on interrupt vectors.
provides more
56F826/827 User Manual, Rev. 3
26 Freescale Semiconductor
Chapter 2
Pin Descriptions
Pin Descriptions, Rev. 3
Freescale Semiconductor1
56F826/827 User Manual, Rev. 3
2 Freescale Semiconductor
Introduction
2.1 Introduction
The input and output signals of the 56F826/827 are organized into functional groups illustrated in
Table 2-1. Each row of Table 2-2through Table 2-17 describes the signals present on an
individual pin. The 56F826/827 have SCI0 and SCI1 pins labeled TXD0, TXD1, RXD0 and
RXD1.
Note:Some pins can carry more than one signal, depending on chip configuration.
Table 2-1. 56F826/827 Functional Group Pin Allocations
826
Functional Group
Number
of Pins
Power (V
Ground (V
V
PP
, V
DD
DDIO, VDDA or VDDA_ADC
, V
SS
SSIO, VSSA, orVSSA_ADC
)(3,4,1,0)(3,5,1,1)Table 2-2
)(3,4,1,0)(3,5,1,1)Table 2-3
-1 Table 2-4
PLL and Clock33Table 2-5
Address Bus
Data Bus1
1
1616Table 2-6
1616Table 2-7
Bus Control44Table 2-8
Quad Timer Module Ports
1
44Table 2-9
JTAG/On-Chip Emulation (OnCE)66Table 2-10
Dedicated General Purpose Input/Output1616Table 2-11
Synchronous Serial Interface (SSI) Port
1
66 Table 2-12
827
Number
of Pins
Detailed Description
Serial Peripheral Interface (SPI) Port
1
Serial Communications Interface (SCI) Ports
Serial Communications Interface (SCI) Ports
1
2
44 Table 2-13
-2 Table 2-14
44 Table 2-15
ADC Port-15Table 2-16
Programmable Chip Select (PCS
3
)
-6 Table 2-17
Interrupt and Program Control55Table 2-18
1.Alternately, GPIO pins (56F826 SCIs cannot be used as GPIO)
2.Alternately, two SCIs can be used as an SPI
3.In addition, two Bus Control pins can be programmed as PCS [0-1]
Pin Descriptions, Rev. 3
Freescale Semiconductor3
Introduction
2.5V Power
3.3V Analog Power
3.3V Power
Ground
Analog Ground
Ground
PLL
and
Clock
External
Address Bus or
GPIO
External Data
Bus
External
Bus Control
V
DD
V
DDA
V
DDIO
V
SS
V
SSA
V
SSIO
EXTAL
XTAL (CLOCKIN)
CLKO
A0-A7 (GPIOE)
A8-A15 (GPIOA)
D0–D15
PS
DS
WR
RD
3
1
4
4*
1
4
1
1
1
8
8
16
1
1
1
1
56F826
GPIOB0–7
8
GPIOD0–7
8
SRD (GPIOC0)
1
SRFS (GPIOC1)
1
SRCK (GPIOC2)
1
STD (GPIOC3)
1
STFS (GPIOC4)
1
STCK (GPIOC5)
1
SCLK (GPIOF4)
1
MOSI (GPIOF5)
1
MISO (GPIOF6)
1
SS
1
TXD0 (SCLK0)
1
RXD0 (MOSI0)
1
TXD1 (MISO0)
1
RXD1 (SS0
1
Dedicated
GPIO
SSI Port
or GPIO
SPI1 Port
or GPIO
(GPIOF7)
SCI0, SCI1
Port or
SPI0 Port
)
Quad Timer A
or GPIO
JTAG/OnCE™
Port
TA0 (GPIOF0)
TA1 (GPIOF1)
TA2 (GPIOF2)
TA3 (GPIOF3)
TCK
TMS
TDI
TDO
TRST
DE
1
1
1
1
1
1
1
1
1
1
*Includes TCS pin, which is reserved for factory use and is tied toV
Figure 2-1. 56F826 Functional Group Pin Allocations
1.Alternate pin functionality is shown in parentheses
56F826/827 User Manual, Rev. 3
IRQA
1
IRQB
1
RESET
1
EXTBOOT
1
SS
Interrupt/
Program
Control
1
4 Freescale Semiconductor
Introduction
2.5V Power
3.3V Analog Power
3.3V Analog Power
3.3V Power
Ground
Analog Ground
Analog Ground
Other
Supply Port
PLL
and
Clock
External
Address Bus or
GPIO
External Data
Bus or GPIO
External
Bus Control
Quad Timer A
or GPIO
JTAG/OnCE™
Port
V
DD
V
DDA
V
DDA_ADC
V
DDIO
V
V
SSA
V
SSA_ADC
V
SSIO
V
EXTAL
XTAL (CLOCKIN)
CLKO
A0-A15(GPIOA0–15)
D0–D15(GPIOG0-15)
PS
(PCS0)
DS
(PCS1)
WR
RD
TA0 (GPIOF0)
TA1 (GPIOF1)
TA2 (GPIOF2)
TA3 (GPIOF3)
TCK
TMS
TDI
TDO
TRST
DE
SS
PP
3
1
1
5
4*
1
1
5
1
1
1
1
16
16
1
1
1
1
1
1
1
1
1
1
1
1
1
1
56F827
8
8
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
6
10
1
1
1
1
1
1
1
1
1
GPIOB0–7
GPIOD0–7
SRD (GPIOC0)
SRFS (GPIOC1)
SRCK (GPIOC2)
STD (GPIOC3)
STFS (GPIOC4)
STCK (GPIOC5)
SCLK (GPIOF4)
MOSI (GPIOF5)
MISO (GPIOF6)
SS (GPIOF7)
TXD0 (SCLK0)
RXD0 (MOSI0)
TXD1 (MISO0)
RXD1 (SS0
)
TXD2 (GPIOC6)
RXD2 (GPIOC7)
2-7
PCS
ANA0–9
VREFN
VREFP
VREFMID
VREFLO
VREFHI
IRQA
IRQB
RESET
EXTBOOT
Dedicated
GPIO
SSI Port
or GPIO
SPI1 Port
or GPIO
SCI0,SCI1
Port or
SPI0 Port
SCI2 Port
or GPIO
Programmable
Chip Select
ADC
Port
Interrupt/
Program
Control
*Includes TCS pin, which is reserved for factory use and is tied toVSS
Figure 2-2. 56F827 Functional Group Pin Allocations
1
1.Alternate pin functionality is shown in parentheses
Pin Descriptions, Rev. 3
Freescale Semiconductor5
Power and Ground Signals
2.2 Power and Ground Signals
Table 2-2. Power Inputs
No. of
Pins
826827
Signal NameSignal Description
33V
DD
Power—These pins provide power to the core of the chip, are generally
connected to a 2.5V supply.
11V
DDA
Analog Power—This pin is a dedicated power pin for the analog portion of the
chip and should be connected to a low-noise 3.3V supply.
01 V
DDA_ADC
Analog Power—This pin is a dedicated power pin for the analog portion of the
ADC module and should be connected to a low-noise 3.3V supply.
45V
DDIO
Power In/Out—These pins provide power to the I/O structures of the chip, and
are generally connected to a 3.3V supply.
Note: Analog pins must be connected to a power source.
Table 2-3. Grounds
No. of
Pins
826827
33VSS GND—These pins provide grounding for the internal structures of the chip and
11V
Signal Name Signal Description
SSA
should all be attached to V
Analog Ground—This pin supplies an analog ground.
SS.
—1V
SSA_ADC
Analog Ground—This pin is a dedicated ground pin for the analog portion of the
ADC module.
45V
SSIO
11TCSTCS—This pin is reserved for factory use. It must be tied to V
GND In/Out—These pins provide grounding for the I/O ring on the chip. All
should be attached to V
In block diagrams, this pin is considered an additional V
SS.
SS
for normal use.
SS
.
Signal Type is Input/Output (Schmitt).
56F826/827 User Manual, Rev. 3
6 Freescale Semiconductor
No. of
Pins
826827
Clock and Phase Lock Loop Signals
Table 2-4. Other Supply Port
Signal NameSignal Description
—1 V
PP
VPP—This pin should be left unconnected as an open circuit for normal
functionality.
2.3 Clock and Phase Lock Loop Signals
Table 2-5. PLL and Clock
No. of
Pins
826827
11 EXTALInputInputExternal Crystal Oscillator Input—This input should be
11 XTAL
Signal
Name
(CLOCKIN)
Signal
Type
Input
Input
State
During
Reset
Chip-
driven
Input
Signal Description
connected to a 4MHz external crystal or ceramic resonator. For
additional information, please refer to section 4.5.2.
Crystal Oscillator Output—This output connects the internal
crystal oscillator output to an external crystal. If an external
clock source other than a crystal oscillator is used, XTAL must
be used as the input and EXTAL connected to V
additional information, please refer to section 4.5.1.
External Clock Input—This input should be asserted when
using an external clock or ceramic resonator.
DDA
/2. For
11 CLKOOutputChip-
driven
Freescale Semiconductor7
Clock Output—This pin outputs a buffered clock signal. By
programming the CLKO Select Register (CLKOSR), the user
can select between outputting a version of the signal applied to
XTAL and a version of the device master clock at the output of
the PLL. The clock frequency on this pin can be disabled by
programming the CLKO Select Register (CLKOSR).
Pin Descriptions, Rev. 3
Address, Data, and Bus Control Signals
2.4 Address, Data, and Bus Control Signals
Table 2-6. Address Bus Signals
No. of
Pins
826827
8— A0–A7
8—A8-15
—16A0-15
Signal
Name
(GPIOE0-7)
(GPIOA8-15)
(GPIOA0-15)
Signal
Type
Output
Input/
Output
Output
Input/
Output
Output
Input/
Output
State
During
Reset
Tri-statedAddress Bus—A0–A7 specify the address for external program
or data memory accesses.
Port E GPIO—These eight General Purpose I/O (GPIO) pins
can be individulally programmed as input or output pins.
After reset, the default state is Address Bus.
Tri-statedAddressd Bus—A8-A15 specify the address for external
program or data memory accesses.
Port A GPIO—These eight General Purpose I/O (GPIO) pins
can be individulally programmed as input or output pins.
After reset, the default state is Address Bus.
Tri-statedAddress Bus—A0-A15 specify the address for external
program or data memory accesses.
Port A GPIO—These 16 General Purpose I/O (GPIO) pins can
be individulally programmed as input or output pins.
Signal Description
No. of
Pins
826827
16—D0–D15Input/
—16 D0–D15
Signal
Name
(GPIOG0-15)
Signal
Type
Output
Input/
Output
Input/
Output
After reset, the default state is Address Bus.
Table 2-7. Data Bus Signals
State
During
Reset
Tri-statedData Bus—D0–D15 specify the data for external Program or
Data memory accesses. D0–D15 are tri-stated when the external
bus is inactive.
Tri-statedData Bus—D0-D15 specify the address for external Program
or Data memory accesses.
Port G GPIO—These 16 General Purpose I/O (GPIO) pins
can be individually programmed as input or output pins.
After reset, the default state is Address Bus.
Signal Description
56F826/827 User Manual, Rev. 3
8 Freescale Semiconductor
Table 2-8. Bus Control Signals
Address, Data, and Bus Control Signals
No. of
Pins
826 827
1— PS
—1PS
1— DSOutputTri-stated
—1DS
11 WROutputTri-stated
Signal
Name
Signal
Type
OutputTri-stated
OutputTri-stated
OutputTri-stated
State
During
Reset
Signal Description
Program Memory Select—PS
program memory access.
Program Memory Select—PS
program memory access. This pin can also be programmed as
a programmable chip select.
Data Memory Select—DS
memory access.
Data Memory Select—DS
memory access. This pin can also be programmed as a
programmable chip select.
Write Enable—WR
cycles. When WR
outputs and the device puts data on the bus. When WR
deasserted high, the external data is latched inside the external
device. When WR
DS
pins. WR can be connected directly to the WE pin of a
Static RAM.
is asserted during external memory write
is asserted low, pins D0–D15 become
is asserted, it qualifies the A0–A15, PS, and
is asserted low for external
is asserted low for external
is asserted low for external data
is asserted low for external Data
is
11 RD
OutputTri-stated
Read Enable—RD
cycles. When RD
and an external device is enabled onto the device data bus.
When RD is deasserted high, the external data is latched inside
the device. When RD
and DS
Static RAM or ROM.
pins. RD can be connected directly to the OE pin of a
is asserted during external memory read
is asserted low, pins D0–D15 become inputs
is asserted, it qualifies the A0–A15, PS,
Pin Descriptions, Rev. 3
Freescale Semiconductor9
Quad Timer Module Signals
2.5 Quad Timer Module Signals
Table 2-9. Quad Timer Module Signals
No. of
Pins
826827
44 TA0-3
Signal
Name
(GPIOF0-
GPIOF3)
Signal
Type
Input/
Output
Input/
Output
State
During
Reset
Input
Input
2.6 JTAG/OnCE Port Signals
Table 2-10. JTAG/OnCE Port Signals
No. of Pins
826827
11 TCKInput
Signal
Name
Signal
Type
(Schmitt)
(Input/
Output)
State During
Reset
Input, pulled
low internally
Signal Description
–3—Timer A Channels 0, 1, 2, and 3
TA0
Port F GPIO—These four General Purpose I/O (GPIO) pins
can be individually programmed as input or output.
After reset, the default state is Quad Timer.
Signal Description
Test Clock Input—This input pin provides a gated clock to
synchronize the test logic and shift serial data to the JTAG/OnCE
port. The pin is connected internally to a pull-down resistor.
11 TMSInput
(Schmitt)
(Input/
Output)
11 TDIInput
(Schmitt)
(Input/
Output)
11 TDOOutput
(Schmitt)
(Input/
Output)
Input, pulled
high
internally
Input, pulled
high
internally
Tri-statedTest Data Output—This tri-statable output pin provides a serial
Test Mode Select Input—This input pin is used to sequence the
JTAG TAP controller’s state machine. It is sampled on the rising
edge of TCK and has an on-chip pull-up resistor.
Test Data Input—This input pin provides a serial input data
stream to the JTAG/OnCE port. It is sampled on the rising edge
of TCK and has an on-chip pull-up resistor.
output data stream from the JTAG/OnCE port. It is driven in the
shift-IR and shift-DR controller states, and changes on the falling
edge of TCK.
56F826/827 User Manual, Rev. 3
10 Freescale Semiconductor
Table 2-10. JTAG/OnCE Port Signals (Continued)
Synchronous Serial Interface
No. of Pins
826827
11TRSTInput
11 DE
Signal
Name
Signal
Type
(Schmitt)
(Input/
Ouput)
OutputOutputDebug Event—DE provides a low pulse on recognized debug
State During
Reset
Input, pulled
high
internally
Test Reset—As an input, a low signal on this pin provides a reset
signal to the JTAG TAP controller. To ensure complete hardware
reset, TRST should be asserted whenever RESET is asserted.
The only exception occurs in a debugging environment, since the
OnCE/JTAG module is under the control of the debugger. In this
case it is not necessary to assert TRST
Outside of a debugging environment TRST
permanently asserted by grounding the signal, thus disabling the
OnCE/JTAG module on the device.
events.
2.7 Synchronous Serial Interface
Table 2-11. Dedicated General Purpose Input/Output (GPIO) Signals
No. of
Pins
826827
Signal
Name
Signal
Type
State
During
Reset
Signal Description
when asserting RESET.
should be
Signal Description
88GPIOB0–
GPIOB7
88GPIOD0–
GPIOD7
Input/
Output
Input/
Output
InputPort B GPIO—These eight dedicated General Purpose I/O
(GPIO) pins can be individually programmed as input or output
pins.
After reset, the default state is GPIO input.
InputPort D GPIO—These eight dedicated General Purpose I/O
(GPIO) pins can be individually programmed as input or output
pins.
After reset, the default state is GPIO input.
Pin Descriptions, Rev. 3
Freescale Semiconductor11
Synchronous Serial Interface
Table 2-12. Synchronous Serial Interface (SSI) Signals
No. of
Pins
826827
11 SRD
11 SRFS
11 SRCK
Signal
Name
(GPIOC0)
(GPIOC1)
Signal
Type
Input/
Output
Input/
Output
Input/
Output
Input/
Output
Input/
Output
State
During
Reset
Input
Input
Input
Input
Input
Signal Description
SSI Receive Data (SRD)—This input pin receives serial data
and transfers the data to the SSI Receive Shift Receiver.
Port C GPIO—This is a General Purpose I/O (GPIO) pin with
the capability of being individually programmed as input or
output.
After reset, the default state is GPIO input.
SSI Serial Receive Frame Sync (SRFS)—This bidirectional
pin is used by the receive section of the SSI as frame sync I/O
or flag I/O. The STFS can be used only by the receiver. It is
used to synchronize data transfer and can be an input or an
output.
Port C GPIO—This is a General Purpose I/O (GPIO) pin with
the capability of being individually programmed as input or
output.
After reset, the default state is GPIO input.
SSI Serial Receive Clock (SRCK)—This bidirectional pin
provides the serial bit rate clock for the Receive section of the
SSI. The clock signal can be continuous or gated and can be
used by both the transmitter and receiver in synchronous
mode.
(GPIOC2)
11 STD
(GPIOC3)
Input/
Output
Output
Input/
Output
Input
Input
Input
56F826/827 User Manual, Rev. 3
Port C GPIO—This is a General Purpose I/O (GPIO) pin with
the capability of being individually programmed as input or
output.
After reset, the default state is GPIO input.
SSI Transmit Data (STD)—This output pin transmits serial
data from the SSI Transmitter Shift Register.
Port C GPIO—This is a General Purpose I/O (GPIO) pin with
the capability of being individually programmed as input or
output.
After reset, the default state is GPIO input.
12 Freescale Semiconductor
Synchronous Serial Interface
Table 2-12. Synchronous Serial Interface (SSI) Signals (Continued)
No. of
Pins
826827
11 STFS
11 STCK
Signal
Name
(GPIOC4)
(GPIOC5)
Signal
Type
Input
Input/
Output
Input/
Output
Input/
Output
State
During
Reset
Input
Input
Input
Input
Signal Description
SSI Serial Transmit Frame Sync (STFS)—This bidirectional
pin is used by the Transmit section of the SSI as frame sync I/O
or flag I/O. The STFS can be used by both the transmitter and
receiver in synchronous mode. It is used to synchronize data
transfer and can be an input or output pin.
Port C GPIO—This is a General Purpose I/O (GPIO) pin with
the capability of being individually programmed as input or
output.
After reset, the default state is GPIO input.
SSI Serial Transmit Clock (STCK)—This bidirectional pin
provides the serial bit rate clock for the transmit section of the
SSI. The clock signal can be continuous or gated. It can be
used by both the transmitter and receiver in synchronous
mode.
Port C GPIO—This is a General Purpose I/O (GPIO) pin with
the capability of being individually programmed as input or
output.
After reset, the default state is GPIO input.
Pin Descriptions, Rev. 3
Freescale Semiconductor13
Serial Peripheral Interface (SPI) Signals
2.8 Serial Peripheral Interface (SPI) Signals
Table 2-13. Serial Peripheral Interface (SPI1) Signals
No. of
Pins
826827
11 SCLK
11 MOSI
11 MISO
Signal
Name
(GPIOF4)
(GPIOF5)
Signal
Type
Input/
Output
Input/
Output
Input/
Output
Input/
Output
Input/
Output
State
During
Reset
Input
Input
Input
Input
Input
Signal Description
SPI Serial Clock—In master mode, this pin serves as an
output, clocking slaved listeners. In slave mode, this pin serves
as the data clock input.
Port F GPIO—This General Purpose I/O (GPIO) pin can be
individually programmed as input or output.
After reset, the default state is SCLK.
SPI Master Out/Slave In (MOSI)—This serial data pin is an
output from a master device and an input to a slave device. The
master device places data on the MOSI line a half-cycle before
the clock edge that the slave device uses to latch the data.
Port F GPIO—This General Purpose I/O (GPIO) pin can be
individually programmed as input or output.
SPI Master In/Slave Out (MISO)—This serial data pin is an
input to a master device and an output from a slave device. The
MISO line of a slave device is placed in the high-impedance
state if the slave device is not selected.
(GPIOF6)
11 SS
GPIOF7
Input/
Output
Inputt/
Output
Input/
Output
Input
Input
Input
Port F GPIO—This General Purpose I/O (GPIO) pin can be
individually programmed as input or output.
After reset, the default state is MISO.
SPI Slave Select—In master mode, this pin is used to arbitrate
multiple masters. In slave mode, this pin is used to select the
slave.
Port F GPIO—This General Purpose I/O (GPIO) pin can be
individually programmed as input or output.
After reset, the default state is SS
.
56F826/827 User Manual, Rev. 3
14 Freescale Semiconductor
Serial Communications Interface (SCI) or General Purpose Input/Output (GPIO) Signals (56F827 only)
2.9 Serial Communications Interface (SCI)
or Serial Peripheral Interface (SPI0) Signals
Table 2-14. Serial Communications Interface (SCI0 & SCI1) Signals
No. of
Pins
826827
11 TXD0
11RXD0
11 TXD1
Signal
Name
(SCLK0)
(MOSI0)
(MISO0)
Signal
Type
Output
Input/
Output
Input
Input/
Output
Output
Input/
Output
State
During
Reset
Input
Input
Input
Input
Input
Input
Signal Description
Transmit Data (TXD0)—transmit data output
SPI Serial Clock—In master mode, this pin serves as an
output, clocking slaved listeners. In slave mode, this pin serves
as the data clock input.
After reset, the default state is SCI output.
Receive Data (RXD0)— receive data input.
SPI Master Out/Slave In—This serial data pin is an output
from a master device, and an input to a slave device. The
master device places data on the MOSI line one half-cycle
before the clock edge the slave device uses to latch the data.
After reset, the default state is SCI input.
Transmit Data (TXD1)—transmit data output.
SPI Master In/Slave Out—This serial data pin is an input to a
master device and an output from a slave device. The MISO
line of a slave device is placed in the high-impedance state if
the slave device is not selected.
After reset, the default state is SCI output.
11RXD1
(SS0
)
Input
(Schmitt)
Input
Input
Input
Receive Data (RXD1)— receive data input
SPI Slave Select—In master mode, this pin is used to arbitrate
multiple masters. In slave mode, this pin is used to select the
slave.
After reset, the default state is SCI input.
2.10 Serial Communications Interface (SCI) or
General Purpose Input/Output (GPIO) Signals
Tri-statedProgrammable Chip Select - PCS2-7 are asserted low for
external peripheral chip select
Signal Description
Pin Descriptions, Rev. 3
Freescale Semiconductor17
Interrupt and Program Control Signals
2.13 Interrupt and Program Control Signals
Table 2-18. Interrupt and Program Control Signals
No. of Pins
826827
11 IRQA
11 IRQBInput
11RESET
Signal
Name
Signal
(Schmitt)
(Schmitt)
(Schmitt)
Type
Input
Input
State
During
Reset
InputExternal Interrupt Request A—The IRQA input is a
synchronized external interrupt request indicating an external
device is requesting service. It can be programmed to be
level-sensitive or negative-edge-triggered. If level-sensitive
triggering is selected, an external pull-up resistor is required for
wired-OR operation.
If the processor is in the Stop state and IRQA
processor will exit the Stop state.
InputExternal Interrupt Request B—The IRQB input is an external
interrupt request indicating an external device is requesting
service. It can be programmed to be level-sensitive or
negative-edge-triggered. If level-sensitive triggering is selected,
an external pull-up resistor is required for wired-OR operation.
InputReset—This input is a direct hardware reset on the processor.
When RESET
in the Reset state. A Schmitt trigger input is used for noise
immunity. When the RESET pin is deasserted, the initial chip
operating mode is latched from the external boot pin. The internal
reset signal will be deasserted synchronous with the internal
clocks, after a fixed number of internal clocks.
is asserted low, the device is initialized and placed
Signal Description
is asserted, the
11EXTBOOTInput
(Schmitt)
To ensure complete hardware reset, RESET and TRST should
be asserted together. The only exception occurs in a debugging
environment when a hardware device reset is required and it is
necessary not to reset the OnCE/JTAG module. In this case,
assert RESET, but do not assert TRST.
InputExternal Boot—This input is tied to V
from off-chip memory. Otherwise, it is tied to ground.
to force device to boot
DD
56F826/827 User Manual, Rev. 3
18 Freescale Semiconductor
Chapter 3
Memory and Operating Modes
Memory and Operating Modes, Rev. 3
Freescale Semiconductor1
56F826/827 User Manual, Rev. 3
2 Freescale Semiconductor
The 56F826/827 Memory Map Description
3.1 Introduction
Devices 56F826 and 56F827 are members of the 56F800 Family core-based hybrid controllers.
Both combine the processing power and the functionality of a microcontroller with a flexible set
of peripherals on a single chip. Because of their low cost, configuration flexibility and compact
program code, both chips are well suited for many applications.
3.2 The 56F826/827 Memory Map Description
The 56F826/827 uses two independent memory spaces:
1. Data
2. Program
Both memory spaces use Harvard-style architecture. RAM and Flash memory are used for the
on-chip data and on-chip program memories.
Table 3-1. Chip Memory Configurations
On-Chip Memory56F82656F827
Program Flash (PFLASH)31.5K x 1663K x 16
Data Flash (XFLASH)2K x 164K x 16
Program RAM (PRAM)512 x 161K x 16
Data RAM (XRAM)4K x 16
Program Boot Flash2K x 16
—
On-chip memory sizes for each of the parts are summarized in Table 3-1. Both Program and Data
Memories can be expanded off-chip. The Program Memory map is located in Table 3-2. The
Operating Mode control bits (MA and MB) in the Operating Mode Register (OMR), coupled
with the BOOTMAP
bit in the SYS_CNTL register, control the Program Memory Map and select
the vector address. For additional information about the SYS_CNTL register, please see
Figure 15-8 and Section 15.8 in its entirety.
Memory and Operating Modes, Rev. 3
Freescale Semiconductor3
The 56F826/827 Memory Map Description
Table 3-2. Program Memory Map for 56F826/827
Begin/
End Address
0000
0003
0004
7BFF
7C00
7DFF
7E00
7FFF
8000
87FF
8800
FFFF
In all modes except Mode 3, the first four logical addresses of the 56F826 mirror the first four physical addresses of boot
flash, which provides interrupt vectors for hardware reset and COP (Watchdog Timer) reset. This is largely an academic
point in Mode 0B, as any reset or COP reset changes the memory map back to Mode 0A.
Mode 0AMode 0B
826827826827
BFlash 4PFlash
31K
PFlash
31.5K-4
PRAM
1K
PRAM
0.5K
BFlash 2KPFlash
32K
Reserved
PFlash
31.5K
P. RAM
0.5K
External
Program
Memory
32K
PFlash
31K
PRAM
1K
External
Program
Memory
32K
Mode 3
External
Program
Memory
64K
Note:Modes 0A and 0B are supported in this group of devices. For more information about
other modes, please see Section 3.7.2and Section 3.7.3.
56F826/827 User Manual, Rev. 3
4 Freescale Semiconductor
Table 3-3. Data Memory Map for 56F826/827
Data Memory
Begin/End
Address
0000
0FFF
1000
13FF
1400
17FF
1800
1FFF
2000
2FFF
3000
3FFF
4000
FF7F
FF80
FFFF
EX = 0
826827
XRAM
4K
On-Chip
Peripheral
Registers
Reserved
XFlash
2K
External Data
Memory
56K -128
On-Chip Core Configuration Registers
XRAM
4K
On-Chip
Peripheral
Registers
Reserved
XFlash
4K
Reserved
External Data
Memory
48K -128
EX = 1
826 and 827
External Data
Memory
64K
When EX = 1, all 64K address space is external, unless I/O short addressing is used. If I/O short addressing is used, then
the on-chip core configuration registers become available.
Note:Table 3-3 summarizes the Data Memory map. The External X memory control bit
(EX) in the Operating Mode Register (OMR) controls the Data Memory map.
3.3 Data Memory
The 56F826 part has 4K words of on-chip Data RAM and 2K words of Data Flash. The 56F827
also has 4K words of on-chip Data RAM; and 4K words of Data Flash.
The 128-Data Memory addresses at the top of the memory map ($FF80 to $FFFF) are reserved
for 56800 on-chip core configuration registers. When EX=0, the internal Data Memory map is
enabled. When EX=1, the segment (hole) does not exist and may be accessed like all other
external data memory.
Note:For 56800 core instructions performing two reads from the data memory in a single
instruction, the second access using the R3 pointer always occurs to on-chip memory,
Memory and Operating Modes, Rev. 3
Freescale Semiconductor5
Data Memory
regardless how the OMR’s EX bit is programmed. For example, the second read of the
following code sequence accesses on-chip X data memory X:$0:
MOVE #$0000,R3
NOP
MOVE X:(R1)+,Y0 X:(R3)+,X0
Data Memory may be expanded off-chip for both the 56F826 and 56F827. When the OMR EX
bit is programmed with 1, there are 65,536 addressable off-chip data memory locations.
When the EX bit is set, the on-chip core configuration registers may only be accessed using the
I/O Short Addressing mode.
The External Data Memory bus access time is controlled by four bits of the Bus Control Register
(BCR) located at X:$FFF9. This register is illustrated in Figure .
The External X bit (EX, bit three) of the OMR in the 56800 core, determines the mapping of the
Data Memory, illustrated in Table 3-3. Setting the EX bit to 1 completely disables the on-chip
data memory and enables a full 64K External Data Memory map.
Note:There are two exceptions to this rule.
1. The first exception is if a MOVE, TSTW, or BIT FIELD instruction is used with the I/O
Short Addressing mode, the EX bit is ignored. This allows the on-chip core control
registers to be accessed when the EX bit is set. Access time to external memory is always
controlled by the BCR register or it wouldn’t be possible to read/write to non-zero wait
state external memory when EX = 0.
2. The second exception is for instructions performing two reads from the Data Memory in a
single cycle. The EX bit is ignored during the second access using the R3 pointer.
A complete description of the Operating Mode Register (OMR) is provided in DSP56800 Family
Manual.
3.3.1 Bus Control Register (BCR)
BCR–X:$FFF9
Read000000
Write
Reset0000000011001100
1514131211109876543210
0
DRV
WAIT STATE FIELD for
EXTERNAL X-MEMORY
WAIT STATE Field for
EXTERNAL P-MEMORY
Figure 3-1. Bus Control Register (BCR)
See Programmer’s Sheet on Appendix page C-19
56F826/827 User Manual, Rev. 3
6 Freescale Semiconductor
Data Memory
3.3.1.1 Reserved—Bits 15–10
This bit field is reserved or not implemented. It is read/written as 0.
3.3.1.2 Drive (DRV)—Bit 9
The Drive Control bit is used to specify what occurs on the external memory port pins when no
external access is performed—whether the pins remain driven or are tri-stated. The Drive (DRV)
bit is cleared on hardware reset. Please see Table 3-4 and 3-5.
Table 3-4. Port A Operation with DRV Bit = 0
ModePins
A0
–A15
Normal Mode, External AccessDrivenDrivenDriven
Normal Mode, Internal AccessTri-StatedTri-StatedTri-Stated
Stop ModeTri-StatedTri-StatedTri-Stated
Wait ModeTri-StatedTri-StatedTri-Stated
Reset ModeTri-StatedPulled High InternallyTri-Stated
, DS, RD, WR
PS
D0–D15
Table 3-5. Port A Operation with DRV = 1
ModePins
–A15
A0
Normal Mode, External AccessDrivenDrivenDriven
Normal Mode, Internal AccessDrivenDrivenTri-Stated
Stop ModeDrivenDrivenTri-Stated
Wait ModeDrivenDrivenTri-Stated
Reset ModeTri-statedPulled high internallyTri-stated
, DS, RD, WR
PS
3.3.1.3 Reserved—Bit 8
This bit field is reserved or not implemented. It is read/written as 0.
D0–D15
Memory and Operating Modes, Rev. 3
Freescale Semiconductor7
Data Memory
3.3.1.4 Wait State Data Memory (WSX[3:0])—Bits 7–4
These bits provide programming of the wait states for External Data Memory. The bottom two
bits, five and four, are hardcoded to zero. The WSX[3:0] bits are programmed as illustrated in
Table 3-6.
Table 3-6. Programming WSX[3:0] Bits for Wait States
Bit StringHex Value
0000$00
0100$44
1000$88
1100$C12
All OthersIllegal
Number of Wait
States
These bits allow programming of the wait states for external program memory. The bottom two
bits, one and zero, are hardcoded to zero. The WSP[3:0] bits are programmed as illustrated in
Table 3-7.
Table 3-7. Programming WSP [3:0] Bits for Wait States
Bit StringHex Value
0000$00
0100$44
1000$88
1100$C12
All OthersIllegal
Number of Wait
States
3.3.2 Operating Mode Register (OMR)
Bits
Read
Write
Reset00000000000000
* MA and MB are latched from the EXTBOOT pin on reset.
8 Freescale Semiconductor
1514131211109876543210
000000
NL
CC
0
SDRSAEX
0
MBMA
**
Figure 3-2. Operating Mode Register (OMR)
See Programmer’s Sheet on Appendix page C-20
56F826/827 User Manual, Rev. 3
Data Memory
3.3.2.1 Nested Looping (NL)—Bit 15
The Nested Looping (NL) bit displays the status of program DO looping and the Hardware Stack
(HWS). When the NL bit is set, it indicates the program is currently in a nested DO loop. That is,
two DO loops are active. When the NL bit is cleared, it indicates the program is currently not in a
nested DO loop. There may be a single active DO loop or no DO loop active. This bit is
necessary for saving and restoring the contents of the hardware stack. REP looping does not
affect this bit.
It is important to never put the processor in the reserved combination as specified in Table 3-8.
This can be avoided by ensuring the Loop Flag (LF) bit is never cleared when the NL bit is set.
The NL bit is cleared on processor reset.
Table 3-8. Looping Status
NL (In OMR)LF (in SR)DO Loop Status
00No DO loops active
01Single DO loop active
10
11Two DO loops active
Reserved
If both the NL and LF bits are set, that is: two DO loops are active and a DO instruction is
executed, a Hardware Stack Overflow Interrupt occurs. The overflow occurs because space in the
Hardware Stack was used, therefore not supporting a third DO loop.
The NL bit is also affected by any accesses to the HWS. Any move instruction writing to the
HWS register should include copying the old contents of the LF bit into the NL bit. Before
clearing the NL bit, its value should be moved into the LF bit (NL
→LF, 0 → NL). For more detail
on the interaction between NL, LF and HWS, please see Section 5.1.7, Hardware Stack, in the
DSP56800 Family Manual and the DO and ENDDO instructions described in Appendix A,
Instruction Set Details, in the DSP56800 Family Manual.
3.3.2.2 Reserved—Bits 14–9
This bit field is reserved or not implemented. It is a read/write field using 0.
3.3.2.3 Condition Codes (CC)—Bit 8
The Condition Code (CC) bit is set if the code is generated using a 36-bit result from the
Multiplier/Accumulator (MAC) array, or a 32-bit result. When the CC bit is set, the C, N, V, and
Z condition codes are generated based on bit 31of the Data Arithmetic Logic Unit (Data ALU)
result. When cleared, the C, N, V, and Z condition codes are generated based on bit 35 of the data
ALU result. The generation of the L, E, and U condition codes is not affected by the CC bit. The
CC bit is cleared by the processor reset.
Memory and Operating Modes, Rev. 3
Freescale Semiconductor9
Data Memory
Note:The unsigned condition tests for branching or jumping (HI, HS, LO, or LS) can be
used only when the condition codes are generated with the CC bit set. Otherwise, the
chip does not generate the unsigned conditions correctly.
For more detail on the effects of the CC bit on condition codes generated by the data ALU
operators, see Section 3.6, Condition Code Generation, in the DSP56800 Family Manual.
3.3.2.4 Reserved—Bit 7
This bit field is reserved or not implemented. It is a read/write field using 0.
3.3.2.5 Stop Delay (SD)—Bit 6
The Stop Delay (SD) bit selects the delay required by the device to exit the Stop mode. When set,
the processor quickly exits from Stop mode. When the SD bit is cleared, the processor exits
slowly from Stop mode. The SD bit is cleared by processor reset.
3.3.2.6 Rounding (R)—Bit 5
The Rounding (R) bit selects between two’s-complement rounding and convergent rounding.
When the R bit is set, two’s-complement rounding is used. Rounding is always up. Cleared, the R
bit uses convergent rounding. The R bit is cleared by processor reset.
3.3.2.7 Saturation (SA)—Bit 4
The Saturation (SA) bit enables automatic saturation on 32-bit arithmetic results, providing a
user-enabled Saturation mode for those algorithms not able to exploit the four extra bits of A and
B accumulators. When the SA bit is set the accumulators behave as output as if they were only 32
bits wide. The SA bit is cleared by processor reset.
When the SA bit is set automatic saturation occurs at the output of the MAC unit for basic
arithmetic operations. Those basic arithmetic operations are of course, multiplication, addition,
and so on. The saturation is performed by a special saturation circuit inside the MAC unit.
The saturation logic operates by checking three bits of the 36-bit result out of the MAC
unit—exp[3], exp[0], and msp[15]. (The MSB and LSB of the extension register, EXP[3],
EXP[0], and the MSB of the AI register AI[15],
When the SA bit is set, three bits determine if saturation is performed on the MAC unit’s output
and whether to saturate to the maximum positive or negative value, as illustrated in Table 3-9.
56F826/827 User Manual, Rev. 3
10 Freescale Semiconductor
Table 3-9. MAC Unit Outputs With Saturation Mode Enabled (SA=1)
EXP[3]EXP[0]AI[15]Result Stored in Accumulator
000(Unchanged)
001$0 7FFF FFFF
010$0 7FFF FFFF
011$0 7FFF FFFF
100$F 8000 0000
101$F 8000 0000
110$F 8000 0000
111(Unchanged)
Note:The Saturation mode is always disabled during the execution of the following
instructions: ASLL, ASRR, LSLL, LSRR, ASRAC, LSRAC, IMPY16, MPYSU,
MACSU, OR, EOR, NOT, LSL, LSR, ROL, AND, ROR. For these instructions, no
saturation is performed at the output of the MAC unit.
3.3.2.8 External X Memory (EX)—Bit 3
Data Memory
Setting the External X (EX) memory bit forces all primary data memory accesses to be external.
When the EX bit is set, all accesses to X memory on the X Address Bus One (XAB1) and Core
Global Data Bus (CGDB) or Peripheral Global Data Bus (PGDB) are forced to be external except
using the I/O Short Addressing mode. In this case, the EX bit is ignored and the access is
performed to the on-chip location. When the EX bit is cleared, internal X memory can be
accessed with all addressing modes.
The EX bit is cleared by processor reset. The EX bit is ignored by the second read of a dual-read
instruction (using the X Address Bus Two (XAB2) and X Data Bus Two (XDB2)). For
instructions with two parallel reads, the second read is always performed to internal on-chip
memory.
Note:When the EX bit is set, only the upper 64-peripheral memory-mapped locations are
accessible (X:$FFCO-x:$FFFF) with the I/O Short Addressing mode. The lower
64-memory-mapped locations (X:$FF80
–$FFBF) are not accessible when the EX bit is
set. Access to these addresses results in an entree to external memory. Operating Mode
B (MB)—Bit 1.
This bit is latched from the EXTBOOT pin on reset. Please see Section 3.7in the DSP56800 Family Manual.
3.3.2.9 Reserved—Bit 2
This bit field is reserved or not implemented. It is a read/write field using 0.
Memory and Operating Modes, Rev. 3
Freescale Semiconductor11
Core Configuration Memory Map
3.3.2.10 Operating Mode B (MB)—Bit 1
This bit is latched from the EXTBOOT pin on reset. Please refer to Section 3.7 in the DSP56800
Family Manual.
3.3.2.11 Operating Mode A (MA)—Bit 0
This bit is latched from the EXTBOOT pin on reset. Please refer to Section 3.7 in the DSP56800
Family Manual.
3.4 Core Configuration Memory Map
Core configuration registers are part of the Data Memory map on the 56F826/827 part. These
locations may be accessed with the same addressing modes used for ordinary data memory when
the EX bit is cleared. However, when the EX bit is set, the addresses can only be accessed using
the I/O Short Addressing mode. These registers are implemented as part of the 56800 core itself;
therefore, they will be present on all family members based on the core. This is not necessarily
true for the on-chip configuration registers discussed in the next section.
Table 3-10 illustrates the on-chip memory mapped core configuration registers.
On-chip peripheral registers are part of the Data Memory map of the 56F826/827. These
locations may be accessed with the same addressing modes used for ordinary data memory.
However, they may not be entered by write and single read operations when the EX bit is set.
(Since the EX bit is ignored on all second reads of a dual parallel move, these addresses are
readable when EX = 1 as the second move.)
Table 3-11 and Table 3-12 illustrate the on-chip memory mapped peripheral registers. The base
address represents the starting address used for each peripheral’s registers. Register memory
locations are assigned in each peripheral chapter established on this base address, plus a given
offset.
Not all peripherals are used on each device. For example, only the 56F827 uses the ADC
peripheral. Also, the Data Memory map for the 56F826 starts from a different location of the
mapped peripheral registers. So, 56F826 base addresses are different from those for the 56F827.
It is important to read the address range and base address corresponding to the chip being used in
Table 3-13. The following list of peripheral abbreviations appears in the same table.
Unless noted, each listed peripheral is available on both chips.
•System Integration Module (SIM)
•Program Flash Interface Unit number Two (PFIU2) (56F826 only)
•Data Flash Interface Unit (DFIU)
•Boot Flash Interface Unit (BFIU)
•Quad Timer A (TMRA)
•Time-of-Day (TOD)
•Synchronous Serial Interface (SSI)
•Clock Generation (CLKGEN)
•Interrupt Controller (ITCN)
•Computer Operating Properly (COP)
•Serial Peripheral Interface 0 (SPI0)
•Serial Peripheral Interface 1 (SPI1)
•Serial Communications Interface 0 (SCI0)
•Serial Communications Interface 1 (SCI1)
•General-Purpose I/O port A (GPIOA)
•General-Purpose I/O port B (GPIOB)
Memory and Operating Modes, Rev. 3
Freescale Semiconductor13
On-Chip Peripheral Memory Map
•General-Purpose I/O port C (GPIOC)
•General-Purpose I/O port D (GPIOD)
•General-Purpose I/O port E (GPIOE)
•General-Purpose I/O port F (GPIOF)
•Program Flash Interface Unit A Lower (PFIUAL) (56F827 only)
•Program Flash Interface Unit A Upper (PFIUAH) (56F827 only)
•Analog-to-Digital Converter (ADC) (56F827 only)
•Programmable Chip Select (PCS) (56F827only)
Table 3-11. 56F826 Data Memory Peripheral Address Map
Peripheral
Name
SIM
PFIU $1020 - $103FPFIU_BASE = $1020Table 3-14
DFIU$1060 - $107FDFIU_BASE = $1060Table 3-16
BFIU $1080 - $109FBFIU_BASE = $1080Table 3-17
TMRA$10A0 - $10BFTMRA_BASE = $1200Table 3-19
TOD$10C0 - $10CFTOD_BASE = $10C0Table 3-21
SSI$10E0 - $10EFSSI_BASE = $10E0Table 3-22
CLKGEN$10F0 - $10FFCLKGEN_BASE = $10F0Table 3-29
ITCN$1100 - $111FITCN_BASE = $1100Table 3-18
COP $1120 - $112FCOP_BASE = $1120Table 3-28
SPI0$1140 -$114FSPI0_BASE = $1140Table 3-26
SPI1$1150 -$115FSPI1 _BASE = $1150Table 3-27
SCI $1160 - $116FSCI0_BASE = $1160Table 3-23
SCI1$1170 - $117FSCI1_BASE = $1170Table 3-24
GPIOA$11A0 - $11AFGPIOA_BASE = $11A0Table 3-30
GPIOB$11B0 - $11BFGPIOB_BASE = $11B0Table 3-31
GPIOC$11C0 - $11CFGPIOC_BASE = $11C0Table 3-32
GPIOD$11D0 - $11DFGPIOD_BASE = $11D0Table 3-33
GPIOE$11E0 - $11EFGPIOE_BASE = $11E0Table 3-34
GPIOF$11F0 - $11FFGPIOF_BASE = $11F0Table 3-35
Address RangeBase Address
$1000 - $100F
SYS_BASE = $1000
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Peripheral Register
Address Tables
Table 3-13
56F826/827 User Manual, Rev. 3
14 Freescale Semiconductor
On-Chip Peripheral Memory Map
Table 3-12. F56827 Data Memory Peripheral Address Map
Peripheral
Name
SIM
PFIU $1020 - $103FPFIU_BASE = $1020Table 3-14
PFIU2$1040 - $105FPFIU2_BASE = $1040Table 3-14
DFIU$1060 - $107FDFIU_BASE = $1060Table 3-16
TOD$10C0 - $10CFTOD_BASE = $10C0Table 3-21
SSI$10E0 - $10EFSSI_BASE = $10E0Table 3-22
CLKGEN$10F0 - $10FFCLKGEN_BASE = $10F0Table 3-29
ITCN$1100 - $111FITCN_BASE = $1100Table 3-19
COP $1120 - $112FCOP_BASE = $1120Table 3-28
SPI0$1140 -$114FSPI0_BASE = $1140Table 3-26
SPI1$1150 -$115FSPI1 _BASE = $1150Table 3-27
SCI0 $1160 - $116FSCI0_BASE = $1160Table 3-23
SCI1$1170 - $117FSCI1_BASE = $1170Table 3-24
SCI2$1180 - $118FSCI2_BASE = $1180Table 3-25
PCS$1190 - $119FPCS_BASE = $1190Table 3-38
GPIOA$11A0 - $11AFGPIOA_BASE = $11A0Table 3-30
GPIOB$11B0 - $11BFGPIOB_BASE = $11B0Table 3-31
GPIOC$11C0 - $11CFGPIOC_BASE = $11C0Table 3-32
GPIOD$11D0 - $11DFGPIOD_BASE = $11D0Table 3-33
GPIOF$11F0 - $11FFGPIOF_BASE = $11F0Table 3-35
TMRA
GPIOG
ADC$12C0 - $13FFADC_BASE = $12C0Table 3-37
Address RangeBase Address
$1000 - $101F
$1200 - $123F
$1240 - $124F
SYS_BASE = $1000
Reserved
Reserved
Reserved
Reserved
Reserved
TMRA_BASE = $1200
GPIOG_BASE = $1240
Reserved
Reserved
Peripheral Register
Address Tables
Table 3-13
Table 3-20
Table 3-36
Table 3-13. System Control Registers Address Map (SYS_BASE = $1000)
As illustrated in Table 3-1, the 56F826 has 31.5K words of on-chip Program Flash and 512
words of on-chip Program RAM and 2K words of Boot Flash. The 56F827 however, has 63K
words of on-chip Program Flash Memory and 1K words on on-chip Program RAM.
Both 56F826 and 56F827 chip program memories may be expanded off-chip up to 64K. The
external program bus access time is controlled by two of four bits on the Bus Control Register
1
(BCR), located at X:$FFF9
The on-chip Program Flash and RAM may hold a combination of interrupt vectors and program
codes. Both may be modified by the application itself.
When mode three is selected, all 64K words of program memory are external.
. This register is provided in Section .
1.All 56800 chips have two low order wait state bits in BCR hardcoded to zero.
Memory and Operating Modes, Rev. 3
Freescale Semiconductor27
Operating Modes
3.7 Operating Modes
Both chips have two valid operating modes determining the memory maps for Program Memory.
Operating modes can be selected either by applying the appropriate signal to the EXTBOOT pin
during Reset, or by writing to the OMR and changing the MA and MB bits. The EXTBOOT pin
is sampled as the chip leaves the reset state, and the initial operating mode of the chip is set
accordingly.
Table 3-39. Program Memory Chip Operating Modes
State of EXTBOOT Upon ResetMBMAChip Operating Mode
000
N/A01
N/A10
111
Mode 0
Normal Operation
Not Supported
Mode 3
External ROM
Chip operating modes can also be changed by writing to the operating mode bits MB and MA in
the OMR. Changing operating modes does not reset the chip. Interrupts should be disabled
immediately after an interrupt and before changing the OMR. This will prevent an interrupt from
going to the wrong memory location. Also, one No-Operation (NOP) instruction should be
included after changing the OMR to allow re-mapping to occur.
Note:When COP is reset, the MA and MB bits will revert to the values originally latched
from the EXTBOOT pin in contradiction of RESET
, hardware reset. These original
mode values determine the COP reset vector. EXTBOOT is read-only at the time of
reset.
3.7.1 Single Chip Mode: Start-Up (Mode 0)
Mode zero is the single-chip mode internal Program RAM (PRAM) and PFLASH are enabled for
reads and fetches. The 56F826 has two submodes:
1. Mode 0A Boot mode where all memory is internal
2. Mode 0B non-Boot mode where the first 32K of memory is internal and the second 32K is
external
Note:Please refer to Section 15.8 and Figure 15-8 for additional information about
SYS_CNTL.
If EXTBOOT is asserted low during reset, then Mode 0A boot is automatically entered when
exiting the Reset mode.
56F826/827 User Manual, Rev. 3
28 Freescale Semiconductor
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.