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

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
Chapter 9 EzPort Module
9.1.2.1 Hardware connections
Any SPI master could be used to connect to the Ezport module for flash programming.
Either QSPI or DSPI module on existing Coldfire devices could be used in this case.
Figure 9-3
shows the connection between the QSPI module on MCF5282 and Kinetis.
Here QSPI_CS1 and QSPI_CS2 are used as GPIO to control the timing between manual
reset of Kinetis and sampling of /EZPCS.
Figure 9-3. Connection between MCF5282 and Kinetis
Example code for set_to_ezp_mode:
// Configure as GPIO pins to monitor RSTOUT pins and assert RCON
MCF5282_GPIO_PQSPAR = 0x0; // GPIO function
MCF5282_GPIO_DDRQS = 0x08; // CS0 as output
MCF5282_GPIO_PORTQS = 0x08; // Drive CS0 HIGH
/* set up wrap register for
a single 8-bit transfer */
MCF5282_QSPI_QWR = MCF5282_QSPI_QWR_CSIV;
/* Enable QSPI Pins */
MCF5282_GPIO_PQSPAR |= 0x7F;
// Configure as GPIO pins to monitor RSTOUT pins and assert RCON
MCF5282_GPIO_PQSPAR = 0x0; // GPIO function
MCF5282_GPIO_DDRQS = 0x28; // CS0 and CS2 as output
MCF5282_GPIO_PORTQS = 0x28; // Drive RCON
HIGH & RSTIN HIGH
MCF5282_GPIO_PORTQS = 0x08; // Drive RCON HIGH & RSTIN LOW
while ((data_in & 0x10))//wait till RSTOUT LOW
{
data_in = MCF5282_GPIO_PORTQSP;
}
MCF5282_GPIO_PORTQS = 0x20; // Drive RCON LOW & RSTIN HIGH
while (!(data_in & 0x10))//wait till RSTOUT HIGH
{
data_in = MCF5282_GPIO_PORTQSP;
}
//Exiting reset and entering EZPORT mode
MCF5282_GPIO_PORTQS = 0x28; // Drive RCON HIGH again
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
Freescale Semiconductor
89

Related parts for TWR-K60N512-KEIL