An5117 PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 43

NXP Semiconductors Document Number: AN5117

Application Note Rev. 1, 06/2016

Kinetis Migration Guide: K10 - 120 MHz to


KV5x

Contents
1. Introduction 1. Introduction........................................................................ 2
1.1. Part numbering and mask set information ............... 3
This document describes the details of migrating from 2. System level comparison ................................................... 3
Kinetis K10-120 MHz to KV5x-240 MHz 2.1. KV5x 240 MHz device overview ........................... 3
microcontrollers. Migrating between the two devices may 2.2. K10 120 MHz device overview .............................. 3
2.3. High level comparison ............................................ 4
require hardware and/or software changes. This document 2.4. System modules comparison ................................... 7
describes the changes required when migrating from 3. Peripheral module comparison ......................................... 17
Kinetis K10-120 MHz to KV5x-240 MHz. 3.1. Unchanged modules .............................................. 18
3.2. Modified modules ................................................. 20
3.3. New modules ........................................................ 35
4. Hardware comparison ...................................................... 37
4.1. Package/pinout differences ................................... 38
4.2. GPIO considerations ............................................. 43
4.3. Clocking considerations ........................................ 43
5. Revision history ............................................................... 43

2016 NXP B.V.


System level comparison

1.1. Part numbering and mask set information


The table below lists the Kinetis K10-120 MHz and KV5x-240 MHz part numbers referred in this
document.
Table 1. Part number migration
Part Number Origin (144 LQFP) Part Number Destination
MK10FN1M0VLQ12 MKV58F1M0VLQ24
MKV56F1M0VLQ24
MK10FX512VLQ12 MKV58F512VLQ24
MKV56F512VLQ24

This document is focused on addressing the changes in functionality between these Kinetis
microcontrollers. For general hardware and software design for the Kinetis V microcontrollers, see the
Quick Reference Users Guide (KVQRUG.pdf).

2. System level comparison


This section provides a comparison between the KV5x 240 MHz and K10 120 MHz devices.

2.1. KV5x 240 MHz device overview


The KV5x device is the first Cortex-M7 based device by NXP that offers exceptional precision, sensing,
and control for some of the most demanding applications in motor control and power conversion. This
device operates at a maximum clock frequency of 240 MHz and features a variety of modules suited to
motor control and power conversion, such as:
High resolution pulse-width modulation (PWM) with down to 260 picosecond resolution
Four 12-bit analog-to-digital converters (ADCs) sampling at a maximum of 5 Mega Samples Per
Second (MSPS)
Total of 44 PWM channels for support of multi-motor systems with PFC
Three FlexCAN modules
Optional Ethernet communications

2.2. K10 120 MHz device overview


The K10 120 MHz device is a Cortex-M4 based device targeted for the general market. It features:
Fast, high precision 16-bit ADCs
12-bit DACs
High speed comparators
Powerful FlexTimers for PWM and motor control functions

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 3
System level comparison

2.3. High level comparison


As these systems are built on different processor cores and meant for different purposes, there will be a
significant number of differences between the two devices. This does not mean that there is not a logical
migration path between the two devices. Table 2 outlines the system level differences at a high level.

Table 2. System level differences


Feature K10 120 MHz KV5x 240 MHz
Processor Core Cortex-M4 Cortex-M7
Max CPU frequency 120 MHz 240 MHz
Mips/MHz 1.27 / 1.55 / 1.95 2.14 / 2.55 / 3.23
Cache 2 x 8KB I/D 16 KB I + 8 KB D
MPU NXP System MPU ARM MPU + NXP System MPU
FPU Single Floating Point Single Floating Point
DSP Yes Yes
Debug JTAG + cJTAG + SWD JTAG + cJTAG + SWD
Boundary Scan Yes Yes
Flash size 1MB or 512KB + 512 KB FlexNVM 1MB or 512 KB
RAM 128KB 256KB/128KB
SDRAM LPDDR / DDR / DDR2 None
NAND flash 8/16 b data interface None
External Flexbus Yes Yes
CRC Yes Yes
Oscillator 3-32 MHz 3-32 MHz
PLL 64 120 MHz 90 240 MHz
FLL 20-100 MHz 20-100 MHz

2.3.1. Memory map comparison


The memory map of the KV5x device is much different from the K10 120 MHz device. It is very
important that you update your linker control file and do not try to use the K10 120 MHz device linker
control file when compiling your KV5x project or vice versa. Table 3 is a side-by-side comparison of
the two memory maps.
Table 3. Side-by-side comparison of memory maps
K10 KV5X
System 32-bit Address Destination Slave System 32-bit Byte Destination Slave
Range Address Range
0x0000_00000x07FF_FFFF Program flash and read- 0x0000_0000 ITCM RAM - 64K bytes
only data (Includes 0x0000_FFFF
exception vectors in first
1024 bytes)
0x0800_00000x0FFF_FFFF DRAM Controller (Aliased 0x0001_0000 Reserved
Area) 0x0FFF_FFFF
0x1000_00000x13FF_FFFF FlexNVM 0x1000_0000 Code Flash 1M bytes
0x100F_FFFF (cache-able)
0x1000_00000x13FF_FFFF Reserved 0x1010_0000 Reserved
0x17FF_FFFF
0x1400_00000x17FF_FFFF For devices with 0x1800_0000-0x1800_0FFF EEERAM (4Kbytes)
FlexNVM: FlexRAM
0x1400_00000x17FF_FFFF For devices with program 0x1800_1000- Reserved
flash only: Programming 0x1FFF_FFFF
acceleration RAM

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
4 NXP Semiconductors
System level comparison

Table 3. Side-by-side comparison of memory maps (contd)


K10 KV5X
0x1800_00000x1BFF_FFFF FlexBus (Aliased Area). 0x2000_0000 DTCM - D0TCM - 64K and
0x1800_0000- 0x2001_FFFF D1TCM 64K
0x1BFF_FFFF are
mapped to the same
access space of
0x9800_0000-
0x9BFF_FFFF.
0x1C00_00000x1FFF_FFFF SRAM_L: Lower SRAM 0x2002_0000 Reserved
(ICODE/DCODE) 0x2EFF_FFFF
0x2000_00000x200F_FFFF SRAM_U: Upper SRAM 0x2F00_0000 OC-RAM 64K ( cache-able)
bitband region 0x2F00_FFFF
0x2010_00000x21FF_FFFF Reserved 0x2F01_0000 Reserved
0x3FFF_FFFF
0x2200_00000x23FF_FFFF Aliased to TCMU SRAM 0x4000_0000 AIPS0
bitband 0x4007_FFFF
0x2400_00000x3FFF_FFFF Reserved 0x4008_0000 AIPS1
0x400F_EFFF
0x4000_00000x4007_FFFF Bitband region for AIPS0 0x400F_F000 Bitband region for general
0x400F_FFFF purpose input/ output
(GPIO)
0x4008_00000x400F_EFFF Bitband region for AIPS1 0x4010_0000 Reserved
0x43FF_FFFF
0x400F_F0000x400F_FFFF Bitband region for GPIO 0x4400_0000 BME
0x5FFF_FFFF
0x4010_00000x41FF_FFFF Reserved 0x6000_0000 Reserved
0xAFFF_FFFF
0x4200_00000x43FF_FFFF Aliased to AIPS and 0xB000_0000- Flexbus ( 256Mbyte range)
GPIO bitband 0xBFFF_FFFF
0x4400_00000x5FFF_FFFF Reserved 0xC000_0000- Reserved
0xDFFF_FFFF
0x6000_00000x6FFF_FFFF Flexbus (External 0xE000_0000 Private Peripherals
memory - Write-back) 0xE00F_FFFF
0x9000_00000x9FFF_FFFF FlexBus (External 0xE010_0000 - Reserved
memory - Write-through) 0xFFFF_FFFF
0xA000_00000xDFFF_FFFF FlexBus (External
peripheral - not
executable)
0xE000_00000xE00F_FFFF Private Peripherals
0xE010_00000xFFFF_FFFF Reserved

2.3.2. Clocking differences


It is important to note the differences in the clocking diagrams as these differences can significantly
affect the setup of your application. Figure 1 shows the K10 120 MHz clocking diagram and Figure 2
shows the KV5x 240 MHz clocking diagram.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 5
System level comparison

MCG CLKGEN
4 MHz IRC FCRDIV
MCGIRCLK Clock options for
CG
32 kHz IRC MCGFFCLK some peripherals
2
(see note)

System oscillator 1 FLL OUTDIV1 CG Core / system clocks


EXTAL1 OSC1CLK
XTAL_CLK
PLL 0 OUTDIV2 CG Bus clock
OSC CG
MCGOUTCLK
XTAL1 logic OUTDIV3 CG FlexBus clock

PLL 1
OUTDIV4 CG Flash clock
MCGFLLCLK
MCGPLLCLK/
FRDIV MCGPLL0CLK MCGFLLCLK
MCGPLL1CLK
System oscillator 0
MCGPLL1CLK

Clock options for some


peripherals (see note)
EXTAL0 MCGPLL0CLK
OSC0CLK
OSC1ERCLK
XTAL_CLK
OSC0ERCLK
OSC CG
XTAL0 logic OSC032KCLK
ERCLK32K

RTC oscillator PMC


EXTAL32 LPO
OSC logic PMC logic
XTAL32
CG Clock gat e Real-time clock
N ot e : See subsequent sect ions for det ails on where t hese clocks are used.

Figure 1. K10 120 MHz device clocking diagram

MCG SIM

4 MHz IRC FCRDIV


