AN2700 Freescale Semiconductor / Motorola, AN2700 Datasheet - Page 26

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
Overview of a Web Server Developed Using CMX-MicroNet TCP/IP Stack
*************************************************************/
byte eth_dest_hw_addr[ETH_ADDR_LEN] = {0x00,0xE0,0x98,0x03,0xE5,0xFA};
/************************************************************
*************************************************************/
byte gateway_ip_addr[IP_ADDR_LEN] = {255,255,255,255};
byte subnet_mask[IP_ADDR_LEN]
#endif
mnconfig.h
Editing mnconfig.h is required to select the protocols used, number of interfaces, number of sockets, sizes
of transmit and receive buffers, etc. To minimize code size, only the protocols that are required for the
application should be used. An excerpt of mnconfig.h is provided. Important settings for the web server
example are:
In mnconfig.h , defining a value of 1 enables a feature, and a value of 0 disables a feature. When editing
mnconfig.h , recall that some protocols are dependent on each other. For instance, the HTTP requires the
TCP. In addition, for CMX-MicroNet software, either UDP or TCP must be enabled for compilation.
Figure 14
26
If ARP is used the array below is used as a temporary holder
for the destination hardware address. It does not have to be
changed.
If ARP is not being used replace the hardware address below
with the hardware address of the destination. The hardware
address used MUST be the correct one.
If a gateway is being used set the gateway IP address and
subnet mask below.
If a gateway is not being used:
set the gateway IP address to {255,255,255,255}
set the subnet mask to
Enable TCP (enabling UDP is optional)
Enable Ethernet
Enable PING
Enable ARP
Disable DHCP
Enable HTTP and SERVER_SIDE_INCLUDES
Enable VIRTUAL_FILE
shows several popular network protocols and their dependence.
/* Ethernet */
Basic Web Server with MC9S12NE64 and CMX-MicroNet TCP/IP Stack, Rev. 0.3
= {255,255,255, 0};
{255,255,255, 0}
Freescale Semiconductor

Related parts for AN2700