AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 24

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Overview of a Web Server Developed Using OpenTCP TCP/IP Stack
ne64config.h
An excerpt of the source code for ne64config.h is provided below. ne64config.h allows the user to
configure initialization options for the MC9S12NE64 EMAC and EPHY. The code excerpt below shows a
partial list of the configurations a user may desire to modify. These configurations are itemized below
along with a brief description of each:
Excerpt from ne64config.h:
.
.
.
//============================================================
//LINK SPEED/DUPLEX CONTROL
//============================================================
//Configure for manual or auto_neg configuration
#define AUTO_NEG
#if
//define what I advertise in auto negotiation
#define HALF100
#define FULL100
#define HALF10
#define FULL10
.
.
.
#else
#define SPEED100
#define FULL_DUPLEX 0
#endif
24
AUTO_NEG
AUTO_NEG — This option enables the auto-negotiation mode if asserted. If not asserted, the
developer must manually set up the speed and duplex using the full_duplex and speed_100
variables.
HALF10, FULL10, HALF100, & FULL100 — These set the auto-negotiation advertisements and
should be set to 1 if that mode is to be advertised in auto-negotiation.
SPEED100 — if AUTO_NEG = 0 — This manually sets the device link speed.
FULL_DUPLEX — if AUTO_NEG = 0 — This manually sets the device link duplex.
ETYPE_PET, ETYPE_EMW, ETYPE_IPV6, ETYPE_ARP, ETYPE_IPV4, ETYPE_IEEE, and
ETYPE_ALL — These set the EMAC ethertype filtering modes.
BRODC_REJ, CON_MULTIC, and PROM_MODE — The sets the EMAC MAC address filtering
modes.
BUFMAP — BUFMAP configures the RAM amount that is allocated for the Ethernet buffer. For the
MC9S12NE64, 8K of RAM is available and shared between user RAM and the EMAC Ethernet
buffer space. A more detailed description of BUFMAP is provide in the
section.
1
1
1
1
1
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
1
/**< 1 - enable AUTO_NEG / 0 - disable AUTO_NEG */
//AUTO_NEG
//AUTO_NEG
/**< 1 - enable 100 MBps / 0 - enable 10 MBps */
/**< 1 - enable full duplex / 0 - disable */
P&E_ICD_linker.prm
Freescale Semiconductor

Related parts for AN2836