MCGIRCLK Clock options for
CG
32 kHz IRC MCGFFCLK some peripherals
(see note)

FLL OUTDIV1 CG System (CPU) clock

MCGOUTCLK OUTDIV2 CG Fast peripheral clock

PLL
OUTDIV3 CG Flexbus clock
FRDIV
MCGFLLCLK
MCGPLLCLK
PRDIV OUTDIV4 CG Bus /Flash clock

Nano-edge1x clock
System oscillator Nano-edge2x clock
EXTAL OSCCLK
XTAL_CLK OSCERCLK_UNDIV
CG
OSC
DIV OSCERCLK
logic
XTAL OSC32KCLK
ERCLK32K

PMC
LPO
PMC logic

CG Clock gat e
N ot e : See subsequent sect ions for det ails on where t hese clocks are used.
Figure 2. KV5x 240 MHz clocking diagram

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
6 NXP Semiconductors
System level comparison

As can be seen in the KV5x clocking diagram, the main clock (MCGOUTCLK) is routed to four
dividers just as in K10. However, in KV5x, OUTDIV2 is routed to a new clock path, the fast peripheral
clock. The Bus and Flash clock are now combined onto OUTDIV4 in KV5x. The following sections
describe which peripherals are used by which clocks.
NOTE
The Fast Peripheral clock on KV5x is capable of much higher frequencies
than the Bus clock on K10. This is considered in the migration from K10
to KV5x.
Other key differences include only a single PLL and a single oscillator for KV5x. If your application
uses PLL1, System Oscillator 1, or the RTC oscillator, you will need to remove the code and the
hardware associated with these items and migrate to the main oscillator (System Oscillator 0) and PLL
(PLL0).

2.3.3. Peripheral interconnect


The KV5x device adds an Inter-Peripheral Crossbar Switch (XBAR) that allows flexibility in connecting
inputs (external GPIO or internal module outputs) to outputs (other external GPIO or internal module
inputs). This module is discussed in the subsequent sections where peripheral interconnect options
change.

2.4. System modules comparison


Table 4 lists the system level module differences in the programming model on the KV5x device. These
modules are treated slightly differently because there is only one of each of these per Kinetis device
(with the exception of the oscillator) and/or are typically device specific. Each of these modules that
require changes is discussed in detail in the following subsections.

Table 4. System modules comparison


Module Programming Model Comments
MCG Some differences
OSC Additions
SMC Some differences
PMC Additions
RCM Some differences
AXBS Same
FMC Some differences
FTFE Some differences

2.4.1. Multipurpose clock generator


The biggest difference between the K10 120 MHz device MCG and the KV5x 240 MHz device MCG is
that the KV5x MCG does not include a second PLL and it only includes one oscillator. Therefore, if
your application is using PLL1, then it is necessary to modify your code to use the main PLL (PLL0).
Likewise, if you are using an oscillator other than OSC0, you need to use OSC0. This also requires a

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 7
System level comparison

hardware change. For details on hardware changes, see to the pin mux comparison in this migration
guide. See Figure 3 and Figure 4 for a block diagram comparison.

Cryst al Oscillat or Cryst al Oscillat or Cryst al Oscillat or


( OSC1) ( OSC2) ( OSC0)

OSCINIT1 OSCSEL OSCINIT0 CLKS


EREFS1 EREFS0 MCG Crystal Oscillator PLLCLKEN0
HGO1 OSCSELCLK Enable Detect IPLLCLKEN1
HGO0
RANGE1 RANGE0 IREFS
PLLS
STOP
ATMF
IREFSTEN
Auto Trim MCGIRCLK
ATMS IRCLKEN
SCTRIM Machine
Internal
SCFTRIM Reference IRCS CLKS
Clock Slow Clock
Generator Fast Clock
FCTRIM
/ 2n
IRCSCLK
n=0-7 MCGOUTCLK

CME0
CME1 External LOCS0 PLLS
Clock DRS
CME2 Monitor LOCS1
IREFS
LOCS2 DMX32 Filter DCO
LOCRE0
LOCRE1 FLTPRSRV
/ 2n /2
5
LOCRE2
DCOOUT MCGFLLCLK
n=0-7
FLL
FCRDIV MCGFFCLK
Peripheral RANGE0 /2
BUSCLK Sync LOLIE0
LP Clock Valid
PLLCLKEN0
Lock
Phase Charge Detector
/ ( 1,2,...8) MCGPLL0CLK
Detector Pump VCO /2
Internal
PRDIV0
VDIV0 Filter LOLS0 LOCK0 MCGPLL0CLK2X
PLLREFSEL0
/ ( 16,17,18....47) VCOOUT VCOOUT_90 MCGDDRCLK2X
PLL0

LOLIE1 MCGPLL1CLK
Phase Charge
/ ( 1,2,...8) VCO
Detector Pump /2
Lock MCGPLL1CLK2X
PRDIV1 Internal Detector
VDIV1 Filter
PLLREFSEL1
LOLS1 LOCK1
PLLCLKEN1 / ( 16,17,18....47) VCOOUT
PLL1

Multipurpose Clock Generator (MCG)

Figure 3. K10 MCG block diagram

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
8 NXP Semiconductors
System level comparison

Crystal Oscillator

External Reference Clock

CLKS
OSCINIT0 PLLCLKEN0 MCG Crystal Oscillator
EREFS0 IREFS Enable Detect
HGO0 PLLS
ATMS
RANGE0 STOP

SELCLK Auto Trim Machine IREFSTEN


IRCLKEN MCGIRCLK

SCTRIM Internal IRCS


SCFTRIM Reference CLKS
Clock Slow Clock
n
Generator Fast Clock /2 IRCSCLK
FCTRIM
n=0-7 MCGOUTCLK

CME0/ MCGFLLCLK
CME LOCRE0

DRS
External
Clock DMX32 Filter DCO
Monitor
FLTPRSRV

LOCS0 DCOOUT PLLS


FLL
FRDIV IREFS
Clock
n LP Valid
/2
n=0-7 / 25 Sync
MCGFFCLK

PRDIV0
LOLIE0
/(1,2,3,4,5....,25) Phase Charge
Detector Pump VCO Lock
PLLCLKEN0 Detector
IREFST Internal
VDIV0
Filter
PLLST LOLS0 LOCK0
Peripheral BUSCLK MCGPLLCLK
CLKST VCOOUT
/(24,25,26,...,55)
IRCST
PLL
ATMST
Multipurpose Clock Generator (MCG)

Figure 4. KV5x MCG block diagram

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 9
System level comparison

2.4.1.1. MCG memory map comparison


There is no change to the main memory map. The registers of the MCG for KV5x are a subset of the
MCG registers for K10 and they reside in the same locations for both devices. However, there may be
some differences in the functionality of some bits within the registers. The following section compares
those register differences.

Figure 5. MCG Control 2 register (MCG_C2) KV5x

Added bits:
FCFTRIM: Fast Internal Reference Clock Fine Trim This addition enables greater
resolution in the Fast Internal Reference Clock Fine Trim.

Figure 6. MCG Control 5 register (MCG_C5) KV5x

Removed bits:
PLLREFSEL0: PLL0 External Reference Select This is because KV5x has only one
reference selection and the PLLREFSEL0 bit has been removed.

Figure 7. MCG Control 8 register (MCG_C8)

Added bits:
LOLRE: PLL Loss of Lock Reset Enable. This bit enables the loss of lock detection
circuitry to request a reset of the chip upon loss of PLL lock.
Removed bits:
LOCRE1: Loss of Clock Reset Enable This bit was used strictly for the second
oscillator, which is not present on KV5x.
CME1: Clock Monitor Enable 1 This bit was strictly for the second oscillator, which is
not present on KV5x.
LOCS1: RTC Loss of Clock Status This bit was used strictly for the RTC clock, which
is not present on KV5x.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
10 NXP Semiconductors
System level comparison

2.4.2. Oscillator
There are two major differences between the oscillators on these two devices:
The K10 120 MHz device contains two high-frequency capable oscillators. If you are using the
second oscillator, you should migrate to the first.
The KV5x device adds a mechanism to divide OSCERCLK to allow more flexibility in
peripheral frequencies. This results in a slight block diagram modification and memory map
register definition modification.
Figure 8 is a block diagram of the KV5x Oscillator block with the highlighted addition.

EXTAL XTAL

OSC_CLK_OUT
OSC Clock Enable Mux
OSCERCLK_UNDIV
ERCLKEN

XTL_CLK ERPS DIV


Range selections
Low Power config Oscillator Circuits EN OSCERCLK

OSC32KCLK

4096 CNT_DONE_4096
ERCLKEN EREFSTEN OSC_EN
Counter

Control and Decoding OSCCLK


OSC clock selection
logic

STOP

Figure 8. Oscillator block diagram KV5x

The following is a comparison of the memory map of the K10 and KV5x oscillators

Figure 9. OSC Memory Map/Register Definition K10

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 11
System level comparison

Figure 10. OSC memory map/register definition KV5x

Since there are no changes between the K10 120 MHz device OSC Control register and the KV5x OSC
Control register, your code should work as is on the KV5x device and no memory map comparison is
needed. Only the new OSC_DIV register are briefly discussed below.

2.4.2.1. OSC_DIV register

Figure 11. OSC_DIV register

Added bits:
ERPS: ERCLK prescaler This bit field allows the oscillator to be divided by 1, 2, 4, or 8
enabling flexibility in the clock frequency that is fed to the peripheral modules.

2.4.3. System mode controller (SMC)


