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

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
12.2 Configuration examples
When using the MAC-NET interface, most of the time it runs over an RTOS. Regardless
of the type of RTOS, some generic modes need to be defined and followed before
integrating to an existing software. The main 4 modes of operations are as follows:
12.2.1 Basic MAC-ENET initialization for a generic TCP/IP stack
Basic initialization is needed when configuring the MAC-NET controller.
12.2.1.1 Code example and explanation
The following list is a sequence of steps needed to correctly configure the ENET
interface.
Example code:
/* Buffer Descriptor Format */
#ifdef ENHANCED_BD
Freescale Semiconductor
10. Set ENET ready to receive
1. Enable ENET clock and disable the MPU
2. Configure buffer descriptions (BD) in little endian
3. Reset MAC controller
4. Configure pins MII or RMII mode
5. Clear and unmask ENET xmit, rx, and error interrupts. Set interrupt level and priority
6. Take network speed and duplex from PHY, then configure ENET accordingly
7. Configure MAC address with hash support
8. Point MAC-ENET to xmit and Rx BD. Configure maximum packet size
9. Start MAC-ENET controller
typedef struct
{
uint16_t status;
uint16_t length;
uint8_t
uint32_t ebd_status;
• Industrial communication can require the use of time synchronization between
• Basic Initialization—basic steps needed to run the MAC-NET.
• PHY Management Interface—configuration needed to get/set PHY configurations
• MII—media independent interface to the PHY
• RMII—reduced media independent interface to the PHY
distributed nodes. The MAC-NET provides support for the IEEE1588 standard to
overcome one of the drawbacks of Ethernet.
*data;
/* control and status */
/* transfer length */
/* buffer address */
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
Chapter 12 ENET Module
109

Related parts for TWR-K60N512-KEIL