101-0738 Rabbit Semiconductor, 101-0738 Datasheet - Page 53

no-image

101-0738

Manufacturer Part Number
101-0738
Description
CARD ETHERNET 512K SRAM SR9150
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 101-0738

Accessory Type
Smart Star CPU Card
For Use With/related Products
SR9150
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
5.2 TCP/IP Sample Programs
We have provided a number of sample programs demonstrating various uses of TCP/IP for
networking embedded systems. These programs require that you connect your PC and the
Smart Star together on the same network. This network can be a local private network
(preferred for initial experimentation and debugging), or a connection via the Internet.
5.2.1 How to Set IP Addresses in the Sample Programs
With the introduction of Dynamic C 7.30 we have taken steps to make it easier to run
many of our sample programs. You will see a
Dynamic C to select your configuration from a list of default configurations. You will
have three choices when you encounter a sample program with the
1. You can replace the
2. You can leave
3. You can create a
There are some other “standard” configurations for
ent features such as DHCP. Their values are documented at the top of the
TCP_CONFIG.LIB
the Dynamic C TCP/IP User’s Manual.
IP Addresses Before Dynamic C 7.30
Most of the sample programs use macros to define the IP address assigned to the CPU Card
and the IP address of the gateway, if there is a gateway. Instead of the
you will see a
In order to do a direct connection, the following IP addresses can be used for the CPU Card:
In this case, the gateway and nameserver are not used, and are commented out. The IP
address of the CPU Card is defined to be
defined as
User’s Manual
MY_NETMASK
to
to
address of
values in the section that directly follows the “General Configuration” comment in the
TCP_CONFIG.LIB
than 100. Instructions for doing this are at the beginning of the
library in the
10.10.6.100
10.10.6.1
#define MY_IP_ADDRESS "10.10.6.170"
#define MY_NETMASK "255.255.255.0"
#define MY_GATEWAY "10.10.6.1"
#define MY_NAMESERVER "10.10.6.1"
#define MY_IP_ADDRESS "10.1.1.2"
#define MY_NETMASK "255.255.255.0"
// #define MY_GATEWAY "10.10.6.1"
// #define MY_NAMESERVER "10.10.6.1"
10.1.1.1
10.1.1.2
MY_IP_ADDRESS
LIB\TCPIP
,
TCPCONFIG
. If you would like to change the default values, for example, to use an IP
MY_GATEWAY
library in the
CUSTOM_CONFIG.LIB
, the netmask to
.
library. You will find this library in the
TCPCONFIG
for the CPU Card, and
directory.
at the usual default of 1, which will set the IP configurations
, and
macro and other macros.
LIB\TCPIP
macro with individual
MY_NAMESERVER
255.255.255.0
10.1.1.2
library and use a
TCPCONFIG
directory. More information is available in
10.1.1.1
TCPCONFIG
. The IP address of you PC can be
, and the nameserver and gateway
macros in each program.
MY_IP_ADDRESS
macro. This macro tells
for your PC, you can edit the
TCPCONFIG
LIB\TCPIP
that let you select differ-
TCP_CONFIG.LIB
TCPCONFIG
TCPCONFIG
value greater
directory.
,
macro.
macro,
53

Related parts for 101-0738