The K10 120 MHz device implements an older version of the SMC than is present on the KV5x device.
The following list summarizes the changes between the K10 and KV5x:
HSRUN mode The KV5x SMC contains a High-Speed RUN (HSRUN) option that the K10
does not offer. This feature allows the KV5x to operation at speeds up to 240 MHz.
VLLS0 mode The KV5x SMC adds a VLLS0 mode of operation for increased power savings
mode.
LLS mode The LLS mode has been removed from KV5x. If your application was using this
mode of operation, it is recommended to use VLPS mode.
SMC_VLLSCTRL register The SMC_VLLSCTRL register of K10 has been renamed to
SMC_STOPCTRL in KV5x.
The following section 2.4.3.1 is a detailed register comparison.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
12 NXP Semiconductors
System level comparison

2.4.3.1. SMC memory map comparison

Figure 12. SMC Power Mode Protection register (SMC_PMPROT)

Added bits:
AHSRUN: Allow High Speed RUN mode This bit has been added to allow the High Speed
Run mode.
Removed bits:
ALLS: Allow Low-Leakage Stop mode This bit has been removed because KV5x does not
support the Low-Leakage Stop mode.

Figure 13. SMC Power Mode Control register (SMC_PMCTRL)

Removed bits:
LPWUI: Low Power Wake Up on Interrupt The LPWUI bit has been removed from the KV5x
SMC_PMCTRL register because KV5x does not support this functionality.

Figure 14. SMC Stop Control register (SMC_STOPCTRL; formerly SMC_VLLSCTRL) KV5x

Added bits:
PSTOPO: Partial Stop Option Controls the Partial STOP mode options. Partial stop is an
added clocking option of the STOP mode and allows the customization of which clocks to
disable when entering STOP.
PORPO: POR Power Option Controls whether the POR detect circuit is enabled or disabled in
VLLS0.
RAM2PO: RAM2 Power Option Determines whether the RAM2 section is powered in
VLLS2.
LPOPO: LPO Power Option Enables or disables the 1 kHz LPO clock in VLLSx modes.

2.4.4. Power mode controller (PMC)


The KV5x device implements an improved PMC that adds an option to keep the band-gap voltage
reference enabled in VLPx modes. The KV5x device includes a high-voltage detect circuit as well as a
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 13
System level comparison

low-voltage detect circuit. The high-voltage detect circuit is configured to reset the device or simply
generate an interrupt. The PMC registers are of the same width and are in the same locations on both
the devices. So you can port the K10 code can directly to the KV5x code. The following is a detailed
look at the enhancements of the KV5x PMC.

2.4.4.1. PMC memory map comparison

Figure 15. PMC Regulator Status and Control register (PMC_REGSC) KV5x

Added bits:
BGEN: Bandgap Enable in VLPx Operation KV5x adds the BGEN bit which allows the
bandgap voltage reference to be enabled in VLPx and VLLSx modes.

Figure 16. PMC High Voltage Detect Status and Control 1 register (PMC_HVDSC1) KV5x

Added bits:
HVDF: High-Voltage Detect Flag Indicates if a high-voltage detect event has occurred.
HVDACK High-Voltage Detect Acknowledge This bit is used to acknowledge high voltage
detect errors and clears the HVDF bit.
HVDIE: High-Voltage Detect Interrupt Enable Enables the High-Voltage Detect interrupt.
HVDRE: High-Voltage Detect Reset Enable Enables the ability to generate a reset when a
high-voltage event occurs.
HVDV: High-Voltage Detect Voltage Select Selects the trip point voltage for high-voltage
events.

2.4.5. Reset control module (RCM)


The KV5x module adds two registers (plus some bits) to the RCM and removes registers/bits related to
the EZPort module. If your application was using the EZPort you need to remove these references.
Figure 17 below shows the high-level memory map for the KV5x devices and highlights the differences
as compared against the 120MHz K10.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
14 NXP Semiconductors
System level comparison

Figure 17. KV5x RCM Memory Map

2.4.5.1. RCM memory map comparison

Figure 18. RCM System Reset Status register 0 (RCM_SRS0) KV5x

Added bits:
LOL: Loss-of-Lock Indicates that reset was caused by a loss of lock in the PLL.

Figure 19. RCM System Reset Status register 1 (RCM_SRS1) KV5x

Removed bits:
EZPT: The EZPT bit has been removed from the RCM_SRS1 register as KV5x does not include
the EZ Port module.

2.4.5.2. Register additions

Figure 20. RCM Sticky System Reset Status register 0 (RCM_SSRS0) KV5x

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 15
System level comparison

Added bits:
SPOR: Sticky Power-On Reset Indicates a reset has been caused by the power-on detection
logic; must be cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx
resets.
SPIN: Sticky External Reset Pin Indicates a reset has been caused by an active-low level on the
external RESET pin; must be cleared by software as it is unaffected by resets except for POR,
LVD, or VLLSx resets.
SWDOG: Sticky Watchdog Indicates a reset has been caused by the watchdog timer timing
out; must be cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx
resets.
SLOL: Sticky Loss-of-Lock Reset Indicates a reset has been caused by a loss of lock in the
MCG PLL; must be cleared by software as it is unaffected by resets except for POR, LVD, or
VLLSx resets.
SLOC: Sticky Loss-of-Clock Reset Indicates a reset has been caused by a loss of the external
clock; must be cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx
resets.
SLVD: Sticky Low-Voltage Detect Reset Indicates a reset has been caused by the device
supply voltage dropping below the LVD trip point (and PMC_LVDSC1[LVDRE] is set); must
be cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx resets.
SWAKEUP: Sticky Low Leakage Wakeup Reset Indicates a reset has been caused by an
enabled LLWU module wakeup source while the device was in a low leakage mode; must be
cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx resets.

Figure 21. RCM Sticky System Reset Status register 1 (RCM_SSRS1) KV5x

Added bits:
SSACKERR: Sticky Stop Mode Acknowledge Error Reset Indicates a reset has been caused by
a failure of one or more peripherals to acknowledge a Stop mode entry signal; must be cleared by
software as it is unaffected by resets except for POR, LVD, or VLLSx resets.
SMDM_AP: Sticky MDM-AP System Reset Request Indicates a reset has been caused by the
host debugger setting the System Reset Request bit in the MDM-AP Control Register; must be
cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx resets.
SSW: Sticky Software Reset Indicates a reset has been caused by setting the SYSRESETREQ
bit in the Application Interrupt and Reset Control Register in the core; must be cleared by
software as it is unaffected by resets except for POR, LVD, or VLLSx resets.
SLOCKUP: Sticky Core Lockup Indicates a reset has been caused by a software LOCKUP
event; must be cleared by software as it is unaffected by resets except for POR, LVD, or VLLSx
resets.
SJTAG: Sticky JTAG Generated Reset Indicates a reset has been caused by selection of certain

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
16 NXP Semiconductors
Peripheral module comparison

IR codes (EXTEST, HIGHZ, and CLAMP) by the JTAG module; must be cleared by software
as it is unaffected by resets except for POR, LVD, or VLLSx resets.

3. Peripheral module comparison


The peripheral modules are classified.
The unchanged modules section outlines the details of the SOC implementation of the modules. The
modules in this section are marked by Unchanged in the Programming Model Comments column of the
Peripheral Differences table below (Table 5). Even though these modules were unchanged designs they
may have been integrated differently and/or different clock sources may now be sourcing these modules.
The modified modules section outlines the modules that have been updated to use newer/different
versions or simply have some minor differences. The overall functionality provided is similar. However,
changes are required in software and possibly hardware changes are required in order to utilize updated
features. These modules are marked by Minor differences or Additions in the Programming Model
Comments column of the Peripheral Differences table below (Table 5).
The new modules section outlines the new modules that have been added and how they can benefit your
design. They are marked with +in the Programming Model Comments column of the Peripheral
Differences table below (Table 5).
The removed modules are of note. Unpredictable results will occur if a module that is present on the
K10 is written to on the KV5X. They are marked with -in the Programming Model Comments column
of the Peripheral Differences table below (Table 5). If your application is using a removed module, you
should remove the code for this peripheral.
Table 5 presents a comparison of the peripheral modules found on the K10 120 MHz device and the
KV5x 240 MHz device.

Table 5. Comparison of peripheral modules


Peripheral Number of Instances Number of Instances Programming Model
K10 120 MHz KV5x 240 MHz Comments

ADC 4x 1x Changed
HS ADC 0x 4x +
HSCMP 4x 4x Unchanged
DAC 2x 1x Unchanged
VREF 1x 0x -
PGA 4x 0x -

I2C 2x 2x Changed
SPI 3x 3x Unchanged
UART 6x 6x Changed
CMT 1x 0x -
FlexCAN 2x 3x Changed
SAI 2x 0x -
Ethernet 0x 1x +

PIT 1x 1x Changed
PDB 1x 2x Unchanged
LPTMR 1x 1x Unchanged

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 17
Peripheral module comparison

FlexTimer 4x 4x Changed
eFlexPWM 0x 2x +
RTC 1x 0x -
WDOG 1x 1x Unchanged
EWM 1x 1x Changed

Tamper 1x 0x -
CRC 1x 1x Changed
TRNG 0 1x +

TSI 1x 0x -
LCDC 1x 0x -
GPIO 5V Tolerant 3V only Changed

3.1. Unchanged modules


The unchanged modules are modules that require no changes, as far as the peripheral is concerned, in
your software when migrating from K10 to KV5x. The package pin assignments and clock options may
have changed. The clock options for these modules will be discussed in the following sections. Please
refer to the Package/pinout difference section of this document for information regarding
package/pinout differences.

