TWR-K60N512-KEIL Freescale Semiconductor, TWR-K60N512-KEIL Datasheet - Page 82

no-image

TWR-K60N512-KEIL

Manufacturer Part Number
TWR-K60N512-KEIL
Description
K60N512 Keil Tower Kit
Manufacturer
Freescale Semiconductor
Series
Kinetisr
Type
MCUr

Specifications of TWR-K60N512-KEIL

Rohs Compliant
YES
Contents
4 Boards, Documentation, DVD
Peak Reflow Compatible (260 C)
Yes
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
Freescale Tower System, K60N512
Using the FlexNVM
8.1.2.3 Combination
In this configuration the FlexNVM is partitioned to use part of the available memory as
data flash and part as EEPROM backup space. The FlexRAM partitioned for EEPROM
can range from a minimum of 32 bytes to the maximum size of FlexRAM, 0 bytes selects
a configuration with no EEPROM. The size of the EEPROM backup space must be at
least 16KB in size.
8.1.2.3.1 Code example and explanation
The following example uses a device with 256KB of FlexNVM and 4KB of FlexRAM.
This example assumes the part is erased and that the flash memory clock gate control is
enabled in the system integration module (SIM). The default state in the SIM is flash
memory clock enabled.
In this example, the EEPROM data size code being used is 0x32 which selects a size of
subsystem A = subsystem B = 2 KB. The FlexNVM partition code use is 0x05,
representing the size of our data partition as 128 KB and the size of the EEPROM backup
memory as 128 KB. The system created has 128KB of program/data flash and two 2KB
EEPROM subsystems each backed up by 64KB of EEPROM backup memory.
Example Code:
/* Write the FCCOB registers */
FTFL_FCCOB0 = FTFL_FCCOB0_CCOBn(0x80);
FTFL_FCCOB1 = 0x00;
FTFL_FCCOB2 = 0x00;
FTFL_FCCOB3 = 0x00;
FTFL_FCCOB4 = 0x32;
FTFL_FCCOB5 = 0x05;
// EEPROM backup size = 128 KB
FTFL_FSTAT = FTFL_FSTAT_CCIF_MASK;
while(!(FTFL_FSTAT & FTFL_FSTAT_CCIF_MASK)) // Wait for command completion
8.1.3 Endurance
While different partitions of the FlexNVM are available, the intention is that a single
choice for the FlexNVM Partition Code and EEPROM Data Set Size will be used
throughout the entire lifetime of a given application. The FlexNVM partition choices
affect the endurance and data retention characteristics of the device.
82
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
// Selects the PGMPART command
// Subsystem A and B are both 2 KB
// Data flash size = 128 KB
// Launch command sequence
Freescale Semiconductor

Related parts for TWR-K60N512-KEIL