Freescale Semiconductor Quick Reference User Manual
Specifications and Main Features
Frequently Asked Questions
User Manual
QE128 Quick Reference User Guide
Devices Supported:
MCF51QE128
MC9S08QE128
Document Number: QE128QRUG
Rev. 1.0
10/2007
How to Reach Us:
Home Page:
www.freescale.com
E-mail:
support@freescale.com
USA/Europe or Locations Not Listed:
Freescale Semiconductor
Technical Information Center, CH370
1300 N. Alma School Road
Chandler, Arizona 85224
+1-800-521-6274 or +1-480-768-2130
support@freescale.com
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064, Japan
0120 191014 or +81 3 5437 9125
support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd.
Technical Information Center
2 Dai King Street
Tai Po Industrial Estate
Tai Po, N.T., Hong Kong
+800 26668334
support.asia@freescale.com
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-441-2447 or 303-675-2140
Fax: 303-675-2150
LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and
software implementers to use Freescale Semiconductor products. There are
no express or implied copyright licenses granted hereunder to design or
fabricate any integrated circuits or integrated circuits based on the
information in this document.
Freescale Semiconductor reserves the right to make changes without further
notice to any products herein. Freescale Semiconductor makes no warranty,
representation or guarantee regarding the suitability of its products for any
particular pur pose, nor does Freescale Semiconductor assume any liability
arising out of the application or use of any product or circuit, and specifically
disclaims any and all liability, including without limitation consequential or
incidental damages. “Typical” parameters that may be provided in Freescale
Semiconductor data sheets and/or specifications can and do vary in different
applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer
application by customer’s technical exper ts. Freescale Semiconductor does
not convey any license under its patent rights nor the rights of others.
Freescale Semiconductor products are not designed, intended, or authorized
for use as components in systems intended for surgical implant into the body,
or other applications intended to support or sustain life, or for any other
application in which the failure of the Freescale Semico nductor product could
create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semicondu ctor products for any such unintended
or unauthorized application, Buyer shall indemnify and hold Freescale
Semiconductor and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and
reasonable attorney fees arising out of, directly or indirectly, any claim of
personal injury or death associated with such unintended or unauthorized
use, even if such claim alleges that Freescale Semiconductor was negligent
regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale
Semiconductor, Inc. All other product or service names are the property of their
respective owners.
Chapter 1
QE Peripheral Module Quick Reference User Guide
A Compilation of Demonstration Firmware for QE Modules
This document is a brief description of the QE128 microcontroller unit (MCU) in an 8-bit version and
32-bit version. There is also useful information about core differences.
This document is a compilation of code examples and quick reference materials that have been created to
help users speed the development of their applications. Each section in this document contains an example
that works with an evaluation board (EVB) and Demo board with both 8-bit and 32-bit cores versions.
These examples were developed using CodeWarriorTM 6.0 version. Consult the device reference manual
for specific part information.
NOTE
•The provided examples were made to be used with the MC9S08QE128
and MCF51QE128 in an 80-pin and 64-bit package, but could be easily
migrated to a different QE device, pay attention to the used pins.
•All the example projects were developed in two different boards:
EVBQE128 STARTER KIT and DEMO board, no extra hardware is
needed except for the ACMP module, SPI, and IIC.
Revision History
Date
25-Jun-070Initial public release.N/A
19-Oct-071.0Changes in template, function names and other minor corrections.N/A
Revision
Level
Description
QE128 Quick Reference User Guide, Rev. 1.0
Number(s)
Page
Freescale Semiconductor1-1
QE Peripheral Module Quick Reference User Guide
1-2Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
Chapter 2
QE MCUs 8-bit and 32-bit Comparison
2.1Overview
This is a brief explanation of MCU architectures. It has helpful information about cores, addressing modes
and exception processing. The intention of this section is to provide an overview of the S08 and V1 Core.
Further information can be found in reference manuals at www.freescale.com.
2.2Cores Comparison
2.2.1V1 core
The MCF51QE128, MCF51QE96, MCF51QE64 are members of the low-cost, low-power, high
performance ColdFire® V1 core (version 1) family of 32-bit MCUs. Figure 2-1 shows the ColdFire V1
core platform block diagram.
The ColdFire V1 core features are:
•Implements Instruction Set Revision C (ISA_C).
•Supports up to 30 peripheral interrupts and seven software interrupts.
•Built upon lowest-cost ColdFire V2 core microarchitecture.
•Two independent decoupled 2-stage pipelines.
•Debug architecture remapped into S08's single-pin BDM interface.
The ColdFire V1 core has two programming models, the user and supervisor. First, is the user
programming model which is the same as the M68000 family microprocessors and consists of the
following registers:
A7 -- Is a user stack pointer and is treated specifically by CPU.
Program counter (PC) -- This register contains the address of the currently executing instruction. The
PC increments its value or can be loaded with a new one when an instruction
is executing or when an exception occurs.
Condition code register (CCR) -- This register reflects the result of most instruction flags. It is used to
evaluate the instructions of the conditional branches.
76543210
R000
W
Figure 2-6. Condition Code Register (CCR)
Table 2-1. CCR Field Descriptions
FieldDescription
7–5Reserved, must be cleared.
4
Extend condition code bit. Set to the C-bit value for arithmetic operations; otherwise not affected or set to a specified
X
result.
XNZVC
3
Negative condition code bit. Set if most significant bit of the result is set; otherwise cleared.
N
2
Zero condition code bit. Set if result equals zero; otherwise cleared.
Z
1
Overflow condition code bit. Set if an arithmetic overflow occurs implying the result cannot be represented in operand
V
size; otherwise cleared.
0
Carry condition code bit. Set if a carry out of the operand msb occurs for an addition, or if a borrow occurs in a
C
subtraction; otherwise cleared.
Second, is the supervisor programming model. This is intended to be used only by system control software
to implement restricted operating system functions: I/O control, and memory management. In the
supervisor programming model all registers and features of the ColdFire processors can be accessed and
modified. This consists of registers available in user mode and the following control registers:
•16-bit status register (SR).
•32-bit supervisor stack pointer (SSP).
•32-bit vector base register (VBR).
•32-bit CPU configuration register (CPUCR).
Status register (SR) — This is a 16-bit register. It stores the processor status and includes the condition
code register (CCR). When it is used in user mode only the lower 8-bit can
be accessed. When used in supervisor mode the registers can be accessed.
If a supervisor instruction is executed in user mode it generates a privilege
violation exception. Figure 2-8 shows the SR behavior in a state machine.
2-4Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
System ByteCondition Code Register (CCR)
SR[S] = 1
SR[S] = 0
Reset
Supervisor
Mode
User Mode
Exception
Rte, move-t o- sr with
sr_operand[13] = 1
Rte, move-t o- sr with
sr_operand[13] = 0
1514131211109876543210
000
W
R
0
T
SM
0
I
Figure 2-7. Status Register (SR)
Table 2-2. SR Field Descriptions
FieldDescription
QE MCUs 8-bit and 32-bit Comparison
XNZVC
15
Trace enable. When set, the processor performs a trace exception after every instruction.
T
14Reserved, must be cleared.
13
Supervisor/user state.
S
0User mode
1 Supervisor mode
12
Master/interrupt state. Bit is cleared by an interrupt exception and software can set it during execution of the RTE or
M
move to SR instructions.
11Reserved, must be cleared.
10–8IInterrupt level mask. Defines current interrupt level. Interrupt requests are inhibited for all priority levels less than or
7–0
CCR
equal to current level, except edge-sensitive level 7 requests, which cannot be masked.
Refer to MCF51QE128 Reference Manual.
Supervisor stack pointer (SSP) -- This ColdFire architecture supports two independent stack pointers,
A7 registers. Each operating mode has its own stack pointer, SSP and user
stack pointer (USP). The hardware implementation of these two registers do
not identify one as SSP and the other as USP . Instead, the hardware uses one
32-bit register as the active A7 and the other as, OTHER_A7.
Figure 2-9. Stack Pointer Registers (A7 and OTHER_A7)
Vector base register (VBR) -- This register defines the base addres s of the exception vector table in the
memory. It has two different possible values: 0x(00)00_0000 exception
vector table based on the flash, and 0x(00)80_0000 exception vector table
based on the RAM. At reset the VBR is cleared. The VBR is located at the
base of the exception table at the address 0x(00)00_0000 in the flash.
Address Register Indirect with Displacement.op.sz d16(Ay),Rx
Address Register Indirect with Scaled Index and Displacement.op.sz d8(Ay,Xi*SF),Rx
Program Counter Indirect with Displacement.op.sz d16(PC),Rx
1
Ry,Rx
Program Counter Indirect with Scaled Index and Displacement.op.sz d8(PC,Xi*SF),Rx)
2-6Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
Table 2-3. Addressing Modes and Syntax
Addressing modesSyntax
Absolute Short Addressing.op.sz xxx.w,Rx
Absolute Long Addressing.op.sz xxx.{l},Rx
Immediate Byte, Word.op.{b,w}2 #imm,Rx
3
Immediate Long.op.l#imm
1
op.sz - operand size(size is 1 for byte, 2 for word, 4 for long).
2
op.{b,w} - operand {byte,word}.
3
op.l - operand long.
,Rx
This is a syntax for a V1 core example:
SourceDestination
#0x55Rx
2.2.1.2Exception Processing
Exception processing is defined as processor-detected conditions that force an instruction stream
discontinuity because of a program or system error: a system call, a debug, or an I/O interrupt. The
ColdFire V1 core uses a reduced version of the interrupt controller from other ColdFire processors. This
hardware implementation is available only for a 32-bit MCU.
Freescale Semiconductor2-7
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
Saves a copy of the SR.
Forces:
SR[S]=1
SR[T]=0
If an interrupt forces
the interrupt
SR[M]=0
then sets
SR[I]=to the level of
Calculates the vector for
all internal exceptions.
For interrupts, the CPU
uses the vector number
supplied by the interrupt
controller or performs an
interrupt acknowledge
(IACK) cycle to retrieve
the I/O vector number.
Init
Saves the content at the
time of the exception by
storing a 64-bit
exception stack frame
(including the saved SR)
on the top of the
supervisor stack.
The processor fetches a
32-bit vector address
from the exception
vector table @ (VBR +
vector_number x 4). The
address defines the first
instruction of the
exception handler or
interrupts service routine
(ISR). Control is then
passed to the exception
handler at this address.
1
End
1
The processor performs the following operations to process an exception:
Interrupts are treated as lowest-priority exception type. CPU samples for halts and interrupts once per
instruction. The first instruction in ISR does not sample. Interrupts are guaranteed to be recoverable
exceptions.
ColdFire architecture reserves 64 entries for processor exceptions and the remaining 192 entries for I/O
interrupts. The ColdFire V1 core architecture only uses a relatively small number of the I/O interrupt
vector. Table 2-4 shows the ColdFire V1 core processor with the exception of the vector table.
QE128 Quick Reference User Guide, Rev. 1.0
Program Counter
2-8Freescale Semiconductor
Table 2 -4. Ve cto r Ta b l e
Vector
Number(s)
Vector
Offset(Hex)
Stacked
Program
Counter
Assignment
00x000-Initial supervisor stack pointer
10x004-Initial program counter
2-630x008-0x0FC-Reserved for internal CPU Ex ceptions
This section provides summary information about the registers, addressing modes and core features. The
generated source and object-code is compatible with the M68HC08 CPU.
The S08 MCU supports only the user programming model. Figure 2-14 shows five CPU registers. These
registers are not part of the memory map.
Figure 2-14. CPU Registers
Accumulator -- The accumulator is a general-purpose 8-bit register . One operand input to the arithmetic
logic unit (ALU) is connected to the accumulator and the ALU results are
often stored in the accumulator after arithmetic and logical operations.
Index Register (H:X) -- This is a two separate 8-bit register, which often works together as a 16-bit
address pointer where H holds the upper byte of an address and X the lower
byte. All the indexing addressing mode instructions use the 16-bit register.
Stack pointer (SP) -- This 16-bit address pointer register points to the next available location on the
automatic last-in-first-out (LIFO). The stack is used to automatically store
the return address from subroutine calls or return from interrupts. It stores
the context in the interrupt service routine (ISR) and it stores the local
variables and parameters in function calls.
Program counter (PC) -- This register contains the next instruction or operand to be retrieved. This
register automatically increments to the next memory location during a
normal program execution.
Condition code register (CCR) -- This 8-bit condition code register contains the interrupt mask (I) and
five flags that indicate the results of the instruction just executed. Bits 5 and
6 are permanently set to 1.
2-10Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
Figure 2-15. Condition Code Register
V - Two's complement Overflow FlagN - Negative flag
H - Half Carry FlagZ - Zero Flag
I - Interrupt Mask BitC - Carry/Borrow flag
2.2.2.1Addressing Modes
Addressing modes define the way the CPU accesses operand and data. The S08 core supports seven
different addressing modes:
Table 2-5. Addressing Modes and Examples
Addressing ModesExample
Inherent --Operands in internal registers.ASLA – Arithmetic Shift Left A.
Relative -- 8-bit offset to branch destination.BEQ rel – Branch if equal
Immediate -- Operand in next object code byte.ADC #opr8i – Add with carry
Direct -- Operand in memory at 0x0000-0x00FF.ADC opr8a – Add with carry
Extended -- Operand within 64 Kbyte address space.ADC opr16a – Add with carry
Indexed relative to H:X. ADC oprx8,X – Add with carry
Indexed relative to SP.ADC oprx8,SP – Add with carry
n -- Any label or expression that evaluates to a single integer in the range 0-7
opr8i -- Any label or expression that evaluates to an 8-bit immediate value
opr16i -- Any label or expression that evaluates to a 16-bit immediate value
opr8a -- Any label or expression that evaluates to an 8-bit value
opr16a -- Any label or expression that evaluates to a 16-bit value
oprx8 -- Any label or expression that evaluates to an unsigned 8-bit value, used for indexed addressing
oprx16 -- Any label or expression that evaluates to a 16-bit value
page -- Any label or expression that evaluates to a valid bank number for PPAGE register. Any value
between 0 and 7 is valid.
rel -- Any label or expression that refers to an address that is within -128 to +127 locations from the next
address after the last byte of object code for the current instruction.
A -- Accumulator
Freescale Semiconductor2-11
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
Store PCL in SP
Store X in SP
Store PCH in SP
Store A in SP
Store PCL in SP
Store CCR in SP
Sets the | bit in the CCR
Fetches the high-order
half of the interrupt
vector
Fetches the low-order
half of the interrupt
vector
Delays for one free bus
cycle
Init
1
Fetches three bytes of
program information
starting at the address
indicated by the interrupt
vector
Fills the instruction
queue, preparing for
execution of the first
instruction in the
interrupt service routine
1
2
2
End
2.2.2.2Interrupt Sequence
The S08 core interrupt sequence first completes the current instruction then attends the requested interrupt.
The CPU responds to an interrupt with the same sequence operation as in a software interrupt (SWI), and
it differs from the address used for the vector retrieved.
Figure 2-16. The CPU Interrupt Sequence
2.2.3ColdFire V1 or 9S08QE
The ColdFire V1 and S08 cores have significant differences, even though the 32 bit ColdFire V1 core
presents improvements in performance. These differences are highlighted in the following section.
The ColdFire V1 architecture features, staged pipelining allows the core to process multiple instructions
at the same time.
2-12Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
Figure 2-17. V1 Core Pipelines
•The V1 Coldfire core pipeline stages include the following:
— Two-stage instruction fetch pipeline (IPF) (plus instruction buffer stage)
— Instruction address generation (IAG) – Calculates the next prefetch address
— Instruction fetch cycle (IC) – Initiates prefetch on the processor’s local bus
— Instruction buffer (IB) – Buffer stage minimizes effects of fetch latency using fifo queue
•Two-stage operand execution pipeline (OEP)
— Decode and select/operand fetch cycle (DSOC) – Decodes instruction and fetches the required
components for effective address calculation, or the operand fetch cycle
— Address generation/execute cycle (AGEX) – Calculates operand address or executes the
instruction
ColdFire V1 core architecture -- Is an orthogonal architecture that has an advantage. It has 16 different
registers for operation that can be used instead of one. The ColdFire V1 core
processes more effectively the 32-bit length operations than the 8-bit core
version.
S08 core architecture -- Is accumulator based, almost all arithmetic and logical instructions use the
accumulator. The S08 can handle 32-bit length operations but requires more
cycles because it executes more instructions, taking more time.
The ColdFire MCU has two programming models with different privileges to control the system. These
programming models are similar to the administrator and user in windows. When the MCU is on the
Freescale Semiconductor2-13
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
administrator level it can access all the registers and change values. The 8-bit core version does not count
with this feature.
Table 2-6 shows a global view of the core differences. Detailed information is explained in the beginning
of this chapter. Refer to review Reference Manual MCF51QE128 and MC9S08QE128 at the
www.freescale.com site.
Table 2-6. Comparison of Cores
MC9S08QE128MCF51QE128
Up to 50 MHz CPU from 3.6 V 2.1 V, and 20 MHz CPU from 2.1 V to 1.8 V across temperature ranged of -40°C
to 85°C.
8-bit HCS08 core.32-bit ColdFire V1 core.
8-bit data bus, 16-bit address bus.32-bit data bus, 24-bit address bus.
64 Kb memory map, 16 Kb paging window for
addressing memory beyond 64 Kb. Linear address
pointer for accessing data across entire memory range.
HC08 instruction set with added BGND, CALL and RTC
instructions.
Support for up to 32 interrupt/reset exceptions.
Exception priorities are fixed. One level of interrupt
grouping. No hardware support for nesting.
ColdFire Instruction Set Revision C (ISA_C), and
additional instructions for efficient handling of 8-bit and
16-bit data.
Support for up to 256 interrupt/reset exceptions (39 are
used on MCF51QE128). Exception priorities are fixed
except for two interrupts that can be remapped. Seven
levels of interrupt grouping and hardware support for
nesting.
Resets: one vector for all reset sources. Vector must
point to address within pages 0-3. No illegal address
reset. Entire memory map is legal.
System reset status (SRS) registers set flags for most recent reset source.
Resets: vectors for up to 64 reset sources. Vector can
point to any valid address. Illegal address reset is
supported.
2.2.3.1Exception Comparison
Table 2-7 shows the exception differences between 8-bit core and 32-bit core.
Table 2-7. Exception Differences
AttributeS08V1 ColdFire
Exception Vector Table.32, 2-byte entries, fixed location at
upper end of memory.
More on Vectors.2 for CPU + 30 for IRQs (interrupt
Interrupt Levels.1 = f(CCR[I]).7 = f(SR[I]) with automatic hardware
Non-Maskable IRQ Support.NoYes with level 7 interrupts.
103, 4-byte entries, located at lower end of
memory at reset, relocatable with the VBR.
64 for CPU + 39 for IRQs, reset at lowest
address.
General-purpose registers (An, Dn) must
be saved/restored by the ISR.
support for nesting.
2-14Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
Table 2-7. Exception Differences
Core-enforced IRQ Sensitivity. NoLevel 7 is edge sensitive, and others level
sensitive.
INTC (interrupt controller)
Vectoring.
Software IACK.NoYes
Exit Instruction from ISR.RTI (real time interrupt).RTE (real time exception).
Fixed priorities and vector
assignments.
Fixed priorities and vector assignments,
plus any 2 IRQs can be remapped as the
highest priority level 6 requests.
2.2.3.2Code Example Comparison
This example is a code made in C and is compiled and executed for both MCUs,V1 and S08. Both results
present a difference in execution time. The generated assembly lines are similar.
There are two four loop cycles that nest within this endless loop.The inner loop cycle counts from 0 to 100
and stores the k variable value in the buffer k array. The outer loop counts from 0 to 60000. The i variable
counter increments every time the k variable counter reaches the 101 value.
void main(void) {
unsigned int i,k;
unsigned int buffer[100];
for (i=0; i<=60000; i++) { // This rutine is executed 60001
for (k=0; k<=100; k++) {
buffer[k] = k;
}
}
} // loop forever
// please make sure that you never leave main
}
Assembly code lines generated for the S08 MCU; observe the difference between this assembly code and
the assembly code generated from the ColdFire V1 core.
Table 2-8 shows the CPU cycles needed and the assembly lines code generated to complete the execution
of the program described above. The used compiler for this test was CW 6.0 version and no optimization
tool was used.
This example is just a particular comparison and the performance between
cores is not reflected with this example. The performance is application
dependant.
Table 2-8. Comparison of CPU Cycles and Assembly Code Lines
FLASH read/program/erase over full operating voltage and temperature.
Up to 128KB of FLASH, two FLASH arrays of 64Kb x
8-bits arranged in series. Two flash arrays allow for
“read while write” programming.
Security circuitry to prevent unauthorized access to
RAM and FLASH contents, default is secured when
blank
2.3.2Power-Saving Modes and Power-Saving Features Comparison
Table 2-10. Power-Saving mode Comparison
Up to 128 KB of FLASH. Two FLASH arrays of 64 Kb x
8-bits arranged in parallel. FLASH “read while write” not
supported.
Security circuitry to prevent unauthorized access to
RAM and FLASH contents, default is unsecured when
blank
MC9S08QE128MCF51QE128
Two very low power stop modes (Stop2 and Stop3).
Low Power run (LPRun) and wait (LPWait) modes allow for use of peripherals in reduced-current and
reduced-speed mode.
Peripheral clock enable register can disable clocks to unused modules, thereby reducing currents.
Very low power external oscillator that can be used in stop modes to provide accurate clock source RTC module.
Very low power real time counter for use in run, wait, and stop modes with internal and external clock sources.
6µs typical wake up time from stop modes.
Reduced power wait mode (enabled by WAIT
instruction).
2.3.3Package Comparison
Table 2-11. Package Comparison
MC9S08QE128MCF51QE128
Pin-to-pin compatible in 80-LQFP and 64-LQFP packages.
Additional 48-QFN, 44-QFP and 32-LQFP packages.No additional packages.
Reduced power wait mode (enabled by setting WAIT bit
in the SOPT1 register then executing STOP
instruction).
2-18Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
2.3.4Clock Comparison
Table 2-12. Clock Comparison
MC9S08QE128MCF51QE128
Oscillator (XOSC) – Loop-control pierce oscillator, crystal or ceramic resonator range of 31.25 kHz to 38.4 kHz
or 1 MHz to 16 MHz
Internal clock source (ICS) – Internal clock source module containing a frequency-locked-loop (FLL) controlled
by internal or external reference. Precision trimming of internal reference allows 0.2% resolution and 2%
deviation over temperature and voltage. Supports CPU frequencies from 2 MHz to 50 MHz
2.3.5System Comparison
Table 2-13. System Comparison
MC9S08QE128MCF51QE128
Watchdog computer operating properly (COP) reset with option to run from dedicated 1 kHz internal clock source
or bus clock.
Low-voltage detection with reset or interrupt. Selectable trip points.
Illegal opcode detection with reset.
No illegal address reset, all addresses in maps are
legal.
QE MCUs 8-bit and 32-bit Comparison
Illegal address detection with reset.
FLASH Block protection: protects in 1k increments.
Protects array 0 first (from 0x0FFFF - 0x00000), then
array 1 (from 0x1FFFF – 0x10000).
2.3.6Input/Output Comparison
Table 2-14. Input/Output Comparison
MC9S08QE128MCF51QE128
70 GPIOs (general purpose input/output) and 1 input-only and 1 output-only pin.
16 KBI (keyboard interrupts) with selectable polarity.
Hysteresis and configurable pull up device on all input pins, configurable slew rate and drive strength on all output
pins.
SET/CLR registers on 16 pins (PTC and PTE).
Rapid I/O not featured.Selectable Rapid I/O supported on PTC and PTE ports.
FLASH Block protection: protects in 2 k increments.
Protects array from 0x00000 to 0x1FFFF.
Freescale Semiconductor2-19
QE128 Quick Reference User Guide, Rev. 1.0
QE MCUs 8-bit and 32-bit Comparison
2.3.7Development Support Comparison
Table 2-15. Development Support Comparison
MC9S08QE128MCF51QE128
Single-wire background debug interface. Same hardware Background Debug Mode (BDM) cable supports both
devices.
One version of CodeWarrior integrated development environment (IDE) and debugger supports both devices.
CodeWarrior stationary, project wizard, initialization wizard and Processor Expert make C-code migration
between devices easy.
SET/CLR registers on 16 pins (PTC and PTE).
Break point capability to allow single breakpoint setting
during in-circuit debugging, plus three more
breakpoints in on-chip debug module.
Integrated ColdFire DEBUG_Rev_B+ interface with
single wire BDM connection supports the same
electrical interface used by the S08 family debug
modules.
On-chip in-circuit emulator (ICE) debug module
containing three comparators and nine trigger modes.
Eight deep FIFO for tracing change-of-flow addresses
and event-only data. Debug module supports both tag
and force breakpoints.
temperature sensor, internal bandgap reference channel, operation in stop3, and fully functional from 3.6 V to
1.8 V.
ACMPx – Two analog comparators with selectable interrupt on rising, falling, or either edge of comparator output,
compare option to fixed internal bandgap reference voltage, and operation in stop3.
SCIx – Two serial communications interface modules with optional 13-bit break.
SPIx – Two serial peripheral interfaces with Full-duplex or single-wire bidirectional, double-buffered transmit and
receive, Master or Slave mode, MSB-first or LSB-first shifting.
IICx – Two IICs with up to 100 kbps with maximum bus loading, multi-master operation, programmable slave
address, Interrupt driven byte-by-byte data transfer, supports broadcast mode and 10-bit addressing.
Classic ColdFire Debug B+ functionality mapped into
the single-pin BDM interface. 64 deep FIFO for tracing
processor status (PST) and debug data (DDATA). Real
time debug support, with 6 hardware breakpoints, four
PC, one address and one data, that can be configured
into a 1 or 2 level trigger with a programmable response.
TPMx – One 6-channel (TPM3) and two 3-channel (TPM1 and TPM2), selectable input capture, output compare,
or buffered edge- aligned or center-aligned PWM on each channel, and operation in stop3.
RTC – (Real time counter) 8-bit modules counter with binary or decimal based prescaler; external clock source
for precise time base, time-of-day, calendar or task scheduling functions; Free running on-chip low power
oscillator (1 kHz) for periodical wake-up without external components; runs in all MCU modes
2-20Freescale Semiconductor
QE128 Quick Reference User Guide, Rev. 1.0
Chapter 3
How to Load the QRUG Examples?
3.1Overview
This section describes the steps needed to download the firmware to flash. This shows the modules
working in the hardware.
All the examples described in this document are developed using Code Warrior 6.0 version and can be
changed in order to fit the application. T o run these examples a Code W arrior version 6.0 and an Evaluation
Board or a Demo board are needed in order to run these examples satisfactorily.
3.2Steps to programming the MCU using Multilink
Follow these simple steps in order to load the QRUG examples and download it to the device. The
explanation works for the EVB and Demo board.
1. Open CodeWarrior 6.0.
2. File -> Open, or click on the Open Icon as shown in Figure 3-1.
Freescale Semiconductor3-1
QE128 Quick Reference User Guide, Rev. 1.0
How to Load the QRUG Examples?
Figure 3-1. Open the Desired Project
3. Browse the desired project.
4. Double click on the .mcp extension file, in this case RGPIO.mcp.
5. To open the file double click on .c extension file (main.c).
6. On the left side of the window is a combo box. Select the P&E Multilink/Cyclone Pro option as
shown in Figure 3-2. The BDM multilink hardware for programming the MCU is needed when an
EVB is used. This device is developed by PEmicro. If a demo board is used do not buy a multilink.
QE128 Quick Reference User Guide, Rev. 1.0
3-2Freescale Semiconductor
Loading...
+ 91 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.