3.1.1. HSCMP
While the comparator peripheral blocks are the same, there are slight integration differences. The
comparators rely mainly on the reference provided to them and the timing module that is used for the
Sample/Window timing (if your application utilizes this feature). First, the voltage reference
information are examined.

3.1.1.1. CMP external references


Each instantiation of the CMP on KV5x has the 6-bit DAC sub-block connected to IN7 of the
comparator. The 12-bit DAC reference is connected to the IN6 reference of each CMP instantiation.
The KV5x CMP removes the VREF_OUT option for a reference. If your application was relying on this
feature, you need to modify your hardware to provide a reference or rely on one of the DAC modules to
provide a reference voltage for your comparator.

3.1.1.2. External window/sample input


Just as on the K10, the KV5x comparator uses the PDB pulse-out signals to control each CMP
Sample/Window timing.

3.1.2. DAC
The KV5x device implements only one DAC module, DAC0. If your application was making use of
DAC1, you will need to migrate to DAC0. Both DAC types (K10 and KV5x) implement a FIFO on the
DAC module. There are slight differences in the integration of the DAC reference voltages.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
18 NXP Semiconductors
Peripheral module comparison

3.1.2.1. 12-bit DAC reference


On KV5x, the DAC reference can be either VREFH or VDDA (whereas K10 offered either VREF_OUT
or VDDA). In both devices, DACREF_2 input is VDDA and the same bit, DACx_C0[DACRFS] is
used to select the different voltage reference. If your application was using VREF_OUT, you need to
either make hardware modifications to select VREFH, or select VDDA as your DAC voltage reference.

3.1.2.2. 12-bit DAC triggers


The K10 device offered only one PDB, and thus the 12-bit DAC has only one trigger. KV5x, however,
offers two PDBs and, in addition, the XBARA module can also trigger the DAC. If your application
was utilizing the DAC trigger, your application code should continue to work without modification.
Your application may benefit from using the XBARA module or the second PDB. For more
information on that, see the KV5x reference manual (document: KV5XP144M240RM).

3.1.3. SPI
The SPI module on KV5x is essentially unchanged from the version used on the 120MHz K10.
However, it is important to note that there is a clocking change that will affect your code. This is
described in section 3.1.3.1.

3.1.3.1. Clocking
The K10 SPI modules source clock is the Bus clock, which is restricted to a maximum of 75 MHz. On
the KV5x device, however, the SPI modules are sourced by the Fast Peripheral clock. This clock is
restricted to a maximum of 120 MHz and is not required to be slower than the Core/System clock as in
the K10. The calculations for the SPI baud rate remain the same, but you may need to account for a
higher frequency clock if your application configures MCGOUTCLK to the maximum achievable
frequency.

3.1.4. WDOG
Although the WDOG programming models are the same between the two devices, the clocking between
the two are not. Both devices still support the 1 kHz LPO clock as a source and both still support the
Bus clock as a source. However in the case of the KV5x device, the Bus clock is sourced from the same
clock divider as the Flash clock. Therefore, the Bus clock on KV5x will be limited to 27.5 MHz or less.
If your application uses the Bus clock as a source for the WDOG, you may need to account for the
slower clock frequency.

3.1.5. EWM
There are no differences between the EWMs on the K10 and KV5x devices. Your application code
should migrate directly between the two devices without modification.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 19
Peripheral module comparison

3.1.6. PDB
The PDB of KV5x device has compatible registers and programming model as the K10 device so your
PDB driver code should not need any modifications. The trigger options and output options are slightly
different. The KV5x also adds a PDB instance to provide extra triggering options and flexibility. It was
mainly added to allow for triggering of the second HS ADC through the FTM modules if so desired.
For the PDB trigger connection information of KV5x, see the PDB chapter in the KV5x reference
manual (document: KV5XP144M240RM).

3.2. Modified modules


These modules are characterized in two different groups: peripherals with differences (additions and
removals) and peripherals with additions only. The sections covering peripherals with differences will
outline the differences. The sections covering the additions only will outline how these changes can
benefit your application design.

3.2.1. Changed modules


The module listed in this section have at least one change to the peripheral IP (this does not include high
level clocking changes).

3.2.1.1. ADC
The legacy 16-bit ADC module implements the following changes.
Removes ADC1, ADC2, ADC3.
Removes the PGA module.
Changes in the clock selections.
Changes in the trigger selections.
Updated register bit attributes.

3.2.1.2. Removal of ADC instances and the PGA


If your application requires multiple ADC instances, you need to migrate to the HSADC as only one
legacy 16-bit ADC instance is available on KV5x devices. If your application is using only one ADC
instance and this ADC is not ADC0, you need to first migrate your application code to instance ADC0.
No PGA instances or equivalents are available on KV5x are available. Therefore, if your application
was utilizing the PGA modules, you will need to remove this application code. If the application
requires a PGA, an external PGA will need to be implemented.

3.2.1.3. Clock selection changes


The legacy 16-bit ADC is a SAR converter that utilizes a clock source to enable the conversions. The
K10 device allows this main clock to be sourced by the bus clock, bus clock divided by two, an alternate

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
20 NXP Semiconductors
Peripheral module comparison

clock (OSC0ERCLK), and an Asynchronous clock (internal to the ADC peripheral). The KV5x
removes the bus clock divided by two options and replaces it with a second alternate clock option.
Another consideration that must be taken into account is the fact that the bus clock on KV5x is now
combined with the flash clock and as such, it is also limited to 27.5 MHz.

3.2.1.4. Trigger selections


The K10 device allowed for two main options to trigger the ADC (selected by ADC0ALTTRGEN bit):
PDB
Alternate trigger defined by the ADC0TRGSEL bit field (SIM_SOPT7[AD0TRGSEL] )
The KV5x device allows for four main options.
XBARA output 39.
PDB0 channel 1 trigger.
PDB1 channel 0 trigger.
Alternate trigger defined by the ADC0TRGSEL bit field (SIM_ADCOPT[ADC0ALTTRGEN]).
KV5x and K10 have the same alternate triggers with the exception of the RTC alarm (option 0xC), RTC
seconds (option 0xD), and the high-speed comparator 3 asynchronous interrupt (option 0xF). Instead,
KV5x allows for the selection of the following options in those places:
XBARA output 38 (0xC)
NC (0xD)
NC (0xF)

3.2.1.5. Register differences


Removed Registers:
ADC PGA register (ADCx_PGA)

3.2.1.6. I2C
The KV5x I2C peripheral adds the following functionality.
Start/Stop bit detection interrupt.
STOP mode entry delay when an I2C transaction is in progress.
Additionally, the KV5x also has clocking changes that should be considered when transitioning from
K10 to KV5x.

3.2.1.7. Clocking changes


The I2C module on KV5x is clocked by the bus/flash clock on KV5x. This differs from K10 because this
clock is limited to 27.5 MHz. Therefore, the clock calculations in your application will need to be
adjusted accordingly. There is no change to the formula to calculate the baud rate and hold times. The
divider values have also not been affected by the updates to the I2C peripheral.
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 21
Peripheral module comparison

3.2.1.8. Register changes

Figure 22. I2C Programmable Input Glitch Filter register (I2Cx_FLT) KV5x

Added bits:
SHEN: Stop Hold EnableThis bit enables/disables the delay of entry to stop mode when any
data transmission or reception is occurring.
STOPF: I2C Bus Stop Detect FlagThis bit is set when the I2C buss stop status is detected and
must be cleared by software.
SSIE: I2C Bus Stop or Start Interrupt EnableThis bit enables the interrupt for I2C bus stop or
start detection.
STARTF: I2C Bus Start Detect FlagThis bit is set when the I2C buss start status is detected
and must be cleared by software.

3.2.1.9. UART
Basic functionality of the KV5x UART has not changed. There are clocking and CEA709.1-B changes
of which you should be aware. First, the clocking changes will be discussed.

3.2.1.10. Clocking changes


The UARTs on KV5x are clocked by the Fast Peripheral clock. This clock is sourced from OUTDIV2
in the SIM module. The restrictions on this clock are less restrictive than on the K10 only in the fact
that it can operate at a higher frequency than the System/Core clock. It must still be an integer multiple
or divide of the System /Core clock, so your application code may work without any modifications.
Although, you may need to adjust your fast peripheral clock or UART configuration code if you are
using a faster clock speed on your KV5x application than on your K10 application. It may also be
advantageous to (and it is important) know that the UART clock can operate at higher frequencies on
KV5x.

3.2.1.11. CEA709.1-B functionality


The CEA709.1-B functionality is enhanced with a greater resolution for the transmit and receive
indeterminate timers. The transmit and receive Beta1 timers are added. The following figures show the
differences between the memory maps for the K10 and KV5x.

Table 6. K10 memory map


Absolute address (hex) Register name Width (in bits)
4006_B024 UART CEA709.1-B Beta1 Timer (UART1_BIT) 8
4006_B030 UART CEA709.1-B Receive Indeterminate Time High (UART1_RIDTH) 8
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
22 NXP Semiconductors
Peripheral module comparison

4006_B031 UART CEA709.1-B Transmit Indeterminate Time High (UART1_TIDTH) 8

Figure 23. KV5x memory map

Detailed differences between the registers are shown below.


Bit 7 6 5 4 3 2 1 0
Read SBNS
LBKDI E RXEDGI E SBR
Writ e
Reset 0 0 0 0 0 0 0 0

Figure 24. UART Baud Rate register (UARTx_BDH) KV5x

Added bits:
SBNS: Stop Bit Number Select Selects the number of stop bits used. Chose between 1 and 2.
Bit 7 6 5 4 3 2 1 0

