AN3502
AN3502
AN3502
Rev. 0, 09/2007
Application Note
1 Introduction Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
From the RS08 to our highest-performance ColdFire® 2 Top Level Specification Comparison . . . . . . . . . . . . . . . . 2
3 Module Comparisons. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
V4 devices, the Controller Continuum provides 3.1 12-bit Analog to Digital Convertor (ADC). . . . . . . . . 3
compatibility for an easy migration path up or down the 3.2 Analog Comparators . . . . . . . . . . . . . . . . . . . . . . . . 4
performance spectrum. The connection point on the 3.3 Real Time Counter / Clock (RTC) . . . . . . . . . . . . . . 5
3.4 I/O and Keyboard Interrupts . . . . . . . . . . . . . . . . . . 6
Controller Continuum is where complimentary families 3.5 Hardware Multiplier . . . . . . . . . . . . . . . . . . . . . . . . . 7
of the S08 and ColdFire V1 (CFV1) microcontrollers 3.6 Low Voltage Detect (LVD) . . . . . . . . . . . . . . . . . . . . 7
3.7 Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
share a common set of peripherals and development tools 3.8 Interrupt Request (IRQ) . . . . . . . . . . . . . . . . . . . . . . 9
to deliver the ultimate in migration flexibility. 3.9 Watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Pin-for-pin compatibility between many devices allows 3.10 Flash Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.11 Communications Peripherals. . . . . . . . . . . . . . . . . 11
controller exchanges without redesigning the board. The 3.12 Debugger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
MC9S08QE128 and the MCF51QE128 are the first 4 Clock Generator Module . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1 Functional Differences. . . . . . . . . . . . . . . . . . . . . . 17
products in this series known as Flexis. 4.2 Clock Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3 Clock Gating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
The term Flexis means a single development tool to ease 5 CPU Cores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
migration between 8-bit (S08) and 32-bit (CFV1), a 5.1 CPU Performance . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.2 CPU Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
common peripheral set to preserve software investment 6 Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
between 8-bit and 32-bit, and pin compatibility wherever 7 Bibliography. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
practical, to maximize hardware reuse when moving
between 8-bit and 32-bit.
This application note compares the Texas Instruments MSP430FG4619 to the QE128 devices from
Freescale Semiconductor and highlights ways engineers can improve their power performance by using
either of the Flexis devices.
NOTE
In the following text when the QE128 is referenced, this statement is
applicable to both MC9S08QE128 and MCF51QE128. If the statement is
only applicable to one or the other then the full part number is used.
The details of the MSP430 are based on publicly available data and form the
basis of a comparative analysis to the QE128 devices on a number of
features. For in depth analysis of the MSP430, Texas Instruments must be
contacted directly.
Hardware multiplier Section 3.5 Yes, 16-bit (peripheral) Yes, up to 32-bit (core)
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
2 Freescale Semiconductor
Module Comparisons
Low voltage detect Section 3.6 Yes, with 14 trigger levels Yes, with 2 trigger levels
The clock generation module and the core are key to the majority of the power saving techniques and these
are discussed in Section 4, “Clock Generator Module” and Section 5, “CPU Cores”. A description of the
differences between the peripheral modules that are common to all the devices are discussed in Section 3,
“Module Comparisons”.
3 Module Comparisons
3.1 12-bit Analog to Digital Convertor (ADC)
Table 2 gives a quick overview of the key ADC parameters and shows the specification of both modules.
Table 2. Key ADC Features
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 3
Module Comparisons
The 12-bit ADC on the QE128 and the MSP430FG4619 are successive approximation (SAR) modules
with a selectable clock source and integrated temperature sensors. Like the ACMP, the module and the
internal reference can be turned off independently on all devices.
The QE128 ADC module has a fixed cycle conversion time of 16–17 ADC clock cycles, a variation due
to synchronization at start. In this time, three cycles are the sample. The MSP430FG4619 has a
programmable sample and hold period.
Where the MSP430FG4619 ADC can be triggered from a timer event, the QE128 can be triggered from
the RTC. This normally has very little impact to an application. The difference is the MSP430FG4619
timer trigger is more flexible (input capture, output compare or PWM) and the QE128 RTC trigger is
periodic by nature.
The MSP430FG4619 has 16 register results that the QE128 application would have to simulate by
software as well as the sequence conversion modes that the MSP430FG4619 incorporates.
The MSP430FG4619 ADC module operates down to 2.2 V where the QE128 ADC continues to operate
with a supply of 1.8 V.
One point to note is that the QE128 does not have a DMA module. It cannot move conversion data to RAM
without CPU intervention like the MSP430FG4619. This is a useful feature in low power modes. The ADC
can store data for analysis while the CPU wakes at a later time.
The internal reference on the QE128 ADC can be used as input only and software means must be used to
monitor the supply with it. The MSP430FG4619 internal references can be used to power the 12-bit SAR.
Otherwise, the modules operate similarly.
The analog voltage comparator on both the MSP430FG4619 and the QE128 have interrupt capabilities to
enable wake up from low power modes. The ability to turn off the modules and the internal reference
voltages exist on both modules and both can be configured to connect the ACMP output to a timer input
capture channel.
The internal voltage reference on the QE128 is fixed at 1.2 V (+10 mV/8.3%). The MSP430FG4619 has
a selectable range of 100%, 50%, 25% or 0% of the voltage supply. The 100% and 0% settings are
absolute, and the 50% setting has a range of 47–50% and the 25% setting is actually 23–25%.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
4 Freescale Semiconductor
Module Comparisons
The MSP430FG4619 can use either an internal reference or a pin as a signal to either of the two ACMP
inputs. The QE128 ACMP module can use only the internal reference as the non-inverting input or use
both inputs directly from the pin.
One of the MSP430FG4619 comparator module purposes is to use as a precision slope ADC. The module
has an RC filter in the output. This is not incorporated in the QE128 module but is easily incorporated into
the application board design.
The MSP430FG4619 has a basic timer that extends into a real time clock. The timer can be configured as
a two 8-bit or one 16-bit counter and uses the external clock as a source. The first of the 8-bit counters is
used for the LCD. The QE128 does not have an LCD module. This feature will not be described further.
The second 8-bit counter can be halted to reduce power consumption and generates interrupts with varying
intervals based on the modules configuration. In the 16-bit mode the counters are cascaded. In RTC mode,
the basic timer extends to create a 32-bit counter with a calendar function. In counter mode four individual
8-bit counters are cascaded to provide the 32-bit counter. This provides interrupt triggers at /8, /16, /24,
and /32 intervals. Each counter is individually accessible and may be read or written. The RTC has
automatic counting of seconds, minutes, hours, days of the week, days of the month, month, and year
(including leap year) built in the hardware calendar mode, in BCD or hex formats. The RTC does not
provide an alarm function, although it can be implemented in the software if required, because the module
has interrupt capabilities. The RTC module can be driven by ACLK, SMCLK, or the basic timer counter
that has ACLK, ACLK/256 and SMCLK as sources.
The QE128 devices have a dedicated real time counter module. The RTC is more flexible and has the
choice of three clock sources, two of which are from independent internal clock sources. The 32 kHz
internal oscillator. The 1 kHz low power oscillator and the third one directly from an external
crystal/resonator. The RTC is an 8-bit counter with a prescaler and a software controlled interrupt period.
The prescaler feature means that the counter can count in units of 31.25 μs up to 6.25 seconds with 58 steps
in between. The 8-bit modulo register allows you to multiply that interval up another 256 times. The RTC
can also trigger the ADC to do a conversion when the counter matches the modulo register.
The QE128 RTC module is more flexible than the MSP430FG4619 module; however calendaring has to
be done all the time in the software. This software has memory space and CPU overhead implications that
contain varying effects depending on the application.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 5
Module Comparisons
3.4.1 I/O
Table 5 shows the key parameters of the general purpose I/O pin circuitry and shows the capability of the
functionality on all the parts.
Table 5. Key I/O Features
Data registers Separate input and output Input and output shared
Slew rate control No Yes
Drive strength control No Yes
Internal pull ups No Yes
Port manipulation No Set, toggle and clear on 3 ports
The MSP430FG4619 digital I/O functions are individually controlled. Each port has two data registers,
one holding input data and one holding output data. The I/O are controlled by the function select register
that multiplexes the digital I/O or the peripheral to the pin.
The I/O on the MS9S08QE128 is more flexible but only has one data register for both input and output.
The software must take care of saving the data if the pins directions change. The QE128 I/O has the
additional features of slew rate, drive strength and internal pull ups. Ports C and E have data manipulation
functions set, clear, and toggle. These registers can be loaded with a binary pattern that affect the current
data for the corresponding port; therefore speeding up port manipulation processing.
The MCF51QE128, has the same features as the MC9S08QE128 and also has the Rapid GPIO module on
the chip. This module means that pin toggle rates are typically 1.5–3.5x faster than comparable pins
mapped onto peripherals.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
6 Freescale Semiconductor
Module Comparisons
Number of 16 16
Interrupt granularity Port Module
Pin signal Edge Edge with hold option
The MSP430FG4619 can enable the KBI feature on port 1 (eight pins) or port 2 (eight pins) with individual
pin control like the QE128. An edge on any pin on the selected port sets a flag for the port causing an
interrupt. The edge can be set as rising or falling.
The QE128 has two KBI modules each with eight pins. The QE128 has the ability to individually select
the KBI pin and individually select the polarity of the edge. The QE128 can also hold the interrupt for a
level sense. The interrupts can be disabled if a polling mechanism is preferred. The individual flags can be
polled to highlight the pin that triggered the event.
The KBI trigger functionality is more flexible than the MSP430FG4619 feature, due to the level hold
option.
The MC9S08QE128 has a multiply instruction (MUL) embedded in the HCS08 core. MUL multiplies the
8-bit value in the index register (X) by the 8-bit value in the accumulator to obtain a 16-bit result.The upper
eight bits of the 16 bit- results are located in X and the lower eight bits in the accumulator. This operation
is unsigned.
The MC9S08QE128 also has a divide instruction (DIV) embedded in the core. DIV divides a 16-bit
unsigned dividend by an 8-bit unsigned divisor and places the resulting quotient in the accumulator and
the remainder in the index register, H. An overflow, for instance a quotient bigger than 0xFF or a divisor
of zero, sets the carry bit in the core´s condition code register.
These two basic instructions, MUL AND DIV, signed and other bit size instructions can be created with
software routines, for examples on how to do this, refer to application note AN3348.
The MCF51QE128 supports 16x16(word) and 32x32(long) multiplications that result in 32-bit. Support
for core divide instructions are not available on the ColdFire V1, but can be supported in the software.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 7
Module Comparisons
The MSP430 core does not have multiply or divide support. The MSP430FG4619 has a hardware multiply
module that supports 16x16-bit, 16x8-bit, 8x16-bit and 8x8-bit calculations. The MSP430 core and the
hardware multiply module do not support division.
The LVD module on the QE128 has two levels of warnings and two levels of trip. It can either generate an
interrupt or use polling when the warning level is reached to enable critical parameters to be stored and to
place the MCU into a safe state before the trip point occurs. The MCU can be held in reset until the voltage
recovers or remain the same for the power on reset (POR) circuitry to manage. The POR circuitry kicks in
at 1.4 V where it causes a reset. The reset is held until the voltage recovers to the low LVD threshold.
The MSP430FG4619 has a supply voltage supervisor module that incorporates both LVD- and POR- like
features. The analog supply voltage or an external source can trigger the LVD circuitry (14 levels), whereas
the MCU supply triggers the optional POR circuitry. It does not cause an interrupt. The SW must use
polling. It also does not support warning levels before the event occurs.
3.7 Timer
Table 9 shows the timer module key features.
Table 9. Key Timer Features
Bits 16 16
(Timer B can be 8, 10, 12, or 16)
Modes Input capture Input capture
Output compare Output compare
PWM (center / edge aligned) PWM (center / edge aligned)
Up, down or up-down Free running
Clock Sources 4 3
Prescalers 4 8
Interrupts Channel event Channel event
Timer overflow Timer overflow
The QE128 has three independent 16-bit timer modules with input capture (rising, falling, or either edge),
output compare and pulse width modulation (centre or edge aligned) functionality. There are two
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
8 Freescale Semiconductor
Module Comparisons
6-channel timers and one 3-channel timer. Each module can select one of three clock sources and have
eight prescaler options. They also have a free running counter mode or a 16-bit modulus to control the
counter range. Each channel has an individual interrupt and each module has an overflow interrupt, that
can be enabled individually.
The MSP430FG4619 has two 16-bit timer modules a 3-channel (timer A) and a 7-channel (timer B). The
MSP430FG4619 timer modules have the choice of four clock sources and four prescalers. It can run on
various modes: up counter, down counter, up/down counter, input capture, output compare, and PWM.
The MSP430FG4619 timer B functionality differs from timer A. Timer B can be set as 8-, 10-, 12-, or
16-bits and the registers are buffered.
The functions of the QE128 and MSP430FG4619 are very similar although the implementation of them is
slightly different and require a software change.
IRQ is a non-maskable interrupt. This function is located on a pin shared with the reset function on all of
the devices.
The MSP430FG4619 can generate an IRQ/NMI when an edge occurs on the pin, provided reset function
is disabled as the pin is shared, or while an oscillator fault or flash access violation occurs.
The QE128 IRQ pin is programmable to trigger the event on a rising or falling edge or on a high or low
level. Flash access violations are dealt with differently on the QE128. See Section 3.10.3, “Errors for
details. The QE128 oscillator module has no loss of lock or loss of clock safeguard and no true self clock
mode. In the event of an oscillator fault the application is safeguarded by the watchdog, described in
Section 3.9, “Watchdog. In addition to the COP, in the event losing the external crystal/resonator, the (in
FEE mode) ICS module defaults back to FEI mode, however the associated registers are not updated to
reflect this change. In FLL bypassed or disabled mode the clock is lost.
The IRQ function does differ from one device to the other. Care must be taken that all required functions
are rebuilt while converting the application.
3.9 Watchdog
Also known as the COP, the QE128 watchdog has two clock source options, 1 kHz LPO, or the bus and
four count lengths. If the feature is enabled the circuitry causes a reset if the SRS register is not written in
the required timeframe.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 9
Module Comparisons
The watchdog module on the MSP430FG4619 has two modes. In watchdog mode the module operates like
the COP but is serviced by writing a password and the data to the WDTCTL register. The interval timer
mode is effectively a periodic flag generation mode that must be polled.
The flash blocks on the QE128 are automotive qualified even though the devices are not. The devices do
not follow the automotive test flow, however fab process flow and qualification data that are collected on
the automotive and the non-automotive parts are essentially the same. The MSP430 has yet to achieve this
qualification (as of June 2007).
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
10 Freescale Semiconductor
Module Comparisons
This function helps significantly with emulating EEPROM routines. The smallest size you can program at
a time is a single byte and the smallest erase size is a sector (512 Bytes).
TI MSP430FG4619 also consists of two 64 Kbyte blocks. The main memory is arranged in sectors of
512 bytes like the QE128. These sections can be erased individually and the flash is byte programmable.
The only difference between the two, from a user perspective, is that the MSP430FG4619 has information
memory that is two segments of 128 bytes. These sections can be erased individually or in bulk with the
main memory. These two small flash areas are useful for storing serial numbers and security keys and for
storing small amount of data that is updated frequently. The fact that they are separate helps to protect them
from corruption by the main program.
3.10.3 Errors
If a violation occurs in either of the QE128 flash blocks the flash access error (FACCERR) bit in the flash
status register is set and suppresses further commands until the bit is cleared.
The MSP430FG4619 generates a non-maskable interrupt (NMI) also known as IRQ in the event of a flash
access violation as described in Section 3.8, “Interrupt Request (IRQ)
V supply
3.6V
Traditional Flash Programming Range
2.4V
2.1V
Prolonged Battery Life
time
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 11
Module Comparisons
If an application requires writing to the flash to store data, using the flash array to emulate EEPROM, the
QE128 enables the battery life to be extended compared to the MSP430FG4619.
3.11.1 IIC
The IIC on the QE128 are two separate dedicated modules. Supporting the following IIC functions:
• Multi-master and slave transmit and receive modes
• General call
• Bus busy detection
• Ack generation/detection
• Start and stop generation/detection with repeated start generation
• Call address match interrupt
• Arbitration lost interrupt
• 64 frequencies selectable
The MSP430FG4619 has a very similar set of features, but the IIC is a mode of the USCI_B0 module. IIC
is controlled by a state machine when selected.
3.11.2 SCI
Table 12 shows the key parameters of the SCI modules and shows the functionality of each module.
Table 12. Key SCI Features
MSP430FG4619 QE128
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
12 Freescale Semiconductor
Module Comparisons
The QE128 has two SCI modules on chip. They support full duplex NRZ format with programmable baud
rate. The module can be interrupt driven or polled and has hardware parity generation checking along with
8-bit or 9-bit character length selection and 11-bit or 13-bit break detection. It has double buffering on the
transmit and receive pins and can wake by idle line or address mark. The modules also have the option to
invert the transmission and reception polarity. The SCI modules have a loop mode where the transmitter
in connected internally to the receiver for error detection and can also be set for a half-duplex operation.
The SCI modules equivalent on the MSP430FG4619 is the UART_AO mode of the USART1 and USCI
modules. The MSP430FG4619 UARTs also have loop mode but do not have the option to invert the
transmission. The USCI UART supports IrDA communication formatting and can shift the data out MSB
or LSB first, whereas the QE128 and USART shift LSB first only.
3.11.3 SPI
The SPI modules on all the devices are very similar. Table 13 highlights the main features and differences.
Table 13. Key SPI Features
MSP430FG4619 QE128
The SPI modules on the QE128 can operate in master and slave modes in either full duplex or bidirectional
single wire modes.
The bit transmission rate is programmable and like the SCI, the input and outputs are double buffered. The
modules can also be set up to transmit MSB or LSB first.
The SPI modules equivalent on the MSP430FG4619 is the SPI mode of the USART and USCI modules.
The major differences are that the MSP430FG4619 SPI has separate transmit and receive control, buffer
registers and separate interrupt vectors for transmit and receive, recoverable by software on QE128 as Tx
and Rx not distinguished by hardware. The USCI module SPI has the functionality to run as a slave in
LPM4.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 13
Module Comparisons
3.12 Debugger
Table 14 gives a quick overview of the key debugger parameters of both parts modules.
Table 14. Key Debugger Features
JTAG (MSP430FG4619) and BDM (QE128) are both generic real time debugging interfaces with
breakpoint and trace facilities.
The BDM is a single-pin connection on the package and uses the DCOL/2 as a clock source. This means
that when the FLL is disabled in FBILP or FBELP ICS modes, or the device is in stop2 or stop3 with
ENBDM = 0 the debugging capabilities are not available. The BDM does not have a fuse to allow
permanent disabling of the BDM. The ENBDM bit to enable the module is located in memory inaccessible
by programs and therefore cannot be accessed in normal field operation.
The ColdFireV1 core supports BDM functionality using the HCS08’s single-pin interface. The traditional
3-pin full-duplex ColdFire BDM serial communication protocol based on the 17-bit data packets is
replaced with the HCS08 protocol where all communications are based on an 8-bit data packet using a
single package pin (BKGD).
The CFV1 debug funtion supports:
• Real time debugging, with six hardware breakpoints (four PC, one address, and one data) that can
be configured into a one or two level trigger with a progammable response (processor halt or
interrupt).
• Capture of compressed processor status and debug data into on-chip trace buffer provides program
(and optional salve bus data) trace capabilities.
• On-chip trace buffer provides programmable start/stop record conditions.
• Debug resources are accessible via single pin BDM interface or the priviliged WDEBUG
instruction from the core.
JTAG requires four dedicated I/O pins on the MSP430FG4619 device as shown in Table 15. One
advantage of this set up is that the JTAG is available for use as long as TCK is provided and the JTAG
modules fuse is not blown.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
14 Freescale Semiconductor
Clock Generator Module
1. Note that the term DCO in terms of the Freescale ICS references the FLL source multiplier mechanism, whereas the term
DCO in regards to the TI FLL+ references the 1 MHz oscillator and the multiplier.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 15
Clock Generator Module
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
16 Freescale Semiconductor
Clock Generator Module
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 17
Clock Generator Module
4.1.1 FLL
The FLL block in the ICS has a limited input range of 31.25 to 39.06 kHz to ensure the DCO operates
around the center of the taps. The FLL+ module does not have this limitation. The DCO range can be
adjusted by the FNx bits as shown in Table 16.
Table 16. FLL+ DCO Range Control Bits
0 0 0 0 0.65—6.1
0 0 0 1 1.3—12.1
0 0 1 X 2—17.9
0 1 X X 2.8—26.6
1 X X X 4.2—46
The FLL+ FLL input frequency is manipulated by the settings of FLLD (x1, x2, x4, x8) and N (seven bits
in the system clock control register). The QE128 ICS module has three DCO ranges and a bus divider
(BDIV) that control the ICS output frequency.
Table 17 illustrates examples of clock module output frequency ranges with 32.768 kHz and 8 MHz
crystals.
Table 17. Clock Generation Ranges
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
18 Freescale Semiconductor
Clock Generator Module
FLL on, using internal oscillator to supply Not supported FLL engaged internal (FEI)
CPU and bus clocks
FLL on, using external oscillator supplying SELMx = 0X FLL engaged external (FEE)
CPU and bus clocks SCG0 = 0
SCG1 = 0
FLL on, but CPU and bus clocks supplied FLL+ loop control off, N used to multiply FLL bypassed internal (FBI)
directly from internal oscillator
FLL off, BDC disabled, CPU and bus Not supported FLL bypassed internal low power
clocks supplied directly from internal (FBILP)
oscillator
FLL on, but CPU and bus clocks supplied SELMx = 1X FLL bypassed external (FBE)
directly from external oscillator SCG0 = X
SCG1 = X
FLL off, BDC disabled, CPU and bus SELMx = 1X FLL bypassed external low power
clocks supplied directly from external SCG0 = 1 (FBELP)
oscillator SCG1 = X
FLL off, BDC disabled, internal/external SCG0 = 1 Stop2
clocks can be enabled/disabled in SCG1 = 1
software OSCOFF = 1
CPUOFF = 1
FLL disabled, but DCOOUT running. SELMx = 0X Self clock mode
SCG0 = 1 (not available on ICS)
SCG1 = 1
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 19
CPU Cores
7 6 5 4 3 2 1 0
R
TPM3 TPM2 TPM1 ADC IIC2 IIC1 SCI2 SC1
W
Reset 1 1 1 1 1 1 1 1
7 6 5 4 3 2 1 0
R
DBG FLS IRQ KBI ACMP RTC SPI2 SPI1
W
Reset 1 1 1 1 1 1 1 1
The MSP430FG4619 does not have such a register. MCLK, SMCLK an ACLK(/n) can be disabled
individually but as many modules can use these clock sources. This is not a very flexible solution.
5 CPU Cores
The MSP430 core, the HCS08 core and the ColdFire V1 core are very different and therefore hard to
compare. The HCS08 is an 8-bit CPU with a CISC instruction set, the MSP430 is a 16-bit RISC core and
ColdFireV1 is a 32-bit variable length (VL) RISC core.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
20 Freescale Semiconductor
CPU Cores
• Stop3 mode on the QE128 devices is equivalent to LPM2 or LPM3 depending on the stop3 settings.
Stop3 and LPM3 have wake up times of 6μs.
• Stop2 mode is equivalent to LPM4.
MSP430FG4619 QE128
Module
MCLK ACLK SMCLK Other ICSOUT IRCLK ERCLK LPO Other
ACMP X /2 X
ADC X X X Internal ADC 5 MHz /2 X
osc
COP X X X /2 X
CPU X /1
Debugger X TCK ICSLCLK
Flash X X X /2
IIC X X Master /2
RTC X X Timer X X OSCOUT
SCI X X Master /2
SPI X X Master /2
TPM X X External source /2 XCLK or
external
source
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 21
CPU Cores
Stop3
The MCU can be put into and out of LPR mode by the single LP bit in the ICS module provided that all
the required conditions are met.
Exit from wait and LPW can be achieved through any enabled interrupt, therefore any module can place
the MCU back into run or LPR mode.
Entry into stop3 and stop2 is governed by the setting of the PPDC bit in the SPMSC2 register and the
setting on the BDM and LVD modules. The RTC, LVD/LVW, ADC, ACMP, IRQ, SCI and KBI modules
bring the MCU out of stop3 as well as a reset. RTC, IRQ or RESET are the only paths out of stop2. Stop2
mode exists as if a POR was executed.
The mode selections chapter in the QE128 reference manuals describes these mode transitions in full. The
MSP430FG4619 moves through modes via active mode as shown in Figure 6.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
22 Freescale Semiconductor
Conclusion
LPM0
LPM4 LPM1
Active
Mode
LPM3 LPM2
The setting of the SCG0, SCG1, OSCOFF and CPUOFF bits in the CPU status register, govern the mode
transitions. Any enabled interrupt can bring the MCU out of the low power modes.
The watchdog modules on the QE128 and the MSP430FG4619 devices cause a reset which after the
startup routine, place the device back in to run/active mode.
6 Conclusion
The MSP430FG4619 and the QE128 are not identical parts in terms of pin count or features but are
reasonably similar and are targeted at similar applications. The common modules, although implemented
differently are more often than not similar in terms of features, but have different results in terms of power
consumption.
The second in this series of application notes (available early 2008) comparing the MSP430FG4619 and
the QE128 concentrate on showing, by example, how to convert a typical MSP430FG4619 application in
to a QE128 application.
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 23
Bibliography
7 Bibliography
MC9S08QE128 Reference Manual Rev2 Draft A
MC9S08QE128 Data Sheet Rev3 Draft A
MSP430x4xx Family User’s Guide SLAU056F/2006
MSP430xG461x Mixed Signal Microcontroller SLAS508D April 2006, Revised January 2007
MSP430 Flash Memory Characteristics by Peter Forstner – SLAA334 September 2006
MSP430 Family Application Reports SLAA024 January 200X
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
Freescale Semiconductor 24
Bibliography
Differences between the TI MSP430 and MC9S08QE128 and MCF51QE128 Flexis Microcontrollers, Rev. 0
25 Freescale Semiconductor
How to Reach Us: Information in this document is provided solely to enable system and software
implementers to use Freescale Semiconductor products. There are no express or
Home Page: implied copyright licenses granted hereunder to design or fabricate any integrated
www.freescale.com circuits or integrated circuits based on the information in this document.
Web Support:
http://www.freescale.com/support Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
USA/Europe or Locations Not Listed: guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor, Inc. Freescale Semiconductor assume any liability arising out of the application or use of any
Technical Information Center, EL516 product or circuit, and specifically disclaims any and all liability, including without
2100 East Elliot Road
Tempe, Arizona 85284 limitation consequential or incidental damages. “Typical” parameters that may be
+1-800-521-6274 or +1-480-768-2130 provided in Freescale Semiconductor data sheets and/or specifications can and do vary
www.freescale.com/support in different applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer application by
Europe, Middle East, and Africa: customer’s technical experts. Freescale Semiconductor does not convey any license
Freescale Halbleiter Deutschland GmbH under its patent rights nor the rights of others. Freescale Semiconductor products are
Technical Information Center not designed, intended, or authorized for use as components in systems intended for
Schatzbogen 7 surgical implant into the body, or other applications intended to support or sustain life,
81829 Muenchen, Germany
+44 1296 380 456 (English) or for any other application in which the failure of the Freescale Semiconductor product
+46 8 52200080 (English) could create a situation where personal injury or death may occur. Should Buyer
+49 89 92103 559 (German) purchase or use Freescale Semiconductor products for any such unintended or
+33 1 69 35 48 48 (French) unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and
www.freescale.com/support its officers, employees, subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
Japan: directly or indirectly, any claim of personal injury or death associated with such
Freescale Semiconductor Japan Ltd. unintended or unauthorized use, even if such claim alleges that Freescale
Headquarters
ARCO Tower 15F Semiconductor was negligent regarding the design or manufacture of the part.
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064 RoHS-compliant and/or Pb-free versions of Freescale products have the functionality
Japan and electrical characteristics as their non-RoHS-compliant and/or non-Pb-free
0120 191014 or +81 3 5437 9125
[email protected] counterparts. For further information, see http://www.freescale.com or contact your
Freescale sales representative.
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd. For information on Freescale’s Environmental Products program, go to
Technical Information Center
2 Dai King Street http://www.freescale.com/epp.
Tai Po Industrial Estate
Tai Po, N.T., Hong Kong Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
+800 2666 8080 All other product or service names are the property of their respective owners.
[email protected]
© Freescale Semiconductor, Inc. 2007. All rights reserved.
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
[email protected]