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

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
sr = ezp_rdsr_cmd();
ezp_wren_cmd();
//4. Sector program
// Poll SR
sr = ezp_rdsr_cmd();
9.1.2.4 Write and read FCCOB registers
The flash command object registers consist of a group of 12 registers, each 1 byte wide.
These are used for sending command codes and data to the memory controller.
The WRFCCOB command allows you to write to the flash common command object
registers via the Ezport module and execute any command allowed by flash. After
receiving 12 bytes of data, Ezport writes the data to FCCOB registers and then
automatically launches the command within flash.
While the FAST_RDFCCOB command allows user to read the contents of flash common
command object registers.
Example code:
ezp_wren_cmd();
fccob[0] = 0x06;//program longword command
ezp_wrfccob_cmd(fccob);
//Loop until command has completed
Freescale Semiconductor
ezp_pp_cmd(sector_addr,64, pg_buffer);
//Loop till command has completed
while ((sr & EP_SR_WIP) == EP_SR_WIP)
fccob[2] = 0x04;
sr = EP_SR_WIP;
fccob[1] = 0x00;//flash address is 0x00040c
fccob[3] = 0x0c;
fccob[4] = 0xff;//program data is 0xfffffffe
fccob[5] = 0xff;
fccob[6] = 0xff;
fccob[7] = 0xfe;
sr = EP_SR_WIP;
until WIP goes low
If more than or fewer than 12 bytes of data are received by the
WRFCCOB command, the result will be unexpected. Also
because in Ezport mode the flash is in an NVM special mode,
commands that can be executed under secure mode are
restricted.
FCCOB number
4~B
1~3
0
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
NOTE
FCMD (code which defines the FTFL command)
Command parameter contents
Flash address [23:0]
Data byte [0:7]
Chapter 9 EzPort Module
91

Related parts for TWR-K60N512-KEIL