Read 0 0 0
TDMAS RDMAS LBKDDMAS
Writ e
Reset 0 0 0 0 0 0 0 0

Figure 25. UART Control register 5 (UARTx_C5) KV5x

Added bits:
LBKDDMAS: LIN Break Detect DMA Select Bit This bit configures the LIN break detect
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 23
Peripheral module comparison

flag to generate an interrupt or DMA request.

Bit 7 6 5 4 3 2 1 0
Read ADTE
WTE CWTE BWTE I NI TDE GTVE TXTE RXTE
Writ e
Reset 0 0 0 0 0 0 0 0

Figure 26. UART 7816 Interrupt Enable register (UARTx_IE7816) KV5x

Added bits:
ADTE: ATR Duration Timer Interrupt Enable This bit configures the IS7816[ADT] flag to
generate an interrupt.
Bit 7 6 5 4 3 2 1 0

Read WT CWT BWT I NI TD ADT GTV TXT RXT

Writ e w1c w1c w1c w1c w1c w1c w1c w1c


Reset 0 0 0 0 0 0 0 0

Figure 27. UART 7816 Interrupt Status register (UARTx_IS7816) KV5x

Added bits:
ADT: ATR Duration Time Interrupt This bit indicates that the ATR duration time has
exceeded the programmed value. Software must clear this bit by writing a 1 to it.
Bit 7 6 5 4 3 2 1 0
Read
PEI E WBEI E I SDI E PRXI E PTXI E PCTEI E PSI E TXDI E
Writ e
Reset 0 0 0 0 0 0 0 0

Figure 28. UART CEA709.1-B Interrupt Enable register (UARTx_IE) KV5x

Added bits:
PEIE: Preamble Error Interrupt Enable Enables / disables the preamble error interrupt
capability.
In addition to adding a bit to the UARTx_IE register, a second register is added to further expand the
interrupt capabilities of the CEA709.1-B standard. This register is at the offset 0x24 and takes the place
of the Beta1 Timer register (this register has been moved/expanded).
Bit 7 6 5 4 3 2 1 0

Read 0
RPLOFI E CTXDI E CPTXI E
Writ e
Reset 0 0 0 0 0 0 0 0

Figure 29. UART CEA709.1-B Interrupt Enable register 0 (UARTx_IE0) KV5x

Added bits:
RPLOFIE: Receive Packet Length Overflow Interrupt Enable Enables/disables the receive
packet length overflow functionality.
CTXDIE: Collision during transmission of byte sync or later packet Interrupt Enable
Enables/disables the interrupt function for collisions during transmission of byte sync or later
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
24 NXP Semiconductors
Peripheral module comparison

packets.
CPTXIE: Collision during preamble transmission Interrupt Enable Enables / disables the
interrupt on collision during preamble transmission.
Bit 7 6 5 4 3 2 1 0

Read 0 LNF RPLOF CDET TXDF FE

Writ e w1c w1c w1c w1c w1c


Reset 0 0 0 0 0 0 0 0

Figure 30. UART CEA709.1-B Status register (UARTx_S4) KV5x

Added bits:
LNF: LON Noise Flag Indicates that noise is present during the sampling of received packets.
Changed bits:
RPLOF: Received Packet Length Overflow Flag This bit replaces the Initial Synchronization
Fail Flag. It now indicates that the received packet length exceeds 255 bytes.
TXDF: Transmission Delay Flag This bit replaces the improper line code violation bit. It is
asserted if a packet that is queued for transmission has been delayed because a receive packet
starting coming in before the packet could be transmitted.

3.2.1.12. FlexCAN
The KV5x FlexCAN adds the following features:
Flexible message buffers (MBs), totaling 64 message buffers of 8 bytes data length each,
configurable as Rx or Tx.
ISO 11898-1 standard compliance.
DMA Support
Low Power mode enhancements.
Extended Bit Time Control
NOTE
The KV5x device adds a third FlexCAN module. If you are using NXP
supplied header files, the changes should be relatively simple. If not (or if
using assembly code), you will need to make note of the changes. The
CAN instances are located at the addresses listed in Table 7.
Table 7. CAN instance addresses
CAN Instance Address
CAN0 0x4002_4000
CAN1 0x4002_5000
CAN2 0x400A_4000

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 25
Peripheral module comparison

Address: Base address + 0h offset


Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

NOTRDY

FRZACK

LPMACK
R

WAKSRC
WAKMSK

SOFTRST

SLFWAK

SRXDI S
WRNEN

DOZE
HALT

SUPV
MDI S FRZ RFEN I RMQ

Reset 1 1 0 1 1 0 0 0 1 0 0 1 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

R 0 0
Reserved

Reserved
LPRI OEN

DMA AEN I DAM MAXMB

Reset 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1

Figure 31. FlexCAN module configuration register (CANx_MCR) KV5x

Added bits:
WAKSRC: Wake Up Source Enables / disables the integrated low-pass filter on the Rx CAN
Input to protect from spurious wake up events.
DOZE: Doze Mode Enable Enables / disables the Doze mode functionality of the FlexCAN
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
26 NXP Semiconductors
Peripheral module comparison

module (note: Doze mode will only be entered when this bit is set and the software requests a
low power mode entry of the SoC).
DMA: DMA Enable Enables / disables the DMA feature for the Rx FIFO.
Address:Base address + 20h offset
Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

BOFFDONEI NT

RWRNI NT
TWRNI NT
ERROVR

SYNCH
R 0 0
Reserved

Reserved

Reserved

Reserved

Reserved

Reserved
W
w1c w1c w1c
w1c

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

BOFFINT
FRMERR
CRCERR
BIT1ERR

BIT0ERR

ACKERR

STFERR

RXWRN

WAKINT
ERRINT
TXWRN

IDLE

R TX FLTCONF RX

W w1c w1c w1c

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Figure 32. FlexCAN error and status 1 register (CANx_ESR1) KV5x

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 27
Peripheral module comparison

Added Bits:
ERROVR: Error Overrun bit This bit indicates that an error condition occurred when any
error flag is already set.
BOFFDONEINT: Bus Off Done Interrupt This bit is set when the Tx Error Counter
(TXERRCNT) has finished counting 128 occurrences of 11 consecutive recessive bits on the
CAN bus and is ready to leave Bus Off.

Address:Base address + 30h offset


Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

R BUF31TO8I

W w1c

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

BUF0I
BUF7I

BUF6I

BUF5I
R BUF31TO8I BUF4TO1I

W w1c w1c w1c w1c w1c w1c

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Figure 33. FlexCAN Interrupt Flags 1 register (CANx_IFLAG1) KV5x

Changed bits:
BUF4TO1I: This bit was changed from BUF4TO0I. It now controls the clearing of the
interrupts for MBs 4 to 1 instead of 4 to 0.
Added bits:
BUF0I: This bit indicates and clears the interrupt for MB 0. It was separated into its own bit
because it now controls the clearing of the FIFO when the Rx FIFO is enabled.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
28 NXP Semiconductors
Peripheral module comparison

Address:Base address + 34h offset


Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

BOFFDONEMSK
R 0 0
Reserved

EACEN
RFFN TASD MRP RRS

Reset

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

R 0 0 0 0 0
Reserved

Reset
Figure 34. FlexCAN Control 2 register (CANx_CTRL2) KV5x

Added bits:
BOFFDONEMSK: Bus Off Done Interrupt Mask This bit provides a mask for the Bus Off
Done Interrupt.
Removed bits:
WRMFRZ: Write-Access to Memory in Freeze Mode Enables / disables write access to the
FlexCAN memory in Freeze mode (no effect outside of Freeze mode).

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 29
Peripheral module comparison

Address:Base address + 50h offset


Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

Reserved
BTF EPRESDI V ERJW

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

EPROPSEG EPSEG1 EPSEG2

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Figure 35. FlexCAN CAN Bit Timing register (CANx_CBT) KV5x

