AN2700 Freescale Semiconductor / Motorola, AN2700 Datasheet - Page 13

no-image

AN2700

Manufacturer Part Number
AN2700
Description
Basic Web Server Development with MC9S12NE64 and CMX-MicroNet TCP/IP Stack
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Examplee Project (examplee_ne64.mcp) — Contains the source code of the specific user application.
The source code in this project includes main() for the TCP/IP stack solution.
Netlibe Project (netlibe_ne64.mcp) — Creates a library file, netlibe_ne64.lib , that examplee_ne64.mcp
uses. The netlibe_ne64.mcp project contains the source code for the CMX-MicroNet API. Most of these
files will not require modification during software development. Typically, this project must be modified
initially to include the protocols of the CMX-MicroNet project that will be used in the project and to set the
initialization settings for the MC9S12NE64 Ethernet controller. After these parameters are set, this project
can be compiled to create the netlibe_ne64.lib object file.
CMX-MicroNet TCP/IP Stack API
Table 4
simple web server described in this application note. For complete documentation of the CMX-MicroNet
API, please reference the CMX-MicroNet user guide.
Freescale Semiconductor
example.c — Contains the user application including main().
callback.c — Among other things, contains settings for:
_MC9S12NE64_BANKED.prm — Contains Ethernet controller buffer map configuration settings,
BUFMAP. The user must modify this file to the user’s desired buffer size settings for the Ethernet
controller buffers. This setting should match the BUFMAP value in emac_fifo_cfg.h.
Files in webpage directory — Contain HTML, GIF, JPG, Java applets, and other files used in the
web server. This directory also contains the files that result when html2C.exe is executed (see
Table
mn_port.c — Contains initialization code for HCS12 modules and other MCU support code. Some
of the functions included in mn_port.c are:
mnconfig.h — Contains an interface to set up (turn off or on) and configure various TCP/IP stack
protocols (TCP, UDP, ARP, PING, DHCP, etc.) that are used when building the stack.
emac_fifo_cfg.h — Contains Ethernet controller buffer map configuration settings, BUFMAP. The
user must modify this file to the desired buffer size settings for the Ethernet controller buffers. This
setting should match the BUFMAP value in _MC9S12NE64_BANKED.prm .
ether_init.h — Contains the configuration setup for the MC9S12NE64 integrated MAC and PHY.
The user can enable and disable auto-negotiation in this file and also set the auto-negotiation
advertisements by modifying this file. Other configuration options are also available.
provides a brief description of the CMX-MicroNet API functions that are required to develop the
MAC hardware and IP addresses
SMTP (simple mail transfer protocol) IP address
Gateway IP address
Subnet mask
SCI initialization
PLL initialization
RTI interrupt service routine
SCI interrupt service routine
3).
Basic Web Server with MC9S12NE64 and CMX-MicroNet TCP/IP Stack, Rev. 0.3
CMX Stack Overview
13

Related parts for AN2700