Added Bits:
BTF: Bit Timing Format Enable This bit enables the use of the extended CAN bit timing fields
EPRESDIV, EPROPSEG, EPSEG1, EPSEG2, and ERJW and can only be written in Freeze
mode.
EPRESDIV: Extended Prescale Division Factor This bit defines the ratio between the PE
clock frequency and the Serial Clock frequency and extends the CAN_CTRL1[PRESDIV] value
range.
ERJW: Extended Resync Jump Width This bit field defines the maximum number of time
quanta that a bit time can be changed by on synchronization (extends the CAN_CTRL1[RJW]
value range.
EPROPSEG: Extended Propagation Segment This bit field defines the length of the
Propagation Segment in the bit time (extends the CAN_CTRL1[PROPSEG] value range. It can
only be written in Freeze mode.
EPSEG1: Extended Phase Segment 1 This bit field defines the length of Phase Segment 1 in
the bit time (extends the CAN_CTRL1[PSEG1] value range). It can only be written in Freeze
mode.
EPSEG2: Extended Phase Segment 2 This bit field defines the length of Phase Segment 2 in
the bit time (extends the CAN_CTRL1[PSEG2] value range. It can only be written in Freeze
mode.

Clocking Changes
Figure 36 and Figure 37 compare the clock control trees for the FlexCAN modules. First is the K10
clock tree and the second is the KV5x clock tree.
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
30 NXP Semiconductors
Peripheral module comparison

OSC0ERCLK

FlexCAN clock

Bus clock

CANx_CTRL1[ CLKSRC]
Figure 36. K10 FlexCAN clock tree

OSCERCLK

FlexCAN clock
Fast Peripheral clock

CANx_CTRL1[ CLKSRC]
Figure 37. KV5x FlexCAN clock tree

As shown in Figure 36 and Figure 37, the only change is that the KV5x device replaces the Bus clock
option with the Fast Peripheral clock option. This is important because this clock is sourced at a higher
frequency than the bus clock. You will need to take this into account if you were using the bus clock in
your application.

3.2.1.13. CRC
There is only one difference between the K10 CRC module and the KV5x CRC module. The CRC Data
register in KV5x is named CRC_DATA while the data register in K10 is named CRC_CRC. Therefore,
the only change your software will need is to rename the CRC_CRC accesses to CRC_DATA. Figure 39
illustrates the memory map comparison.
Absolute
Width
address Register name Access Reset value
(in bits)
(hex)
4003_2000 CRC Data register (CRC_DATA) 32 R/W FFFF_FFFFh
4003_2004 CRC Polynomial register (CRC_GPOLY) 32 R/W 0000_1021h
4003_2008 CRC Control register (CRC_CTRL) 32 R/W 0000_0000h

Figure 38. K10 CRC memory map

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 31
Peripheral module comparison

Absolute
Width
address Register name Access Reset value
(in bits)
(hex)
4003_2000 CRC Data register (CRC_DATA) 32 R/W FFFF_FFFFh
4003_2004 CRC Polynomial register (CRC_GPOLY) 32 R/W 0000_1021h
4003_2008 CRC Control register (CRC_CTRL) 32 R/W 0000_0000h

Figure 39. KV5x CRC memory map

3.2.1.14. GPIO and port control


There are only four major changes with respect to the GPIO and Port Control programming model.
The PORT Mux field of KV5x was increased to allow for more options for each pin.
KV5x adds Global Interrupt Control Registers.
Bus clock has a much lower maximum speed which may affect digital filtering.
Digital filtering is only available on PORT D pins.
Only software differences will be discussed in this section. Hardware differences and Mux selection
differences will be discussed in later sections.
Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

R 0 I SF 0
I RQC
W w1c
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

R 0 0 0
LK MUX DSE ODE PFE SRE PE PS
W

Reset 0 0 0 0 * * * * 0 * 0 * 0 * * *

Figure 40. Pin Control register n (PORTx_PCRn) KV5x

Changed bits:
MUX: Pin Mux Control This bit field was expanded to accommodate more options for each
GPIO pin.
Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

R 0 0

W GI WD GI WE
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Figure 41. Global Interrupt Control Low register (PORTx_GICLR) KV5x

Added bits:
GIWD: Global Interrupt Write Data The value written to this register will be written to all Pin
Control Register bits that are selected by GIWE.
GIWE: Global Interrupt Write Enable Selects which Pin Control Registers (15 through 0) to
update with the value in GIWD.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
32 NXP Semiconductors
Peripheral module comparison

Address:Base address + 88h offset


Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

R 0 0
W GI WD GI WE
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Figure 42. Global Interrupt Control High register (PORTx_GICHR) KV5x

Added bits:
GIWD: Global Interrupt Write Data The value written to this register will be written to all Pin
Control Register bits that are selected by GIWE.
GIWE: Global Interrupt Write Enable Selects which Pin Control Registers (31 through 16) to
update with the value in GIWD.
Software impact:
The main impact that should be taken into consideration is the expansion/changes of the MUX
selections. For each pin used in your application, it is recommended that you check the table in the
Hardware Impacts section of this document to find the new MUX selection for the desired functionality.
For applications which implement digital filtering, there are two items to consider:
The bus clock, which optionally provides the clock for the digital filtering has the possibility of
being much lower due to the clock frequency restriction of the KV5x bus clock
PORT D pins are the only pins which support digital filtering
Therefore, it is recommended to double check that the pins which require digital filtering in your
application are PORT D pins. You may also want to change your digital filtering settings as the bus
clock is now limited to 27.5 MHz (will be the same frequency as the flash clock).

3.2.2. Additions
The peripherals listed in this section have only additions to their registers or memory maps. They can
achieve the same functionality as in the 120MHz K10 but also include features that may enhance your
application or ease coding.

3.2.2.1. PIT
The PIT module in KV5x adds the capability to chain timers together. This allows the timer to measure
greater amounts of time. The registers that contain the additional features are shown below.
Address:4003_7000h base + 108h offset + ( 16d i) , where i= 0d t o 3d
Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
R 0
W
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R 0 CHN TI E TEN
W
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 33
Peripheral module comparison

Figure 43. PIT Timer Control register (PIT_TCTRLn) KV5x

NOTE
When enabled, the timer which is chained will automatically chain to the
previous timer, for example, PIT timer 2 chains to PIT timer 1.
Clocking Changes
The KV5x combines the bus clock with the flash clock. Therefore, the PIT is limited to a maximum of
27.5 MHz. You need to consider PIT limitation when migrating, as the K10 120MHz devices allow the
PIT to be clocked to a maximum of 75 MHz.

3.2.2.2. FlexTimer
The FlexTimer adds counter reset upon input capture event.
Other than the above additional feature, the programming models of the two devices are the same.
However, the base addresses are different. If you are using the NXP approved header files and macros,
the same macros may be used and migration will be seamless. If you have written your application in
assembly and/or programmed the base addresses manually, you need to know the base address changes
listed in Table 8.
Table 8. Memory map comparison
FTM Instance K10 KV5x
FTM0 0x4003_8000 0x4003_8000
FTM1 0x4003_9000 0x4003_9000
FTM2 0x400B_8000 0x4003_A000
FTM3 0x400B_9000 0x4002_6000

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
34 NXP Semiconductors
Peripheral module comparison

Address: Base address + Ch offset + ( 8d i) , where i= 0d t o 7d


Bit 31 30 29 28 26 25 24 23 22 21 20 19 18 17 16
27

R 0

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

CHF
R 0

I CRST
CHI E MSB MSA ELSB ELSA DMA

W 0

Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Figure 44. FTM Channel (n) Status and Control register (FTMx_CnSC) KV5x

Added bits:
ICRST: FTM Counter reset by the selected Input capture event Initiates an FTM counter reset
by the selected event of a channel (n) in the Input Capture Mode.
If your application is using input capture, this feature may reduce the calculations necessary for your
application, as the input capture feature can then provide an absolute count value from the last capture
event.

3.3. New modules


These are modules that are present on KV5x but not on K10. These modules are discussed because they
may be necessary when migrating your application to a KV5x device (due to the lack of peripheral
instances) or may be advantageous to use in your application.

3.3.1. HSADC
The HSADC is a new ADC to Kinetis devices. It is an ADC with 12-bit resolution capable of five mega
samples per second. The KV5x device contains two instances of this device with each instance capable
of scanning up to 16 dedicated channels sequentially. Each instance contains two independent
conversion machines making simultaneous conversions possible. This makes the new ADC well suited
for motor control applications. The new ADC contains the following features.
Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 35
Peripheral module comparison

12/10/8/6 bits selectable resolution.


Single-ended or differential inputs.
Can be synchronized to other peripherals that are connected to an internal Inter-Peripheral
Crossbar module through the SYNC0/1 input signal.
Parallel synchronous scan mode (two ADCs converters scanning in parallel and simultaneously
provide 16 measurements in 8 conversion times).
Sequential scan mode (two ADCs can sequentially acquire 16 ADC measurements on one
triggered event).
Parallel independent scan mode (each ADC can independently acquire 8 ADC measurements
triggered by software or hardware events).
Pause control for conversion requests on the scan list.
Optional interrupts at the end of scan for:
Out-of-range limit exceeded
Zero crossing
Calibration cycle ended
Sample correction.
DMA support.
Signed or unsigned results.

3.3.1.1. Software impacts


If your application requires more than one ADC, then this ADC must be used. The programming model
of the HSADC is completely different from the ADC. The best and most time efficient method of
converting your application to the new HSADC is to use the Kinetis SDK HAL examples as a starting
point.

3.3.1.2. Hardware impacts


The only hardware consideration taken into account is the removal of the external capacitor. The
external capacitor is not recommended for the HSADC as this affects the sampling time requirements of
the module. However an external capacitor could be left in place provided the RC time constant is less
than the minimum sampling time.

3.3.2. Ethernet
The Ethernet module is not a new IP to Kinetis. If you plan to add Ethernet to your application, it is best
to consult the Kinetis SDK HAL based Ethernet examples.

3.3.2.1. Hardware impacts


None.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
36 NXP Semiconductors
Hardware comparison

3.3.2.2. Software impacts


None.

3.3.3. eFlexPWM
The eFlexPWM is not a peripheral that is available in the K series Kinetis devices and the KV5x devices
contain an FTM peripheral (which is available on the K series K10). The KV5x devices also contain the
same number of FTM instances and channels. Therefore, when migrating from a K10 device to a KV5x
device, there will be no software or hardware impacts. However, if you plan to use eFlexPWM, it is
best to use the Kinetis SDK HAL based eFlexPWM examples to get started. For more information on
how to use the eFlexPWM module, see the document AN5142: Features of the FlexTimer Module.

3.3.3.1. Hardware impacts


None.

3.3.3.2. Software impacts


None.

3.3.4. TRNG
The TRNG is a hardware accelerator module that generates a 512-bit random number as needed by
modules or software routines that may need a random number. It is intended for direct use by functions
that generate secret keys, per-message secrets, random challenges, and other similar quantities used in
cryptographic algorithms.

3.3.4.1. Hardware impacts


None.

3.3.4.2. Software impacts


None.

4. Hardware comparison
The following section outlines the differences and hardware considerations when migrating from the
K10 120 MHz device to the KV5x 240 MHz device.

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 37
Hardware comparison

4.1. Package/pinout differences


The K10 120 MHz device is only offered in a 144 LQFP package and a 144 MAPBGA package. The
KV5x 240 MHz device was designed to pin-to-pin compatible with the 144 LQFP K10 device. Both 144
LQFP packages use the same package. The drawing for the package can be found here.
Since the KV5x was designed to pin-to-pin compatible, the hardware changes (with respect to the pin-
out) will be minimal. Table 9 highlights the differences between the pin-outs. The white cells are
pins/functions that do not change from device to device. The orange cells indicate pins that have the
same function options, but minor code changes may be required to continue using that pin. The red cells
highlight pins that are missing functionality on that pin.
Table 9. K10 120 MHz pins
Pkg pin K10 pin name 0 1 2 3 4 5 6 7
SPI1_P UART1_ SDHC0_ I2C1_SD RTC_CL
1 PTE0 ADC1_SE4a PTE0 CS1 TX D1 A KOUT
PTE1/
PTE1/ LLWU SPI1_S UART1_ SDHC0_ I2C1_SC
2 LLWU_P0 ADC1_SE5a _P0 OUT RX D0 L SPI1_SIN
PTE2/
PTE2/ LLWU SPI1_S UART1_ SDHC0_
3 LLWU_P1 ADC1_SE6a _P1 CK CTS DCLK
SPI1_S UART1_ SDHC0_ SPI1_SO
4 PTE3 ADC1_SE7a PTE3 IN RTS CMD UT
5 VDD 0
6 VSS 0
PTE4/
PTE4/ LLWU SPI1_P UART3_ SDHC0_
7 LLWU_P2 0 _P2 CS0 TX D3
SPI1_P UART3_ SDHC0_ FTM3_C
8 PTE5 0 PTE5 CS2 RX D2 H0
SPI1_P UART3_ I2S0_MC FTM3_C
9 PTE6 0 PTE6 CS3 CTS LK H1
UART3_ I2S0_RX FTM3_C
10 PTE7 0 PTE7 RTS D0 H2
I2S0_R UART5_ I2S0_RX FTM3_C
11 PTE8 ADC2_SE16 PTE8 XD1 TX _FS H3
I2S0_T UART5_ I2S0_RX FTM3_C
12 PTE9 ADC2_SE17 PTE9 XD1 RX _BCLK H4
UART5_ I2S0_TX FTM3_C
13 PTE10 0 PTE10 CTS D0 H5
UART5_ I2S0_TX_ FTM3_C
14 PTE11 ADC3_SE16 PTE11 RTS FS H6
I2S0_TX_ FTM3_C
15 PTE12 ADC3_SE17 PTE12 BCLK H7
16 VDD
17 VSS
SPI0_P UART2_ FTM_CL FTM0_FL
18 PTE16 ADC0_SE4a PTE16 CS0 TX KIN0 T3
SPI0_S UART2_ FTM_CL LPTMR0_
19 PTE17 ADC0_SE5a PTE17 CK RX KIN1 ALT3
SPI0_S UART2_ I2C0_SD
20 PTE18 ADC0_SE6a PTE18 OUT CTS A
SPI0_S UART2_ I2C0_SC CMP3_O
21 PTE19 ADC0_SE7a PTE19 IN RTS L UT
22 VSSUSB
ADC0_DP1/OP0
23 _DP0 ADCx_DPx
ADC0_DM1/OP
24 0_DM0 ADCx_DMx

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
38 NXP Semiconductors
Hardware comparison

Table 9. K10 120 MHz pins (contd)


Pkg pin K10 pin name 0 1 2 3 4 5 6 7
ADC1_DP1/OP1
25 _DP0 ADCx_DPx
ADC1_DM1/OP
26 1_DM0 ADCx_DMx
PGA0_DP/ADC
0_DP0/ADC1_D
27 P3 ADCx_DPx
PGA0_DM/ADC
0_DM0/ADC1_D
28 M3 ADCx_DMx
PGA1_DP/ADC
1_DP0/ADC0_D
29 P3 ADCx_DPx
PGA1_DM/ADC
1_DM0/ADC0_D
30 M3 ADCx_DMx
31 VDDA VDDA
32 VREFH VREFH
33 VREFL VREFL
34 VSSA VSSA
ADC1_SE16/OP ADC1_SE16/
35 1_OUT CMP2_IN2
ADC0_SE16/OP ADC0_SE16/
36 0_OUT CMP1_IN2
VREF_OUT/
ADC1_SE18/
CMP1_IN5/
37 VREF_OUT CMP0_IN5
ADC0_SE2/CMP1_IN
38 DAC0_OUT 3/DAC0_OUT
ADC_SE/CMP_IN/DA
39 DAC1_OUT C_OUT
40 XTAL32 XTAL32
41 EXTAL32 EXTAL32
42 VBAT VBAT
43 VDD
44 VSS
ADC0_SE17/ CAN1_ UART4_ I2S1_TX_ EWM_OU I2S1_RX
45 PTE24 EXTAL1 PTE24 TX TX FS T D1
CAN1_ UART4_ I2S1_TX_ I2S1_TX
46 PTE25 ADC0_SE18/ XTAL1 PTE25 RX RX BCLK EWM_IN D1
UART4_ I2S1_TX RTC_CO
47 PTE26 ADC3_SE5b PTE26 CTS D0 UT
UART4_ I2S1_MC
48 PTE27 ADC3_SE4b PTE27 RTS LK
49 PTE28 ADC3_SE7a PTE28
UART0 FTM0_C JTAG_TC
50 PTA0 TSI0_CH1 PTA0 _CTS H5 LK
UART0 FTM0_C JTAG_TD
51 PTA1 TSI0_CH2 PTA1 _RX H6 I
UART0 FTM0_C JTAG_TD
52 PTA2 TSI0_CH3 PTA2 _TX H7 O

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 39
Hardware comparison

Table 9. K10 120 MHz pins (contd)


Pkg pin K10 pin name 0 1 2 3 4 5 6 7
UART0 FTM0_C JTAG_T
53 PTA3 TSI0_CH4 PTA3 _RTS H0 MS
PTA4/
PTA4/ LLWU FTM0_C
54 LLWU_P3 TSI0_CH5 _P3 H1 NMI_B
FTM0_C CMP2_ I2S0_TX_ JTAG_TR
55 PTA5 0 PTA5 H2 OUT BCLK ST
56 VDD
57 VSS
FTM0_C I2S1_RX TRACE_
58 PTA6 ADC3_SE6a PTA6 H3 D0 COUT
FTM0_C I2S1_RX TRACE_
59 PTA7 ADC0_SE10 PTA7 H4 _BCLK D3
FTM1_C I2S1_RX FTM1_Q TRACE_
60 PTA8 ADC0_SE11 PTA8 H0 _FS D_PHA D2
FTM1_C FTM1_Q TRACE_
61 PTA9 ADC3_SE5a PTA9 H1 D_PHB D1
FTM2_C FTM2_Q TRACE_
62 PTA10 ADC3_SE4a PTA10 H0 D_PHA D0
FTM2_C FTM2_Q
63 PTA11 ADC3_SE15 PTA11 H1 D_PHB
CAN0_ FTM1_C I2S0_TX FTM1_Q
64 PTA12 CMP2_IN PTA12 TX H0 D0 D_PHA
PTA13
/
PTA13/ LLWU CAN0_ FTM1_C I2S0_TX_ FTM1_P
65 LLWU_P4 CMP2_IN _P4 RX H1 FS D_PHB
SPI0_P UART0_ I2S0_RX I2S0_TX
66 PTA14 CMP3_IN PTA14 CS0 TX _BCLK D1
SPI0_S UART0_ I2S0_RX
67 PTA15 CMP3_IN PTA15 CK RX D0
SPI0_S UART0_ I2S0_RX
68 PTA16 CMP3_IN PTA16 OUT CTS _FS
SPI0_S UART0_ I2S0_MC
69 PTA17 ADC1_SE17 PTA17 IN RTS LK
70 VDD
71 VSS
FTM0_F FTM_CL
72 PTA18 EXTAL0 PTA18 LT2 KIN0
FTM1_F FTM_CL LPTMR0_
73 PTA19 XTAL0 PTA19 LT0 KIN1 ALT1
74 RESET_b Reset_b
75 PTA24 CMP3_IN4 PTA24 FB_A29
76 PTA25 CMP3_IN5 PTA25 FB_A28
77 PTA26 ADC2_SE15 PTA26 FB_A27
78 PTA27 ADC2_SE14 PTA27 FB_A26
79 PTA28 ADC2_SE13 PTA28 FB_A25
80 PTA29 ADC2_SE12 PTA29 FB_A24
PTB0/
PTB0/ LLWU I2C0_S FTM1_C FTM1_Q
81 LLWU_P5 ADCx_SE8 / TSI _P5 CL H0 D_PHA
I2C0_S FTM1_C FTM1_Q
82 PTB1 ADCx_SE9 / TSI PTB1 DA H1 D_PHB
I2C0_S UART0_ FTM0_FL
83 PTB2 ADC0_SE12 / TSI PTB2 CL RTS T3

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
40 NXP Semiconductors
Hardware comparison

Table 9. K10 120 MHz pins (contd)


Pkg pin K10 pin name 0 1 2 3 4 5 6 7
I2C0_S UART0_ FTM0_FL
84 PTB3 ADC0_SE13 / TSI PTB3 DA CTS T0
FTM1_FL
85 PTB4 ADC1_SE10 PTB4 T0
FTM2_FL
86 PTB5 ADC1_SE11 PTB5 T0
FB_AD
87 PTB6 ADC1_SE12 PTB6 23
FB_AD
88 PTB7 ADC1_SE13 PTB7 22
UART3_ FB_AD
89 PTB8 PTB8 RTS 21
SPI1_P UART3_ FB_AD
90 PTB9 0 PTB9 CS1 CTS 20
SPI1_P UART3_ I2S1_TX_ FB_AD FTM0_FL
91 PTB10 ADC1_SE14 PTB10 CS0 RX BCLK 19 T1
SPI1_S UART3_ I2S1_TX_ FB_AD FTM0_FL
92 PTB11 ADC1_SE15 PTB11 CK TX FS 18 T2
93 VSS
94 VDD
SPI1_S UART0_ I2S1_TX FB_AD
95 PTB16 TSI PTB16 OUT RX D0 17 EWM_IN
SPI1_S UART0_ I2S1_TX FB_AD EWM_OU
96 PTB17 TSI PTB17 IN TX D1 16 T
CAN0_ FTM2_C I2S0_TX_ FB_AD FTM2_Q
97 PTB18 TSI PTB18 TX H0 BCLK 15 D_PHA
CAN0_ FTM2_C I2S0_RX FB_OE FTM2_Q
98 PTB19 TSI PTB19 RX H1 _FS _B D_PHB
SPI2_P FB_AD CMP0_O
99 PTB20 ADC2_SE4a PTB20 CS0 31 UT
SPI2_S FB_AD CMP1_O
100 PTB21 ADC2_SE5a PTB21 CK 30 UT
SPI2_S FB_AD CMP2_O
101 PTB22 0 PTB22 OUT 29 UT
SPI2_S SPI0_PC FB_AD CMP3_O
102 PTB23 0 PTB23 IN S5 28 UT
ADC0_SE14 / SPI0_P PDB0_E FB_AD I2S0_TX
103 PTC0 TSI0_CH13 PTC0 CS4 XT 14 D1
PTC1 /
PTC1 / ADC0_SE15/ LLWU SPI0_P UART1_ FTM0_C FB_AD I2S0_TX
104 LLWU_P6 TSI0_CH14 _P6 CS3 RTS H0 13 D0
ADC0_SE4b/
CMP1_IN0/ SPI0_P UART1_ FTM0_C FB_AD I2S0_TX_
105 PTC2 TSI0_CH15 PTC2 CS2 CTS H1 12 FSS
PTC3 /
PTC3 / LLWU SPI0_P UART1_ FTM0_C I2S0_TX_
106 LLWU_P7 CMP1_IN1 _P7 CS1 RX H2 BCLK
107 VSS 0
108 VDD 0
PTC4 /
PTC4 / LLWU SPI0_P UART1_ FTM0_C FB_AD CMP1_O I2S1_TX_
109 LLWU_P8 0 _P8 CS0 TX H3 11 UT BCLK
PTC5 /
PTC5 / LLWU SPI0_S LPTMR0 I2S0_RX FB_AD CMP0_O I2S1_TX_
110 LLWU_P9 0 _P9 CK _ALT2 D0 10 UT FS
PTC6 /
PTC6 / LLWU SPI0_S PDB0_E I2S0_RX FB_AD I2S0_MC
111 LLWU_P10 CMP0_IN0 _P10 OUT XT _BCLK 9 LK

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 41
Hardware comparison

Table 9. K10 120 MHz pins (contd)


Pkg pin K10 pin name 0 1 2 3 4 5 6 7
SPI0_S I2S0_RX FB_AD
112 PTC7 CMP0_IN1 PTC7 IN _FS 8

ADC1_SE4b / FTM3_C I2S0_MC FB_AD


113 PTC8 CMP0_IN2 PTC8 H4 LK 7
ADC1_SE5b / FTM3_C I2S0_RX FB_AD FTM2_FL
114 PTC9 CMP0_IN3 PTC9 H5 _BCLK 6 T0
I2C1_S FTM3_C I2S0_RX FB_AD I2S1_MC
115 PTC10 ADC1_SE6b PTC10 CL H6 _FS 5 LK
PTC11
/
PTC11 / LLWU I2C1_S FTM3_C I2S0_RX FB_R
116 LLWU_P11 ADC1_SE7b _P11 DA H7 D1 W
UART4_ FB_AD FTM3_FL
117 PTC12 0 PTC12 RTS 27 T0
UART4_ FB_AD
118 PTC13 0 PTC13 CTS 26
UART4_ FB_AD
119 PTC14 0 PTC14 RX 25
UART4_ FB_AD
120 PTC15 0 PTC15 TX 24
121 VSS 0
122 VDD 0
CAN1_ UART3_ FB_CS
123 PTC16 0 PTC16 RX RX 5
CAN1_ UART3_ FB_CS
124 PTC17 0 PTC17 TX TX 4
UART3_ FB_CS
125 PTC18 0 PTC18 RTS 2
UART3_ FB_CS
126 PTC19 0 PTC19 CTS 3 FB_TA
PTD0 /
PTD0 / LLWU SPI0_P UART2_ FTM3_C FB_AL I2S1_RX
127 LLWU_P12 0 _P12 CS0 RTS H0 E D1
SPI0_S UART2_ FTM3_C FB_CS I2S1_RX
128 PTD1 ADC0_SE5b PTD1 CK CTS H1 0 D0
PTD2 /
PTD2 / LLWU SPI0_S UART2_ FTM3_C FB_AD I2S1_RX
129 LLWU_P13 0 _P13 OUT RX H2 4 _FS
SPI0_S UART2_ FTM3_C FB_AD I2S1_RX
130 PTD3 0 PTD3 IN TX H3 3 _BCLK
PTD4/
PTD4/ LLWU SPI0_P UART0_ FTM0_C FB_AD
131 LLWU_P14 0 _P14 CS1 RTS H4 2 EWM_IN
SPI0_P UART0_ FTM0_C FB_AD EWM_OU
132 PTD5 ADC0_SE6b PTD5 CS2 CTS H5 1 T
PTD6/
PTD6/ LLWU SPI0_P UART0_ FTM0_C FB_AD FTM0_FL
133 LLWU_P15 ADC0_SE7b _P15 CS3 RX H6 0 T0
134 VSS 0
135 VDD 0
CMT_I UART0_ FTM0_C FTM0_FL
136 PTD7 0 PTD7 RQ TX H7 T1
I2C0_S UART5_
137 PTD8 0 PTD8 CL RX FB_A16
I2C0_S UART5_
138 PTD9 0 PTD9 DA TX FB_A17
UART5_
139 PTD10 0 PTD10 RTS FB_A18

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
42 NXP Semiconductors
Revision history

Table 9. K10 120 MHz pins (contd)


Pkg pin K10 pin name 0 1 2 3 4 5 6 7
SPI2_P UART5_ SDHC0_
140 PTD11 0 PTD11 CS0 CTS CLKIN FB_A19
SPI2_S FTM3_F SDHC0_
141 PTD12 0 PTD12 CK LT D4 FB_A20
SPI2_S SDHC0_
142 PTD13 0 PTD13 OUT D5 FB_A21
SPI2_S SDHC0_
143 PTD14 0 PTD14 IN D6 FB_A22
SPI2_P SDHC0_
144 PTD15 0 PTD15 CS1 D7 FB_A23

4.2. GPIO considerations


The most significant consideration made when migrating from K10 to KV58/KV56 is that the KV5x
family pins are not 5 V tolerant. Therefore, care must be taken to limit the voltage at the pin to VDD +/-
0.3V.
While your hardware design may not be affected, it is good to know that the port pads of the KV5x are
different from the port pins of K10. Therefore the slew rates will be different and may affect the
operation of your application hardware. Consult the datasheet for more specifics of the slew rate.

4.3. Clocking considerations


There are no additional hardware considerations when using an external crystal to clock your system.
The hardware circuitry used for K10 is compatible with the KV5x circuitry. However, if you are using a
canned oscillator input or other external clock source, the maximum input clock frequency in the
external clock mode is 48 MHz on KV5x and not 60 MHz limit as on K10.

5. Revision history
Table 10. Revision history
Revision number Date Substantive changes
0 10/2015 Initial release
1 06/2016 Changed KV5x-120 MHz to KV5x-
240 MHz

Kinetis Migration Guide: K10 - 120 MHz to KV5x, Application Note, Rev. 1, 06/2016
NXP Semiconductors 43
How to Reach Us: Information in this document is provided solely to enable system and software
implementers to use NXP products. There are no express or implied copyright licenses
Home Page:
granted hereunder to design or fabricate any integrated circuits based on the
nxp.com
information in this document. NXP reserves the right to make changes without further
Web Support: notice to any products herein.
nxp.com/support
NXP makes no warranty, representation, or guarantee regarding the suitability of its
products for any particular purpose, nor does NXP 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 NXP 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
customers technical experts. NXP does not convey any license under its patent rights
nor the rights of others. NXP sells products pursuant to standard terms and conditions
of sale, which can be found at the following address: nxp.com/SalesTermsandConditions.

NXP, the NXP logo, NXP SECURE CONNECTIONS FOR A SMARTER WORLD, Freescale,
the Freescale logo, and Kinetis are trademarks of NXP B.V. All other product or service names
are the property of their respective owners. ARM, the ARM Powered logo, and Cortex are
registered trademarks of ARM Limited (or its subsidiaries) in the EU and/or elsewhere.

All rights reserved.

2016 NXP B.V.

Document Number: AN5117


Rev. 1
06/2016

You might also like